Home
last modified time | relevance | path

Searched refs:buf_handle (Results 1 – 20 of 20) sorted by relevance

/third_party/libdrm/tests/amdgpu/
Dcp_dma_tests.c83 amdgpu_bo_handle buf_handle; member
94 amdgpu_bo_handle buf_handle; in allocate_bo_and_va() local
104 r = amdgpu_bo_alloc(dev, &request, &buf_handle); in allocate_bo_and_va()
114 r = amdgpu_bo_va_op(buf_handle, 0, size, vmc_addr, in allocate_bo_and_va()
122 bo->buf_handle = buf_handle; in allocate_bo_and_va()
130 amdgpu_bo_va_op(buf_handle, 0, in allocate_bo_and_va()
137 amdgpu_bo_free(buf_handle); in allocate_bo_and_va()
160 r = amdgpu_bo_va_op(bo_import_result.buf_handle, 0, in import_dma_buf_to_bo()
169 bo->buf_handle = bo_import_result.buf_handle; in import_dma_buf_to_bo()
177 amdgpu_bo_va_op(bo_import_result.buf_handle, 0, in import_dma_buf_to_bo()
[all …]
Dcs_tests.c208 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 …]
Dbo_tests.c63 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()
Damdgpu_test.h353 amdgpu_bo_handle buf_handle = NULL; in gpu_mem_alloc() local
361 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in gpu_mem_alloc()
375 r = amdgpu_bo_va_op(buf_handle, 0, size, *vmc_addr, 0, in gpu_mem_alloc()
382 return buf_handle; in gpu_mem_alloc()
389 r = amdgpu_bo_free(buf_handle); in gpu_mem_alloc()
430 amdgpu_bo_handle buf_handle; in amdgpu_bo_alloc_wrap() local
438 r = amdgpu_bo_alloc(dev, &request, &buf_handle); in amdgpu_bo_alloc_wrap()
442 *bo = buf_handle; in amdgpu_bo_alloc_wrap()
Dvm_tests.c193 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()
Dvcn_tests.c239 amdgpu_bo_handle buf_handle; in alloc_resource() local
246 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in alloc_resource()
253 r = amdgpu_bo_va_op(buf_handle, 0, req.alloc_size, va, 0, in alloc_resource()
257 vcn_bo->handle = buf_handle; in alloc_resource()
Duvd_enc_tests.c200 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()
Djpeg_tests.c281 amdgpu_bo_handle buf_handle; in alloc_resource() local
288 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in alloc_resource()
293 r = amdgpu_bo_va_op(buf_handle, 0, req.alloc_size, va, 0, AMDGPU_VA_OP_MAP); in alloc_resource()
296 jpeg_bo->handle = buf_handle; in alloc_resource()
Dbasic_tests.c705 amdgpu_bo_handle buf_handle; in amdgpu_bo_alloc_and_map_raw() local
715 r = amdgpu_bo_alloc(dev, &request, &buf_handle); in amdgpu_bo_alloc_and_map_raw()
726 r = amdgpu_bo_va_op_raw(dev, buf_handle, 0, ALIGN(size, getpagesize()), vmc_addr, in amdgpu_bo_alloc_and_map_raw()
735 r = amdgpu_bo_cpu_map(buf_handle, cpu); in amdgpu_bo_alloc_and_map_raw()
739 *bo = buf_handle; in amdgpu_bo_alloc_and_map_raw()
746 amdgpu_bo_cpu_unmap(buf_handle); in amdgpu_bo_alloc_and_map_raw()
749 amdgpu_bo_va_op(buf_handle, 0, size, vmc_addr, 0, AMDGPU_VA_OP_UNMAP); in amdgpu_bo_alloc_and_map_raw()
752 amdgpu_bo_free(buf_handle); in amdgpu_bo_alloc_and_map_raw()
2170 amdgpu_bo_handle buf_handle; in amdgpu_userptr_test() local
2190 ptr, BUFFER_SIZE, &buf_handle); in amdgpu_userptr_test()
[all …]
Dvce_tests.c243 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()
/third_party/libdrm/amdgpu/
Damdgpu.h240 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 …]
Damdgpu_bo.c45 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 …]
/third_party/mesa3d/src/virtio/vulkan/
Dvn_buffer.c98 VkBuffer buf_handle = VK_NULL_HANDLE; in vn_buffer_cache_entries_create() local
116 result = vn_CreateBuffer(dev_handle, &local_info, alloc, &buf_handle); in vn_buffer_cache_entries_create()
122 buf = vn_buffer_from_handle(buf_handle); in vn_buffer_cache_entries_create()
137 vn_DestroyBuffer(dev_handle, buf_handle, alloc); in vn_buffer_cache_entries_create()
162 VkBuffer buf_handle; in vn_buffer_get_max_buffer_size() local
185 if (vn_CreateBuffer(dev_handle, &create_info, alloc, &buf_handle) == in vn_buffer_get_max_buffer_size()
187 vn_DestroyBuffer(dev_handle, buf_handle, alloc); in vn_buffer_get_max_buffer_size()
295 VkBuffer buf_handle = vn_buffer_to_handle(buf); in vn_buffer_init() local
301 &buf_handle); in vn_buffer_init()
306 NULL, &buf_handle); in vn_buffer_init()
[all …]
/third_party/mesa3d/src/amd/vulkan/winsys/amdgpu/
Dradv_amdgpu_bo.c380 amdgpu_bo_handle buf_handle; in radv_amdgpu_winsys_bo_create() local
500 r = amdgpu_bo_alloc(ws->dev, &request, &buf_handle); in radv_amdgpu_winsys_bo_create()
510 r = radv_amdgpu_bo_va_op(ws, buf_handle, 0, size, va, flags, 0, AMDGPU_VA_OP_MAP); in radv_amdgpu_winsys_bo_create()
516 bo->bo = buf_handle; in radv_amdgpu_winsys_bo_create()
521 r = amdgpu_bo_export(buf_handle, amdgpu_bo_handle_type_kms, &bo->bo_handle); in radv_amdgpu_winsys_bo_create()
550 amdgpu_bo_free(buf_handle); in radv_amdgpu_winsys_bo_create()
609 amdgpu_bo_handle buf_handle; in radv_amdgpu_winsys_bo_from_ptr() local
624 if (amdgpu_create_bo_from_user_mem(ws->dev, pointer, size, &buf_handle)) { in radv_amdgpu_winsys_bo_from_ptr()
640 if (amdgpu_bo_va_op(buf_handle, 0, size, va, 0, AMDGPU_VA_OP_MAP)) { in radv_amdgpu_winsys_bo_from_ptr()
649 bo->bo = buf_handle; in radv_amdgpu_winsys_bo_from_ptr()
[all …]
/third_party/mesa3d/src/gallium/winsys/amdgpu/drm/
Damdgpu_bo.c477 amdgpu_bo_handle buf_handle; in amdgpu_create_bo() local
553 r = amdgpu_bo_alloc(ws->dev, &request, &buf_handle); in amdgpu_create_bo()
587 r = amdgpu_bo_va_op_raw(ws->dev, buf_handle, 0, size, va, vm_flags, in amdgpu_create_bo()
598 bo->bo = buf_handle; in amdgpu_create_bo()
620 amdgpu_bo_free(buf_handle); in amdgpu_create_bo()
1491 bo = util_hash_table_get(ws->bo_export_table, result.buf_handle); in amdgpu_bo_from_handle()
1504 amdgpu_bo_free(result.buf_handle); in amdgpu_bo_from_handle()
1509 r = amdgpu_bo_query_info(result.buf_handle, &info); in amdgpu_bo_from_handle()
1525 r = amdgpu_bo_va_op_raw(ws->dev, result.buf_handle, 0, result.alloc_size, va, in amdgpu_bo_from_handle()
1554 bo->bo = result.buf_handle; in amdgpu_bo_from_handle()
[all …]
Damdgpu_cs.c300 amdgpu_bo_handle buf_handle; in amdgpu_ctx_create() local
319 r = amdgpu_bo_alloc(ctx->ws->dev, &alloc_buffer, &buf_handle); in amdgpu_ctx_create()
325 r = amdgpu_bo_cpu_map(buf_handle, (void**)&ctx->user_fence_cpu_address_base); in amdgpu_ctx_create()
332 ctx->user_fence_bo = buf_handle; in amdgpu_ctx_create()
337 amdgpu_bo_free(buf_handle); in amdgpu_ctx_create()
/third_party/mesa3d/src/gallium/drivers/svga/
Dsvga_state_constants.c652 struct svga_winsys_surface *buf_handle = NULL; in emit_rawbuf() local
675 buf_handle = svga_buffer_handle(svga, buffer, in emit_rawbuf()
677 if (!buf_handle) { in emit_rawbuf()
691 srvid, buf_handle, SVGA3D_R32_TYPELESS, in emit_rawbuf()
703 rawbuf->handle = buf_handle; in emit_rawbuf()
711 buf_handle = rawbuf->handle; in emit_rawbuf()
721 &buf_handle); in emit_rawbuf()
/third_party/mesa3d/src/mesa/main/
Dbufferobj.h142 struct gl_buffer_object **buf_handle,
Dbufferobj.c1343 struct gl_buffer_object **buf_handle, in _mesa_handle_bind_buffer_gen() argument
1346 struct gl_buffer_object *buf = *buf_handle; in _mesa_handle_bind_buffer_gen()
1357 *buf_handle = new_gl_buffer_object(ctx, buffer); in _mesa_handle_bind_buffer_gen()
1358 if (!*buf_handle) { in _mesa_handle_bind_buffer_gen()
1365 *buf_handle, buf != NULL); in _mesa_handle_bind_buffer_gen()
/third_party/mesa3d/src/amd/common/
Dac_gpu_info.c258 amdgpu_bo_handle *buf_handle) in amdgpu_bo_alloc() argument
262 static int amdgpu_bo_free(amdgpu_bo_handle buf_handle) in amdgpu_bo_free() argument