/third_party/libdrm/tests/amdgpu/ |
D | cs_tests.c | 205 amdgpu_bo_handle buf_handle; in amdgpu_cs_uvd_create() local 214 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in amdgpu_cs_uvd_create() 223 r = amdgpu_bo_va_op(buf_handle, 0, 4096, va, 0, AMDGPU_VA_OP_MAP); in amdgpu_cs_uvd_create() 226 r = amdgpu_bo_cpu_map(buf_handle, &msg); in amdgpu_cs_uvd_create() 245 r = amdgpu_bo_cpu_unmap(buf_handle); in amdgpu_cs_uvd_create() 249 resources[num_resources++] = buf_handle; in amdgpu_cs_uvd_create() 260 r = amdgpu_bo_va_op(buf_handle, 0, 4096, va, 0, AMDGPU_VA_OP_UNMAP); in amdgpu_cs_uvd_create() 266 r = amdgpu_bo_free(buf_handle); in amdgpu_cs_uvd_create() 275 amdgpu_bo_handle buf_handle; in amdgpu_cs_uvd_decode() local 292 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in amdgpu_cs_uvd_decode() [all …]
|
D | bo_tests.c | 63 amdgpu_bo_handle buf_handle; in suite_bo_tests_init() local 82 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in suite_bo_tests_init() 93 r = amdgpu_bo_va_op(buf_handle, 0, BUFFER_SIZE, va, 0, AMDGPU_VA_OP_MAP); in suite_bo_tests_init() 97 buffer_handle = buf_handle; in suite_bo_tests_init() 106 amdgpu_bo_free(buf_handle); in suite_bo_tests_init() 147 CU_ASSERT_EQUAL(res.buf_handle, buffer_handle); in amdgpu_bo_export_import_do_type() 150 r = amdgpu_bo_free(res.buf_handle); in amdgpu_bo_export_import_do_type() 272 amdgpu_bo_handle buf_handle; in amdgpu_mem_fail_alloc() local 280 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in amdgpu_mem_fail_alloc() 284 r = amdgpu_bo_free(buf_handle); in amdgpu_mem_fail_alloc()
|
D | amdgpu_test.h | 258 amdgpu_bo_handle buf_handle = NULL; in gpu_mem_alloc() local 266 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in gpu_mem_alloc() 280 r = amdgpu_bo_va_op(buf_handle, 0, size, *vmc_addr, 0, in gpu_mem_alloc() 287 return buf_handle; in gpu_mem_alloc() 294 r = amdgpu_bo_free(buf_handle); in gpu_mem_alloc() 335 amdgpu_bo_handle buf_handle; in amdgpu_bo_alloc_wrap() local 343 r = amdgpu_bo_alloc(dev, &request, &buf_handle); in amdgpu_bo_alloc_wrap() 347 *bo = buf_handle; in amdgpu_bo_alloc_wrap()
|
D | vm_tests.c | 178 amdgpu_bo_handle buf_handle; in amdgpu_vm_unaligned_map() local 188 r = amdgpu_bo_alloc(device_handle, &request, &buf_handle); in amdgpu_vm_unaligned_map() 202 r = amdgpu_bo_va_op(buf_handle, 0, map_size, vmc_addr, 0, in amdgpu_vm_unaligned_map() 208 amdgpu_bo_va_op(buf_handle, 0, map_size, vmc_addr, 0, in amdgpu_vm_unaligned_map() 212 amdgpu_bo_free(buf_handle); in amdgpu_vm_unaligned_map()
|
D | vcn_tests.c | 228 amdgpu_bo_handle buf_handle; in alloc_resource() local 235 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in alloc_resource() 242 r = amdgpu_bo_va_op(buf_handle, 0, req.alloc_size, va, 0, in alloc_resource() 246 vcn_bo->handle = buf_handle; in alloc_resource()
|
D | uvd_enc_tests.c | 200 amdgpu_bo_handle buf_handle; in alloc_resource() local 207 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in alloc_resource() 214 r = amdgpu_bo_va_op(buf_handle, 0, req.alloc_size, va, 0, in alloc_resource() 218 uvd_enc_bo->handle = buf_handle; in alloc_resource()
|
D | basic_tests.c | 536 amdgpu_bo_handle buf_handle; in amdgpu_bo_alloc_and_map_raw() local 546 r = amdgpu_bo_alloc(dev, &request, &buf_handle); in amdgpu_bo_alloc_and_map_raw() 557 r = amdgpu_bo_va_op_raw(dev, buf_handle, 0, ALIGN(size, getpagesize()), vmc_addr, in amdgpu_bo_alloc_and_map_raw() 566 r = amdgpu_bo_cpu_map(buf_handle, cpu); in amdgpu_bo_alloc_and_map_raw() 570 *bo = buf_handle; in amdgpu_bo_alloc_and_map_raw() 577 amdgpu_bo_cpu_unmap(buf_handle); in amdgpu_bo_alloc_and_map_raw() 580 amdgpu_bo_va_op(buf_handle, 0, size, vmc_addr, 0, AMDGPU_VA_OP_UNMAP); in amdgpu_bo_alloc_and_map_raw() 583 amdgpu_bo_free(buf_handle); in amdgpu_bo_alloc_and_map_raw() 1836 amdgpu_bo_handle buf_handle; in amdgpu_userptr_test() local 1856 ptr, BUFFER_SIZE, &buf_handle); in amdgpu_userptr_test() [all …]
|
D | vce_tests.c | 241 amdgpu_bo_handle buf_handle; in alloc_resource() local 248 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in alloc_resource() 255 r = amdgpu_bo_va_op(buf_handle, 0, req.alloc_size, va, 0, in alloc_resource() 259 vce_bo->handle = buf_handle; in alloc_resource()
|
/third_party/libdrm/amdgpu/ |
D | amdgpu.h | 240 amdgpu_bo_handle buf_handle; member 570 amdgpu_bo_handle *buf_handle); 582 int amdgpu_bo_set_metadata(amdgpu_bo_handle buf_handle, 599 int amdgpu_bo_query_info(amdgpu_bo_handle buf_handle, 617 int amdgpu_bo_export(amdgpu_bo_handle buf_handle, 679 amdgpu_bo_handle *buf_handle); 701 amdgpu_bo_handle *buf_handle, 722 int amdgpu_bo_free(amdgpu_bo_handle buf_handle); 746 int amdgpu_bo_cpu_map(amdgpu_bo_handle buf_handle, void **cpu); 759 int amdgpu_bo_cpu_unmap(amdgpu_bo_handle buf_handle); [all …]
|
D | amdgpu_bo.c | 53 amdgpu_bo_handle *buf_handle) in amdgpu_bo_create() argument 74 *buf_handle = bo; in amdgpu_bo_create() 80 amdgpu_bo_handle *buf_handle) in amdgpu_bo_alloc() argument 101 buf_handle); in amdgpu_bo_alloc() 320 output->buf_handle = bo; in amdgpu_bo_import() 377 output->buf_handle = bo; in amdgpu_bo_import() 395 drm_public int amdgpu_bo_free(amdgpu_bo_handle buf_handle) in amdgpu_bo_free() argument 398 struct amdgpu_bo *bo = buf_handle; in amdgpu_bo_free() 541 amdgpu_bo_handle *buf_handle, in amdgpu_find_bo_by_cpu_mapping() argument 568 *buf_handle = bo; in amdgpu_find_bo_by_cpu_mapping() [all …]
|
/third_party/mesa3d/src/amd/vulkan/winsys/amdgpu/ |
D | radv_amdgpu_bo.c | 404 amdgpu_bo_handle buf_handle; in radv_amdgpu_winsys_bo_create() local 518 r = amdgpu_bo_alloc(ws->dev, &request, &buf_handle); in radv_amdgpu_winsys_bo_create() 528 r = radv_amdgpu_bo_va_op(ws, buf_handle, 0, size, va, flags, 0, AMDGPU_VA_OP_MAP); in radv_amdgpu_winsys_bo_create() 534 bo->bo = buf_handle; in radv_amdgpu_winsys_bo_create() 540 r = amdgpu_bo_export(buf_handle, amdgpu_bo_handle_type_kms, &bo->bo_handle); in radv_amdgpu_winsys_bo_create() 569 amdgpu_bo_free(buf_handle); in radv_amdgpu_winsys_bo_create() 628 amdgpu_bo_handle buf_handle; in radv_amdgpu_winsys_bo_from_ptr() local 643 if (amdgpu_create_bo_from_user_mem(ws->dev, pointer, size, &buf_handle)) { in radv_amdgpu_winsys_bo_from_ptr() 659 if (amdgpu_bo_va_op(buf_handle, 0, size, va, 0, AMDGPU_VA_OP_MAP)) { in radv_amdgpu_winsys_bo_from_ptr() 669 bo->bo = buf_handle; in radv_amdgpu_winsys_bo_from_ptr() [all …]
|
/third_party/mesa3d/src/gallium/winsys/amdgpu/drm/ |
D | amdgpu_bo.c | 480 amdgpu_bo_handle buf_handle; in amdgpu_create_bo() local 550 r = amdgpu_bo_alloc(ws->dev, &request, &buf_handle); in amdgpu_create_bo() 580 r = amdgpu_bo_va_op_raw(ws->dev, buf_handle, 0, size, va, vm_flags, in amdgpu_create_bo() 591 bo->bo = buf_handle; in amdgpu_create_bo() 613 amdgpu_bo_free(buf_handle); in amdgpu_create_bo() 1526 bo = util_hash_table_get(ws->bo_export_table, result.buf_handle); in amdgpu_bo_from_handle() 1539 amdgpu_bo_free(result.buf_handle); in amdgpu_bo_from_handle() 1544 r = amdgpu_bo_query_info(result.buf_handle, &info); in amdgpu_bo_from_handle() 1560 r = amdgpu_bo_va_op(result.buf_handle, 0, result.alloc_size, va, 0, AMDGPU_VA_OP_MAP); in amdgpu_bo_from_handle() 1584 bo->bo = result.buf_handle; in amdgpu_bo_from_handle() [all …]
|
D | amdgpu_cs.c | 286 amdgpu_bo_handle buf_handle; in amdgpu_ctx_create() local 305 r = amdgpu_bo_alloc(ctx->ws->dev, &alloc_buffer, &buf_handle); in amdgpu_ctx_create() 311 r = amdgpu_bo_cpu_map(buf_handle, (void**)&ctx->user_fence_cpu_address_base); in amdgpu_ctx_create() 318 ctx->user_fence_bo = buf_handle; in amdgpu_ctx_create() 323 amdgpu_bo_free(buf_handle); in amdgpu_ctx_create()
|
/third_party/mesa3d/src/mesa/main/ |
D | bufferobj.h | 73 struct gl_buffer_object **buf_handle,
|
D | bufferobj.c | 1068 struct gl_buffer_object **buf_handle, in _mesa_handle_bind_buffer_gen() argument 1071 struct gl_buffer_object *buf = *buf_handle; in _mesa_handle_bind_buffer_gen() 1082 *buf_handle = new_gl_buffer_object(ctx, buffer); in _mesa_handle_bind_buffer_gen() 1083 if (!*buf_handle) { in _mesa_handle_bind_buffer_gen() 1090 *buf_handle, buf != NULL); in _mesa_handle_bind_buffer_gen()
|
/third_party/mesa3d/src/amd/common/ |
D | ac_gpu_info.c | 152 amdgpu_bo_handle *buf_handle) in amdgpu_bo_alloc() argument 156 static int amdgpu_bo_free(amdgpu_bo_handle buf_handle) in amdgpu_bo_free() argument
|