Lines Matching defs:size

114 			   unsigned long size, enum drm_map_type type,
129 map->size = size;
141 DRM_DEBUG("offset = 0x%08llx, size = 0x%08lx, type = %d\n",
142 (unsigned long long)map->offset, map->size, map->type);
149 map->size = PAGE_ALIGN(map->size);
151 if ((map->offset & (~(resource_size_t)PAGE_MASK)) || (map->size & (~PAGE_MASK))) {
156 if (map->offset + map->size < map->offset) {
173 if (list->map->size != map->size) {
176 map->type, map->size,
177 list->map->size);
178 list->map->size = map->size;
187 map->handle = ioremap(map->offset, map->size);
198 if(list->map->size != map->size) {
201 map->type, map->size, list->map->size);
202 list->map->size = map->size;
209 map->handle = ddi_umem_alloc(map->size, DDI_UMEM_NOSLEEP, &map->umem_cookie);
211 map->size, map->handle);
236 kvaddr = gfxp_alloc_kernel_space(map->size);
242 gfxp_load_kernel_space(map->offset, map->size,
245 map->umem_cookie = gfxp_umem_cookie_init(map->handle, map->size);
248 gfxp_unmap_kernel_space(map->handle, map->size);
264 map->umem_cookie = gfxp_umem_cookie_init(map->handle, map->size);
316 unsigned long size, enum drm_map_type type,
322 rc = drm_addmap_core(dev, offset, size, type, flags, &list);
346 DRM_DEBUG_DRIVER("adding map of type %d, offset: %0x, size: %0x\n",
347 map->type, map->offset,map->size);
352 err = drm_addmap_core(dev, map->offset, map->size, map->type,
409 gfxp_unmap_kernel_space(map->handle, map->size);
537 * reallocates the buffer list of the same size order to accommodate the new
550 int size;
562 order = drm_order(request->size);
563 size = 1 << order;
566 ? round_page(size) : size;
575 DRM_DEBUG("size: %d\n", size);
614 entry->buf_size = size;
684 request->size = size;
701 int size;
719 order = drm_order(request->size);
720 size = 1 << order;
723 ? round_page(size) : size;
732 DRM_DEBUG("size: %d\n", size);
772 entry->buf_size = size;
839 request->size = size;
935 copy_to_user(&to->size,
970 * Verifies that the size order is bounded between the admissible orders and
990 request->size, request->low_mark, request->high_mark);
991 order = drm_order(request->size);
1079 uint_t size, foff;
1110 size = round_page(map->size);
1113 size = round_page(dma->byte_count);
1116 request->virtual = drm_smmap(NULL, size, PROT_READ | PROT_WRITE,
1194 * Compute size order. Returns the exponent of the smaller power of two which
1197 * \param size size.
1202 int drm_order(unsigned long size)
1207 for (order = 0, tmp = size >> 1; tmp; tmp >>= 1, order++) ;
1209 if (size & (size - 1))