Lines Matching refs:alloc_size
70 bo->alloc_size = size; in amdgpu_bo_create()
86 args.in.bo_size = alloc_buffer->alloc_size; in amdgpu_bo_alloc()
100 r = amdgpu_bo_create(dev, alloc_buffer->alloc_size, args.out.handle, in amdgpu_bo_alloc()
170 info->alloc_size = bo_info.bo_size; in amdgpu_bo_query_info()
264 uint64_t alloc_size = 0; in amdgpu_bo_import() local
321 output->alloc_size = bo->alloc_size; in amdgpu_bo_import()
335 alloc_size = open_arg.size; in amdgpu_bo_import()
355 alloc_size = dma_buf_size; in amdgpu_bo_import()
364 r = amdgpu_bo_create(dev, alloc_size, handle, &bo); in amdgpu_bo_import()
378 output->alloc_size = bo->alloc_size; in amdgpu_bo_import()
466 ptr = drm_mmap(NULL, bo->alloc_size, PROT_READ | PROT_WRITE, MAP_SHARED, in amdgpu_bo_cpu_map()
501 r = drm_munmap(bo->cpu_ptr, bo->alloc_size) == 0 ? 0 : -errno; in amdgpu_bo_cpu_unmap()
559 if (!bo || !bo->cpu_ptr || size > bo->alloc_size) in amdgpu_find_bo_by_cpu_mapping()
562 cpu < (void*)((uintptr_t)bo->cpu_ptr + bo->alloc_size)) in amdgpu_find_bo_by_cpu_mapping()