Lines Matching defs:size
97 * offset must be a multiple of the page size as returned by
101 * this page size once and use it as the page size throughout, ensuring that
102 * are offsets are page-size aligned as required. Otherwise, mmap will fail
324 drm_shim_bo_init(struct shim_bo *bo, size_t size)
328 bo->mem_addr = util_vma_heap_alloc(&shim_device.mem_heap, size, shim_page_size);
334 bo->size = size;
373 util_vma_heap_free(&shim_device.mem_heap, bo->mem_addr, bo->size);
426 if (length > bo->size)
429 /* The offset we pass to mmap must be aligned to the page size */