Home
last modified time | relevance | path

Searched refs:va_handle (Results 1 – 18 of 18) sorted by relevance

/third_party/libdrm/tests/amdgpu/
Dbo_tests.c41 static amdgpu_va_handle va_handle; variable
89 &va, &va_handle, 0); in suite_bo_tests_init()
103 amdgpu_va_range_free(va_handle); in suite_bo_tests_init()
120 r = amdgpu_va_range_free(va_handle); in suite_bo_tests_clean()
203 amdgpu_va_handle va_handle; in amdgpu_memory_alloc() local
212 &bo_mc, &va_handle); in amdgpu_memory_alloc()
214 r = gpu_mem_free(bo, va_handle, bo_mc, 4096); in amdgpu_memory_alloc()
222 &bo_mc, &va_handle); in amdgpu_memory_alloc()
224 r = gpu_mem_free(bo, va_handle, bo_mc, 4096); in amdgpu_memory_alloc()
231 0, &bo_mc, &va_handle); in amdgpu_memory_alloc()
[all …]
Damdgpu_test.h350 amdgpu_va_handle *va_handle) in gpu_mem_alloc() argument
366 if (vmc_addr && va_handle) { in gpu_mem_alloc()
370 va_handle, 0); in gpu_mem_alloc()
385 r = amdgpu_va_range_free(*va_handle); in gpu_mem_alloc()
396 amdgpu_va_handle va_handle, in gpu_mem_free() argument
405 if (va_handle) { in gpu_mem_free()
412 r = amdgpu_va_range_free(va_handle); in gpu_mem_free()
451 amdgpu_va_handle *va_handle);
457 amdgpu_va_handle *va_handle) in amdgpu_bo_alloc_and_map() argument
460 alloc_flags, 0, bo, cpu, mc_address, va_handle); in amdgpu_bo_alloc_and_map()
[all …]
Dcp_dma_tests.c84 amdgpu_va_handle va_handle; member
95 amdgpu_va_handle va_handle; in allocate_bo_and_va() local
110 &vmc_addr, &va_handle, 0); in allocate_bo_and_va()
123 bo->va_handle = va_handle; in allocate_bo_and_va()
134 amdgpu_va_range_free(va_handle); in allocate_bo_and_va()
144 amdgpu_va_handle va_handle; in import_dma_buf_to_bo() local
156 &vmc_addr, &va_handle, 0); in import_dma_buf_to_bo()
170 bo->va_handle = va_handle; in import_dma_buf_to_bo()
181 amdgpu_va_range_free(va_handle); in import_dma_buf_to_bo()
196 r = amdgpu_va_range_free(bo.va_handle); in free_bo()
Dcs_tests.c210 amdgpu_va_handle va_handle; in amdgpu_cs_uvd_create() local
223 &va_handle, 0); in amdgpu_cs_uvd_create()
266 r = amdgpu_va_range_free(va_handle); in amdgpu_cs_uvd_create()
279 amdgpu_va_handle va_handle; in amdgpu_cs_uvd_decode() local
301 &va_handle, 0); in amdgpu_cs_uvd_decode()
409 r = amdgpu_va_range_free(va_handle); in amdgpu_cs_uvd_decode()
420 amdgpu_va_handle va_handle; in amdgpu_cs_uvd_destroy() local
434 &va_handle, 0); in amdgpu_cs_uvd_destroy()
466 r = amdgpu_va_range_free(va_handle); in amdgpu_cs_uvd_destroy()
Ddeadlock_tests.c249 amdgpu_va_handle va_handle; in amdgpu_deadlock_helper() local
260 &ib_result_mc_address, &va_handle); in amdgpu_deadlock_helper()
320 r = amdgpu_bo_unmap_and_free(ib_result_handle, va_handle, in amdgpu_deadlock_helper()
340 amdgpu_va_handle va_handle; in amdgpu_deadlock_sdma() local
357 &ib_result_mc_address, &va_handle); in amdgpu_deadlock_sdma()
417 r = amdgpu_bo_unmap_and_free(ib_result_handle, va_handle, in amdgpu_deadlock_sdma()
437 amdgpu_va_handle va_handle; in bad_access_helper() local
445 &ib_result_mc_address, &va_handle); in bad_access_helper()
494 r = amdgpu_bo_unmap_and_free(ib_result_handle, va_handle, in bad_access_helper()
Dsecurity_tests.c370 amdgpu_va_handle va_handle; in amdgpu_security_alloc_buf_test() local
378 &bo_mc, &va_handle); in amdgpu_security_alloc_buf_test()
380 r = gpu_mem_free(bo, va_handle, bo_mc, 4096); in amdgpu_security_alloc_buf_test()
387 &bo_mc, &va_handle); in amdgpu_security_alloc_buf_test()
389 r = gpu_mem_free(bo, va_handle, bo_mc, 4096); in amdgpu_security_alloc_buf_test()
397 &bo_mc, &va_handle); in amdgpu_security_alloc_buf_test()
399 r = gpu_mem_free(bo, va_handle, bo_mc, 4096); in amdgpu_security_alloc_buf_test()
Dhotunplug_tests.c193 amdgpu_va_handle va_handle; in amdgpu_nop_cs() local
204 &ib_result_mc_address, &va_handle); in amdgpu_nop_cs()
230 amdgpu_bo_unmap_and_free(ib_result_handle, va_handle, in amdgpu_nop_cs()
355 amdgpu_va_handle va_handle; in amdgpu_hotunplug_with_exported_fence() local
376 &ib_result_mc_address, &va_handle); in amdgpu_hotunplug_with_exported_fence()
416 CU_ASSERT_EQUAL(amdgpu_bo_unmap_and_free(ib_result_handle, va_handle, in amdgpu_hotunplug_with_exported_fence()
Dvcn_tests.c41 amdgpu_va_handle va_handle; member
240 amdgpu_va_handle va_handle; in alloc_resource() local
251 &va_handle, 0); in alloc_resource()
259 vcn_bo->va_handle = va_handle; in alloc_resource()
275 r = amdgpu_va_range_free(vcn_bo->va_handle); in free_resource()
Duvd_enc_tests.c42 amdgpu_va_handle va_handle; member
201 amdgpu_va_handle va_handle; in alloc_resource() local
212 &va_handle, 0); in alloc_resource()
220 uvd_enc_bo->va_handle = va_handle; in alloc_resource()
236 r = amdgpu_va_range_free(uvd_enc_bo->va_handle); in free_resource()
Djpeg_tests.c114 amdgpu_va_handle va_handle; member
282 amdgpu_va_handle va_handle; in alloc_resource() local
291 req.alloc_size, 1, 0, &va, &va_handle, 0); in alloc_resource()
298 jpeg_bo->va_handle = va_handle; in alloc_resource()
314 r = amdgpu_va_range_free(jpeg_bo->va_handle); in free_resource()
Dbasic_tests.c702 amdgpu_va_handle *va_handle) in amdgpu_bo_alloc_and_map_raw() argument
741 *va_handle = handle; in amdgpu_bo_alloc_and_map_raw()
858 amdgpu_va_handle va_handle, va_handle_ce; in amdgpu_command_submission_gfx_separate_ibs() local
867 &ib_result_mc_address, &va_handle); in amdgpu_command_submission_gfx_separate_ibs()
921 r = amdgpu_bo_unmap_and_free(ib_result_handle, va_handle, in amdgpu_command_submission_gfx_separate_ibs()
949 amdgpu_va_handle va_handle; in amdgpu_command_submission_gfx_shared_ib() local
958 &ib_result_mc_address, &va_handle); in amdgpu_command_submission_gfx_shared_ib()
1005 r = amdgpu_bo_unmap_and_free(ib_result_handle, va_handle, in amdgpu_command_submission_gfx_shared_ib()
1209 amdgpu_va_handle va_handle[2]; in amdgpu_semaphore_test() local
1237 &ib_result_mc_address[i], &va_handle[i]); in amdgpu_semaphore_test()
[all …]
Dvm_tests.c108 amdgpu_va_handle va_handle; in amdgpu_vmid_reserve_test() local
134 &ib_result_mc_address, &va_handle); in amdgpu_vmid_reserve_test()
176 r = amdgpu_bo_unmap_and_free(ib_result_handle, va_handle, in amdgpu_vmid_reserve_test()
Dsyncobj_tests.c102 amdgpu_va_handle va_handle; in syncobj_command_submission_helper() local
126 &ib_result_mc_address, &va_handle); in syncobj_command_submission_helper()
183 r = amdgpu_bo_unmap_and_free(ib_result_handle, va_handle, in syncobj_command_submission_helper()
Dvce_tests.c44 amdgpu_va_handle va_handle; member
244 amdgpu_va_handle va_handle; in alloc_resource() local
255 &va_handle, 0); in alloc_resource()
263 vce_bo->va_handle = va_handle; in alloc_resource()
279 r = amdgpu_va_range_free(vce_bo->va_handle); in free_resource()
/third_party/mesa3d/src/amd/vulkan/winsys/amdgpu/
Dradv_amdgpu_bo.c366 amdgpu_va_range_free(bo->va_handle); in radv_amdgpu_winsys_bo_destroy()
382 amdgpu_va_handle va_handle; in radv_amdgpu_winsys_bo_create() local
405 &va, &va_handle, va_flags); in radv_amdgpu_winsys_bo_create()
413 bo->va_handle = va_handle; in radv_amdgpu_winsys_bo_create()
556 amdgpu_va_range_free(va_handle); in radv_amdgpu_winsys_bo_create()
612 amdgpu_va_handle va_handle; in radv_amdgpu_winsys_bo_from_ptr() local
635 &va_handle, AMDGPU_VA_RANGE_HIGH)) { in radv_amdgpu_winsys_bo_from_ptr()
647 bo->va_handle = va_handle; in radv_amdgpu_winsys_bo_from_ptr()
667 amdgpu_va_range_free(va_handle); in radv_amdgpu_winsys_bo_from_ptr()
684 amdgpu_va_handle va_handle; in radv_amdgpu_winsys_bo_from_fd() local
[all …]
Dradv_amdgpu_bo.h43 amdgpu_va_handle va_handle; member
/third_party/mesa3d/src/gallium/winsys/amdgpu/drm/
Damdgpu_bo.c212 amdgpu_va_range_free(bo->u.real.va_handle); in amdgpu_bo_destroy()
480 amdgpu_va_handle va_handle = NULL; in amdgpu_create_bo() local
568 0, &va, &va_handle, in amdgpu_create_bo()
600 bo->u.real.va_handle = va_handle; in amdgpu_create_bo()
617 amdgpu_va_range_free(va_handle); in amdgpu_create_bo()
1088 amdgpu_va_range_free(bo->u.sparse.va_handle); in amdgpu_bo_sparse_destroy()
1143 0, &bo->va, &bo->u.sparse.va_handle, in amdgpu_bo_sparse_create()
1156 amdgpu_va_range_free(bo->u.sparse.va_handle); in amdgpu_bo_sparse_create()
1469 amdgpu_va_handle va_handle = NULL; in amdgpu_bo_from_handle() local
1517 0, &va, &va_handle, AMDGPU_VA_RANGE_HIGH); in amdgpu_bo_from_handle()
[all …]
Damdgpu_bo.h62 amdgpu_va_handle va_handle; member
83 amdgpu_va_handle va_handle; member