Lines Matching refs:buf_handle
210 amdgpu_bo_handle buf_handle; in gpu_mem_alloc() local
220 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in gpu_mem_alloc()
229 r = amdgpu_bo_va_op(buf_handle, 0, size, *vmc_addr, 0, AMDGPU_VA_OP_MAP); in gpu_mem_alloc()
232 return buf_handle; in gpu_mem_alloc()
260 amdgpu_bo_handle buf_handle; in amdgpu_bo_alloc_wrap() local
268 r = amdgpu_bo_alloc(dev, &request, &buf_handle); in amdgpu_bo_alloc_wrap()
272 *bo = buf_handle; in amdgpu_bo_alloc_wrap()
284 amdgpu_bo_handle buf_handle; in amdgpu_bo_alloc_and_map() local
294 r = amdgpu_bo_alloc(dev, &request, &buf_handle); in amdgpu_bo_alloc_and_map()
305 r = amdgpu_bo_va_op(buf_handle, 0, size, vmc_addr, 0, AMDGPU_VA_OP_MAP); in amdgpu_bo_alloc_and_map()
309 r = amdgpu_bo_cpu_map(buf_handle, cpu); in amdgpu_bo_alloc_and_map()
313 *bo = buf_handle; in amdgpu_bo_alloc_and_map()
320 amdgpu_bo_cpu_unmap(buf_handle); in amdgpu_bo_alloc_and_map()
323 amdgpu_bo_va_op(buf_handle, 0, size, vmc_addr, 0, AMDGPU_VA_OP_UNMAP); in amdgpu_bo_alloc_and_map()
326 amdgpu_bo_free(buf_handle); in amdgpu_bo_alloc_and_map()