/external/libdrm/tests/amdgpu/ |
D | cs_tests.c | 209 amdgpu_bo_handle buf_handle; in amdgpu_cs_uvd_create() local 218 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in amdgpu_cs_uvd_create() 227 r = amdgpu_bo_va_op(buf_handle, 0, 4096, va, 0, AMDGPU_VA_OP_MAP); in amdgpu_cs_uvd_create() 230 r = amdgpu_bo_cpu_map(buf_handle, &msg); in amdgpu_cs_uvd_create() 249 r = amdgpu_bo_cpu_unmap(buf_handle); in amdgpu_cs_uvd_create() 253 resources[num_resources++] = buf_handle; in amdgpu_cs_uvd_create() 264 r = amdgpu_bo_va_op(buf_handle, 0, 4096, va, 0, AMDGPU_VA_OP_UNMAP); in amdgpu_cs_uvd_create() 270 r = amdgpu_bo_free(buf_handle); in amdgpu_cs_uvd_create() 279 amdgpu_bo_handle buf_handle; in amdgpu_cs_uvd_decode() local 296 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 | 289 amdgpu_bo_handle buf_handle = NULL; in gpu_mem_alloc() local 297 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in gpu_mem_alloc() 311 r = amdgpu_bo_va_op(buf_handle, 0, size, *vmc_addr, 0, in gpu_mem_alloc() 318 return buf_handle; in gpu_mem_alloc() 325 r = amdgpu_bo_free(buf_handle); in gpu_mem_alloc() 366 amdgpu_bo_handle buf_handle; in amdgpu_bo_alloc_wrap() local 374 r = amdgpu_bo_alloc(dev, &request, &buf_handle); in amdgpu_bo_alloc_wrap() 378 *bo = buf_handle; in amdgpu_bo_alloc_wrap()
|
D | vm_tests.c | 186 amdgpu_bo_handle buf_handle; in amdgpu_vm_unaligned_map() local 196 r = amdgpu_bo_alloc(device_handle, &request, &buf_handle); in amdgpu_vm_unaligned_map() 210 r = amdgpu_bo_va_op(buf_handle, 0, map_size, vmc_addr, 0, in amdgpu_vm_unaligned_map() 216 amdgpu_bo_va_op(buf_handle, 0, map_size, vmc_addr, 0, in amdgpu_vm_unaligned_map() 220 amdgpu_bo_free(buf_handle); in amdgpu_vm_unaligned_map()
|
D | vcn_tests.c | 263 amdgpu_bo_handle buf_handle; in alloc_resource() local 270 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in alloc_resource() 277 r = amdgpu_bo_va_op(buf_handle, 0, req.alloc_size, va, 0, in alloc_resource() 281 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 | 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() [all …]
|
D | vce_tests.c | 243 amdgpu_bo_handle buf_handle; in alloc_resource() local 250 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in alloc_resource() 257 r = amdgpu_bo_va_op(buf_handle, 0, req.alloc_size, va, 0, in alloc_resource() 261 vce_bo->handle = buf_handle; in alloc_resource()
|
/external/igt-gpu-tools/tests/amdgpu/ |
D | amd_cs_nop.c | 45 amdgpu_bo_handle buf_handle; in amdgpu_bo_alloc_and_map() local 50 r = amdgpu_bo_alloc(dev, &request, &buf_handle); in amdgpu_bo_alloc_and_map() 61 r = amdgpu_bo_va_op(buf_handle, 0, size, vmc_addr, 0, AMDGPU_VA_OP_MAP); in amdgpu_bo_alloc_and_map() 65 r = amdgpu_bo_cpu_map(buf_handle, cpu); in amdgpu_bo_alloc_and_map() 69 *bo = buf_handle; in amdgpu_bo_alloc_and_map() 76 amdgpu_bo_cpu_unmap(buf_handle); in amdgpu_bo_alloc_and_map() 79 amdgpu_bo_va_op(buf_handle, 0, size, vmc_addr, 0, AMDGPU_VA_OP_UNMAP); in amdgpu_bo_alloc_and_map() 82 amdgpu_bo_free(buf_handle); in amdgpu_bo_alloc_and_map()
|
D | amd_prime.c | 47 amdgpu_bo_handle buf_handle; in amdgpu_bo_alloc_and_map() local 52 r = amdgpu_bo_alloc(dev, &request, &buf_handle); in amdgpu_bo_alloc_and_map() 63 r = amdgpu_bo_va_op(buf_handle, 0, size, vmc_addr, 0, AMDGPU_VA_OP_MAP); in amdgpu_bo_alloc_and_map() 67 r = amdgpu_bo_cpu_map(buf_handle, cpu); in amdgpu_bo_alloc_and_map() 71 *bo = buf_handle; in amdgpu_bo_alloc_and_map() 78 amdgpu_bo_cpu_unmap(buf_handle); in amdgpu_bo_alloc_and_map() 81 amdgpu_bo_va_op(buf_handle, 0, size, vmc_addr, 0, AMDGPU_VA_OP_UNMAP); in amdgpu_bo_alloc_and_map() 84 amdgpu_bo_free(buf_handle); in amdgpu_bo_alloc_and_map() 162 c->amd_handle = import.buf_handle; in amd_plug() 250 import.buf_handle, in i915_to_amd()
|
D | amd_basic.c | 207 amdgpu_bo_handle buf_handle; in gpu_mem_alloc() local 210 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in gpu_mem_alloc() 219 r = amdgpu_bo_va_op(buf_handle, 0, size, *vmc_addr, 0, AMDGPU_VA_OP_MAP); in gpu_mem_alloc() 222 return buf_handle; in gpu_mem_alloc() 254 amdgpu_bo_handle buf_handle; in amdgpu_bo_alloc_and_map() local 259 r = amdgpu_bo_alloc(dev, &request, &buf_handle); in amdgpu_bo_alloc_and_map() 270 r = amdgpu_bo_va_op(buf_handle, 0, size, vmc_addr, 0, AMDGPU_VA_OP_MAP); in amdgpu_bo_alloc_and_map() 274 r = amdgpu_bo_cpu_map(buf_handle, cpu); in amdgpu_bo_alloc_and_map() 278 *bo = buf_handle; in amdgpu_bo_alloc_and_map() 285 amdgpu_bo_cpu_unmap(buf_handle); in amdgpu_bo_alloc_and_map() [all …]
|
/external/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 …]
|
/external/mesa3d/src/amd/vulkan/winsys/amdgpu/ |
D | radv_amdgpu_bo.c | 353 amdgpu_bo_handle buf_handle; in radv_amdgpu_winsys_bo_create() local 444 r = amdgpu_bo_alloc(ws->dev, &request, &buf_handle); in radv_amdgpu_winsys_bo_create() 453 r = radv_amdgpu_bo_va_op(ws, buf_handle, 0, size, va, flags, 0, in radv_amdgpu_winsys_bo_create() 458 bo->bo = buf_handle; in radv_amdgpu_winsys_bo_create() 463 r = amdgpu_bo_export(buf_handle, amdgpu_bo_handle_type_kms, &bo->bo_handle); in radv_amdgpu_winsys_bo_create() 491 amdgpu_bo_free(buf_handle); in radv_amdgpu_winsys_bo_create() 552 amdgpu_bo_handle buf_handle; in radv_amdgpu_winsys_bo_from_ptr() local 562 if (amdgpu_create_bo_from_user_mem(ws->dev, pointer, size, &buf_handle)) in radv_amdgpu_winsys_bo_from_ptr() 576 if (amdgpu_bo_va_op(buf_handle, 0, size, va, 0, AMDGPU_VA_OP_MAP)) in radv_amdgpu_winsys_bo_from_ptr() 585 bo->bo = buf_handle; in radv_amdgpu_winsys_bo_from_ptr() [all …]
|
/external/mesa3d/src/gallium/winsys/amdgpu/drm/ |
D | amdgpu_bo.c | 470 amdgpu_bo_handle buf_handle; in amdgpu_create_bo() local 535 r = amdgpu_bo_alloc(ws->dev, &request, &buf_handle); in amdgpu_create_bo() 565 r = amdgpu_bo_va_op_raw(ws->dev, buf_handle, 0, size, va, vm_flags, in amdgpu_create_bo() 578 bo->bo = buf_handle; in amdgpu_create_bo() 600 amdgpu_bo_free(buf_handle); in amdgpu_create_bo() 1427 bo = util_hash_table_get(ws->bo_export_table, result.buf_handle); in amdgpu_bo_from_handle() 1440 amdgpu_bo_free(result.buf_handle); in amdgpu_bo_from_handle() 1445 r = amdgpu_bo_query_info(result.buf_handle, &info); in amdgpu_bo_from_handle() 1461 r = amdgpu_bo_va_op(result.buf_handle, 0, result.alloc_size, va, 0, AMDGPU_VA_OP_MAP); in amdgpu_bo_from_handle() 1485 bo->bo = result.buf_handle; in amdgpu_bo_from_handle() [all …]
|
D | amdgpu_cs.c | 288 amdgpu_bo_handle buf_handle; in amdgpu_ctx_create() local 307 r = amdgpu_bo_alloc(ctx->ws->dev, &alloc_buffer, &buf_handle); in amdgpu_ctx_create() 313 r = amdgpu_bo_cpu_map(buf_handle, (void**)&ctx->user_fence_cpu_address_base); in amdgpu_ctx_create() 320 ctx->user_fence_bo = buf_handle; in amdgpu_ctx_create() 325 amdgpu_bo_free(buf_handle); in amdgpu_ctx_create()
|
/external/igt-gpu-tools/lib/ |
D | igt_draw.h | 54 uint32_t buf_handle, uint32_t buf_size, uint32_t buf_stride,
|
D | igt_draw.c | 647 uint32_t buf_handle, uint32_t buf_size, uint32_t buf_stride, in igt_draw_rect() argument 656 .handle = buf_handle, in igt_draw_rect()
|
/external/mesa3d/src/mesa/main/ |
D | bufferobj.h | 73 struct gl_buffer_object **buf_handle,
|
D | bufferobj.c | 954 struct gl_buffer_object **buf_handle, in _mesa_handle_bind_buffer_gen() argument 957 struct gl_buffer_object *buf = *buf_handle; in _mesa_handle_bind_buffer_gen() 968 *buf_handle = ctx->Driver.NewBufferObject(ctx, buffer); in _mesa_handle_bind_buffer_gen() 969 if (!*buf_handle) { in _mesa_handle_bind_buffer_gen() 973 _mesa_HashInsert(ctx->Shared->BufferObjects, buffer, *buf_handle, buf != NULL); in _mesa_handle_bind_buffer_gen()
|