/external/libdrm/tests/amdgpu/ |
D | cs_tests.c | 208 amdgpu_bo_handle buf_handle; in amdgpu_cs_uvd_create() local 217 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in amdgpu_cs_uvd_create() 226 r = amdgpu_bo_va_op(buf_handle, 0, 4096, va, 0, AMDGPU_VA_OP_MAP); in amdgpu_cs_uvd_create() 229 r = amdgpu_bo_cpu_map(buf_handle, &msg); in amdgpu_cs_uvd_create() 248 r = amdgpu_bo_cpu_unmap(buf_handle); in amdgpu_cs_uvd_create() 252 resources[num_resources++] = buf_handle; in amdgpu_cs_uvd_create() 263 r = amdgpu_bo_va_op(buf_handle, 0, 4096, va, 0, AMDGPU_VA_OP_UNMAP); in amdgpu_cs_uvd_create() 269 r = amdgpu_bo_free(buf_handle); in amdgpu_cs_uvd_create() 278 amdgpu_bo_handle buf_handle; in amdgpu_cs_uvd_decode() local 295 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 | 312 amdgpu_bo_handle buf_handle = NULL; in gpu_mem_alloc() local 320 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in gpu_mem_alloc() 334 r = amdgpu_bo_va_op(buf_handle, 0, size, *vmc_addr, 0, in gpu_mem_alloc() 341 return buf_handle; in gpu_mem_alloc() 348 r = amdgpu_bo_free(buf_handle); in gpu_mem_alloc() 389 amdgpu_bo_handle buf_handle; in amdgpu_bo_alloc_wrap() local 397 r = amdgpu_bo_alloc(dev, &request, &buf_handle); in amdgpu_bo_alloc_wrap() 401 *bo = buf_handle; in amdgpu_bo_alloc_wrap()
|
D | vm_tests.c | 193 amdgpu_bo_handle buf_handle; in amdgpu_vm_unaligned_map() local 203 r = amdgpu_bo_alloc(device_handle, &request, &buf_handle); in amdgpu_vm_unaligned_map() 217 r = amdgpu_bo_va_op(buf_handle, 0, map_size, vmc_addr, 0, in amdgpu_vm_unaligned_map() 223 amdgpu_bo_va_op(buf_handle, 0, map_size, vmc_addr, 0, in amdgpu_vm_unaligned_map() 227 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 | 569 amdgpu_bo_handle buf_handle; in amdgpu_bo_alloc_and_map_raw() local 579 r = amdgpu_bo_alloc(dev, &request, &buf_handle); in amdgpu_bo_alloc_and_map_raw() 590 r = amdgpu_bo_va_op_raw(dev, buf_handle, 0, ALIGN(size, getpagesize()), vmc_addr, in amdgpu_bo_alloc_and_map_raw() 599 r = amdgpu_bo_cpu_map(buf_handle, cpu); in amdgpu_bo_alloc_and_map_raw() 603 *bo = buf_handle; in amdgpu_bo_alloc_and_map_raw() 610 amdgpu_bo_cpu_unmap(buf_handle); in amdgpu_bo_alloc_and_map_raw() 613 amdgpu_bo_va_op(buf_handle, 0, size, vmc_addr, 0, AMDGPU_VA_OP_UNMAP); in amdgpu_bo_alloc_and_map_raw() 616 amdgpu_bo_free(buf_handle); in amdgpu_bo_alloc_and_map_raw() 2034 amdgpu_bo_handle buf_handle; in amdgpu_userptr_test() local 2054 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 583 amdgpu_bo_handle *buf_handle); 595 int amdgpu_bo_set_metadata(amdgpu_bo_handle buf_handle, 612 int amdgpu_bo_query_info(amdgpu_bo_handle buf_handle, 630 int amdgpu_bo_export(amdgpu_bo_handle buf_handle, 692 amdgpu_bo_handle *buf_handle); 714 amdgpu_bo_handle *buf_handle, 735 int amdgpu_bo_free(amdgpu_bo_handle buf_handle); 759 int amdgpu_bo_cpu_map(amdgpu_bo_handle buf_handle, void **cpu); 772 int amdgpu_bo_cpu_unmap(amdgpu_bo_handle buf_handle); [all …]
|
D | amdgpu_bo.c | 45 amdgpu_bo_handle *buf_handle) in amdgpu_bo_create() argument 66 *buf_handle = bo; in amdgpu_bo_create() 72 amdgpu_bo_handle *buf_handle) in amdgpu_bo_alloc() argument 93 buf_handle); in amdgpu_bo_alloc() 312 output->buf_handle = bo; in amdgpu_bo_import() 369 output->buf_handle = bo; in amdgpu_bo_import() 387 drm_public int amdgpu_bo_free(amdgpu_bo_handle buf_handle) in amdgpu_bo_free() argument 390 struct amdgpu_bo *bo = buf_handle; in amdgpu_bo_free() 533 amdgpu_bo_handle *buf_handle, in amdgpu_find_bo_by_cpu_mapping() argument 560 *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/virglrenderer/src/ |
D | vrend_video.c | 142 uint32_t buf_handle) in get_video_buffer() argument 147 if (buf->handle == buf_handle) in get_video_buffer()
|
D | vrend_decode.c | 1754 uint32_t buf_handle = get_buf_entry(buf, VIRGL_DECODE_BS_BUF_HANDLE); in vrend_decode_decode_bitstream() local 1758 dsc_handle, 1, &buf_handle, &buf_size); in vrend_decode_decode_bitstream()
|
/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()
|