Home
last modified time | relevance | path

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

/external/libdrm/tests/amdgpu/
Dcs_tests.c205 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 …]
Damdgpu_test.h210 amdgpu_bo_handle buf_handle; in gpu_mem_alloc() local
220 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in gpu_mem_alloc()
229 r = amdgpu_bo_va_op(buf_handle, 0, size, *vmc_addr, 0, AMDGPU_VA_OP_MAP); in gpu_mem_alloc()
232 return buf_handle; in gpu_mem_alloc()
260 amdgpu_bo_handle buf_handle; in amdgpu_bo_alloc_wrap() local
268 r = amdgpu_bo_alloc(dev, &request, &buf_handle); in amdgpu_bo_alloc_wrap()
272 *bo = buf_handle; in amdgpu_bo_alloc_wrap()
284 amdgpu_bo_handle buf_handle; in amdgpu_bo_alloc_and_map() local
294 r = amdgpu_bo_alloc(dev, &request, &buf_handle); in amdgpu_bo_alloc_and_map()
305 r = amdgpu_bo_va_op(buf_handle, 0, size, vmc_addr, 0, AMDGPU_VA_OP_MAP); in amdgpu_bo_alloc_and_map()
[all …]
Dbo_tests.c60 amdgpu_bo_handle buf_handle; in suite_bo_tests_init() local
79 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in suite_bo_tests_init()
90 r = amdgpu_bo_va_op(buf_handle, 0, BUFFER_SIZE, va, 0, AMDGPU_VA_OP_MAP); in suite_bo_tests_init()
94 buffer_handle = buf_handle; in suite_bo_tests_init()
103 amdgpu_bo_free(buf_handle); in suite_bo_tests_init()
144 CU_ASSERT_EQUAL(res.buf_handle, buffer_handle); in amdgpu_bo_export_import_do_type()
147 r = amdgpu_bo_free(res.buf_handle); in amdgpu_bo_export_import_do_type()
249 amdgpu_bo_handle buf_handle; in amdgpu_mem_fail_alloc() local
257 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in amdgpu_mem_fail_alloc()
Dvcn_tests.c194 amdgpu_bo_handle buf_handle; in alloc_resource() local
201 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in alloc_resource()
208 r = amdgpu_bo_va_op(buf_handle, 0, req.alloc_size, va, 0, in alloc_resource()
212 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()
Dvce_tests.c208 amdgpu_bo_handle buf_handle; in alloc_resource() local
215 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in alloc_resource()
222 r = amdgpu_bo_va_op(buf_handle, 0, req.alloc_size, va, 0, in alloc_resource()
226 vce_bo->handle = buf_handle; in alloc_resource()
Dbasic_tests.c1536 amdgpu_bo_handle buf_handle; in amdgpu_userptr_test() local
1556 ptr, BUFFER_SIZE, &buf_handle); in amdgpu_userptr_test()
1565 r = amdgpu_bo_va_op(buf_handle, 0, BUFFER_SIZE, bo_mc, 0, AMDGPU_VA_OP_MAP); in amdgpu_userptr_test()
1568 handle = buf_handle; in amdgpu_userptr_test()
1606 r = amdgpu_bo_va_op(buf_handle, 0, BUFFER_SIZE, bo_mc, 0, AMDGPU_VA_OP_UNMAP); in amdgpu_userptr_test()
1610 r = amdgpu_bo_free(buf_handle); in amdgpu_userptr_test()
/external/libdrm/amdgpu/
Damdgpu.h234 amdgpu_bo_handle buf_handle; member
564 amdgpu_bo_handle *buf_handle);
576 int amdgpu_bo_set_metadata(amdgpu_bo_handle buf_handle,
593 int amdgpu_bo_query_info(amdgpu_bo_handle buf_handle,
611 int amdgpu_bo_export(amdgpu_bo_handle buf_handle,
673 amdgpu_bo_handle *buf_handle);
693 int amdgpu_bo_free(amdgpu_bo_handle buf_handle);
707 int amdgpu_bo_cpu_map(amdgpu_bo_handle buf_handle, void **cpu);
720 int amdgpu_bo_cpu_unmap(amdgpu_bo_handle buf_handle);
735 int amdgpu_bo_wait_for_idle(amdgpu_bo_handle buf_handle,
Damdgpu_bo.c54 amdgpu_bo_handle *buf_handle) in amdgpu_bo_alloc() argument
93 *buf_handle = bo; in amdgpu_bo_alloc()
323 output->buf_handle = bo; in amdgpu_bo_import()
389 output->buf_handle = bo; in amdgpu_bo_import()
394 int amdgpu_bo_free(amdgpu_bo_handle buf_handle) in amdgpu_bo_free() argument
397 struct amdgpu_bo *bo = buf_handle; in amdgpu_bo_free()
536 amdgpu_bo_handle *buf_handle) in amdgpu_create_bo_from_user_mem() argument
560 *buf_handle = bo; in amdgpu_create_bo_from_user_mem()
/external/mesa3d/src/amd/vulkan/winsys/amdgpu/
Dradv_amdgpu_bo.c297 amdgpu_bo_handle buf_handle; in radv_amdgpu_winsys_bo_create() local
356 r = amdgpu_bo_alloc(ws->dev, &request, &buf_handle); in radv_amdgpu_winsys_bo_create()
365 r = radv_amdgpu_bo_va_op(ws, buf_handle, 0, size, va, flags, in radv_amdgpu_winsys_bo_create()
370 bo->bo = buf_handle; in radv_amdgpu_winsys_bo_create()
376 amdgpu_bo_free(buf_handle); in radv_amdgpu_winsys_bo_create()
427 r = amdgpu_bo_query_info(result.buf_handle, &info); in radv_amdgpu_winsys_bo_from_fd()
436 r = radv_amdgpu_bo_va_op(ws, result.buf_handle, 0, result.alloc_size, in radv_amdgpu_winsys_bo_from_fd()
446 bo->bo = result.buf_handle; in radv_amdgpu_winsys_bo_from_fd()
460 amdgpu_bo_free(result.buf_handle); in radv_amdgpu_winsys_bo_from_fd()
/external/mesa3d/src/gallium/winsys/amdgpu/drm/
Damdgpu_bo.c382 amdgpu_bo_handle buf_handle; in amdgpu_create_bo() local
426 r = amdgpu_bo_alloc(ws->dev, &request, &buf_handle); in amdgpu_create_bo()
449 r = amdgpu_bo_va_op_raw(ws->dev, buf_handle, 0, size, va, vm_flags, in amdgpu_create_bo()
460 bo->bo = buf_handle; in amdgpu_create_bo()
480 amdgpu_bo_free(buf_handle); in amdgpu_create_bo()
1293 r = amdgpu_bo_query_info(result.buf_handle, &info); in amdgpu_bo_from_handle()
1302 r = amdgpu_bo_va_op(result.buf_handle, 0, result.alloc_size, va, 0, AMDGPU_VA_OP_MAP); in amdgpu_bo_from_handle()
1314 bo->bo = result.buf_handle; in amdgpu_bo_from_handle()
1342 amdgpu_bo_free(result.buf_handle); in amdgpu_bo_from_handle()
1393 amdgpu_bo_handle buf_handle; in amdgpu_bo_from_ptr() local
[all …]
Damdgpu_cs.c265 amdgpu_bo_handle buf_handle; in amdgpu_ctx_create() local
284 r = amdgpu_bo_alloc(ctx->ws->dev, &alloc_buffer, &buf_handle); in amdgpu_ctx_create()
290 r = amdgpu_bo_cpu_map(buf_handle, (void**)&ctx->user_fence_cpu_address_base); in amdgpu_ctx_create()
297 ctx->user_fence_bo = buf_handle; in amdgpu_ctx_create()
302 amdgpu_bo_free(buf_handle); in amdgpu_ctx_create()
/external/mesa3d/src/mesa/main/
Dbufferobj.h84 struct gl_buffer_object **buf_handle,
Dbufferobj.c978 struct gl_buffer_object **buf_handle, in _mesa_handle_bind_buffer_gen() argument
981 struct gl_buffer_object *buf = *buf_handle; in _mesa_handle_bind_buffer_gen()
998 *buf_handle = buf; in _mesa_handle_bind_buffer_gen()