Lines Matching refs:buf_handle
565 amdgpu_bo_handle buf_handle; in amdgpu_bo_alloc_and_map_raw() local
575 r = amdgpu_bo_alloc(dev, &request, &buf_handle); in amdgpu_bo_alloc_and_map_raw()
586 r = amdgpu_bo_va_op_raw(dev, buf_handle, 0, ALIGN(size, getpagesize()), vmc_addr, in amdgpu_bo_alloc_and_map_raw()
595 r = amdgpu_bo_cpu_map(buf_handle, cpu); in amdgpu_bo_alloc_and_map_raw()
599 *bo = buf_handle; in amdgpu_bo_alloc_and_map_raw()
606 amdgpu_bo_cpu_unmap(buf_handle); in amdgpu_bo_alloc_and_map_raw()
609 amdgpu_bo_va_op(buf_handle, 0, size, vmc_addr, 0, AMDGPU_VA_OP_UNMAP); in amdgpu_bo_alloc_and_map_raw()
612 amdgpu_bo_free(buf_handle); in amdgpu_bo_alloc_and_map_raw()
2020 amdgpu_bo_handle buf_handle; in amdgpu_userptr_test() local
2040 ptr, BUFFER_SIZE, &buf_handle); in amdgpu_userptr_test()
2049 r = amdgpu_bo_va_op(buf_handle, 0, BUFFER_SIZE, bo_mc, 0, AMDGPU_VA_OP_MAP); in amdgpu_userptr_test()
2052 handle = buf_handle; in amdgpu_userptr_test()
2090 r = amdgpu_bo_va_op(buf_handle, 0, BUFFER_SIZE, bo_mc, 0, AMDGPU_VA_OP_UNMAP); in amdgpu_userptr_test()
2094 r = amdgpu_bo_free(buf_handle); in amdgpu_userptr_test()