Home
last modified time | relevance | path

Searched refs:device_handle (Results 1 – 25 of 48) sorted by relevance

12

/third_party/libdrm/tests/amdgpu/
Ddeadlock_tests.c102 static amdgpu_device_handle device_handle; variable
129 &minor_version, &device_handle)) in suite_deadlock_tests_enable()
136 if (device_handle->info.family_id != AMDGPU_FAMILY_VI && in suite_deadlock_tests_enable()
137 device_handle->info.family_id != AMDGPU_FAMILY_AI && in suite_deadlock_tests_enable()
138 device_handle->info.family_id != AMDGPU_FAMILY_CI) { in suite_deadlock_tests_enable()
143 if (device_handle->info.family_id >= AMDGPU_FAMILY_AI) in suite_deadlock_tests_enable()
146 if (amdgpu_device_deinitialize(device_handle)) in suite_deadlock_tests_enable()
157 &minor_version, &device_handle); in suite_deadlock_tests_init()
172 int r = amdgpu_device_deinitialize(device_handle); in suite_deadlock_tests_clean()
236 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in amdgpu_deadlock_helper()
[all …]
Dbo_tests.c35 static amdgpu_device_handle device_handle; variable
68 &minor_version, &device_handle); in suite_bo_tests_init()
82 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in suite_bo_tests_init()
86 r = amdgpu_va_range_alloc(device_handle, in suite_bo_tests_init()
128 r = amdgpu_device_deinitialize(device_handle); in suite_bo_tests_clean()
144 r = amdgpu_bo_import(device_handle, type, shared_handle, &res); in amdgpu_bo_export_import_do_type()
208 bo = gpu_mem_alloc(device_handle, in amdgpu_memory_alloc()
218 bo = gpu_mem_alloc(device_handle, in amdgpu_memory_alloc()
228 bo = gpu_mem_alloc(device_handle, in amdgpu_memory_alloc()
237 bo = gpu_mem_alloc(device_handle, in amdgpu_memory_alloc()
[all …]
Dvm_tests.c30 static amdgpu_device_handle device_handle; variable
43 &minor_version, &device_handle)) in suite_vm_tests_enable()
46 if (device_handle->info.family_id == AMDGPU_FAMILY_SI) { in suite_vm_tests_enable()
51 if (amdgpu_device_deinitialize(device_handle)) in suite_vm_tests_enable()
62 &minor_version, &device_handle); in suite_vm_tests_init()
77 int r = amdgpu_device_deinitialize(device_handle); in suite_vm_tests_clean()
108 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in amdgpu_vmid_reserve_test()
112 r = amdgpu_vm_reserve_vmid(device_handle, flags); in amdgpu_vmid_reserve_test()
116 r = amdgpu_bo_alloc_and_map(device_handle, 4096, 4096, in amdgpu_vmid_reserve_test()
122 r = amdgpu_get_bo_list(device_handle, ib_result_handle, NULL, in amdgpu_vmid_reserve_test()
[all …]
Dsyncobj_tests.c32 static amdgpu_device_handle device_handle; variable
55 &minor_version, &device_handle); in suite_syncobj_timeline_tests_init()
70 int r = amdgpu_device_deinitialize(device_handle); in suite_syncobj_timeline_tests_clean()
104 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in syncobj_command_submission_helper()
107 r = amdgpu_bo_alloc_and_map(device_handle, 4096, 4096, in syncobj_command_submission_helper()
113 r = amdgpu_get_bo_list(device_handle, ib_result_handle, NULL, in syncobj_command_submission_helper()
143 r = amdgpu_cs_submit_raw(device_handle, in syncobj_command_submission_helper()
220 r = amdgpu_cs_create_syncobj2(device_handle, 0, &syncobj_handle); in amdgpu_syncobj_timeline_test()
244 r = amdgpu_cs_syncobj_query(device_handle, &syncobj_handle, in amdgpu_syncobj_timeline_test()
260 r = amdgpu_cs_syncobj_timeline_wait(device_handle, &syncobj_handle, in amdgpu_syncobj_timeline_test()
[all …]
Dbasic_tests.c44 static amdgpu_device_handle device_handle; variable
595 &minor_version, &device_handle); in suite_basic_tests_init()
605 r = amdgpu_query_gpu_info(device_handle, &gpu_info); in suite_basic_tests_init()
616 int r = amdgpu_device_deinitialize(device_handle); in suite_basic_tests_clean()
630 r = amdgpu_query_gpu_info(device_handle, &gpu_info); in amdgpu_query_info_test()
633 r = amdgpu_query_firmware_version(device_handle, AMDGPU_INFO_FW_VCE, 0, in amdgpu_query_info_test()
653 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in amdgpu_command_submission_gfx_separate_ibs()
656 r = amdgpu_bo_alloc_and_map(device_handle, 4096, 4096, in amdgpu_command_submission_gfx_separate_ibs()
662 r = amdgpu_bo_alloc_and_map(device_handle, 4096, 4096, in amdgpu_command_submission_gfx_separate_ibs()
668 r = amdgpu_get_bo_list(device_handle, ib_result_handle, in amdgpu_command_submission_gfx_separate_ibs()
[all …]
Dcs_tests.c38 static amdgpu_device_handle device_handle; variable
68 &minor_version, &device_handle)) in suite_cs_tests_enable()
71 family_id = device_handle->info.family_id; in suite_cs_tests_enable()
73 if (amdgpu_device_deinitialize(device_handle)) in suite_cs_tests_enable()
94 &minor_version, &device_handle); in suite_cs_tests_init()
104 family_id = device_handle->info.family_id; in suite_cs_tests_init()
106 chip_rev = device_handle->info.chip_rev; in suite_cs_tests_init()
107 chip_id = device_handle->info.chip_external_rev; in suite_cs_tests_init()
109 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in suite_cs_tests_init()
113 r = amdgpu_bo_alloc_and_map(device_handle, IB_SIZE, 4096, in suite_cs_tests_init()
[all …]
Dras_tests.c367 amdgpu_device_handle device_handle; member
481 static uint32_t amdgpu_ras_lookup_capability(amdgpu_device_handle device_handle) in amdgpu_ras_lookup_capability() argument
492 ret = amdgpu_query_info(device_handle, AMDGPU_INFO_RAS_ENABLED_FEATURES, in amdgpu_ras_lookup_capability()
534 static amdgpu_device_handle device_handle; variable
542 device_handle = devices[card].device_handle; in set_test_card()
596 ret = amdgpu_query_info(device_handle, AMDGPU_INFO_RAS_ENABLED_FEATURES, in amdgpu_ras_is_feature_enabled()
854 ret = amdgpu_query_info(device_handle, AMDGPU_INFO_RAS_ENABLED_FEATURES, in amdgpu_ras_basic_test()
906 amdgpu_device_handle device_handle; in suite_ras_tests_enable() local
914 &minor_version, &device_handle)) in suite_ras_tests_enable()
923 amdgpu_ras_lookup_capability(device_handle)) { in suite_ras_tests_enable()
[all …]
Dvcn_tests.c55 static amdgpu_device_handle device_handle; variable
95 &minor_version, &device_handle)) in suite_vcn_tests_enable()
98 family_id = device_handle->info.family_id; in suite_vcn_tests_enable()
99 asic_id = device_handle->info.asic_id; in suite_vcn_tests_enable()
101 if (amdgpu_device_deinitialize(device_handle)) in suite_vcn_tests_enable()
141 &minor_version, &device_handle); in suite_vcn_tests_init()
145 family_id = device_handle->info.family_id; in suite_vcn_tests_init()
147 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in suite_vcn_tests_init()
151 r = amdgpu_bo_alloc_and_map(device_handle, IB_SIZE, 4096, in suite_vcn_tests_init()
174 r = amdgpu_device_deinitialize(device_handle); in suite_vcn_tests_clean()
[all …]
Damdgpu_test.h239 void amdgpu_dispatch_hang_helper(amdgpu_device_handle device_handle, uint32_t ip_type);
240 void amdgpu_dispatch_hang_slow_helper(amdgpu_device_handle device_handle, uint32_t ip_type);
241 void amdgpu_memcpy_draw_test(amdgpu_device_handle device_handle, uint32_t ring,
243 void amdgpu_memcpy_draw_hang_slow_test(amdgpu_device_handle device_handle, uint32_t ring);
249 amdgpu_device_handle device_handle, in gpu_mem_alloc() argument
266 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in gpu_mem_alloc()
272 r = amdgpu_va_range_alloc(device_handle, in gpu_mem_alloc()
Duvd_enc_tests.c58 static amdgpu_device_handle device_handle; variable
93 &minor_version, &device_handle)) in suite_uvd_enc_tests_enable()
96 r = amdgpu_query_hw_ip_info(device_handle, AMDGPU_HW_IP_UVD_ENC, 0, &info); in suite_uvd_enc_tests_enable()
98 if (amdgpu_device_deinitialize(device_handle)) in suite_uvd_enc_tests_enable()
113 &minor_version, &device_handle); in suite_uvd_enc_tests_init()
117 family_id = device_handle->info.family_id; in suite_uvd_enc_tests_init()
119 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in suite_uvd_enc_tests_init()
123 r = amdgpu_bo_alloc_and_map(device_handle, IB_SIZE, 4096, in suite_uvd_enc_tests_init()
146 r = amdgpu_device_deinitialize(device_handle); in suite_uvd_enc_tests_clean()
166 r = amdgpu_bo_list_create(device_handle, num_resources, resources, in submit()
[all …]
Dvce_tests.c64 static amdgpu_device_handle device_handle; variable
103 &minor_version, &device_handle)) in suite_vce_tests_enable()
106 family_id = device_handle->info.family_id; in suite_vce_tests_enable()
107 chip_rev = device_handle->info.chip_rev; in suite_vce_tests_enable()
108 chip_id = device_handle->info.chip_external_rev; in suite_vce_tests_enable()
109 ids_flags = device_handle->info.ids_flags; in suite_vce_tests_enable()
111 amdgpu_query_firmware_version(device_handle, AMDGPU_INFO_FW_VCE, 0, in suite_vce_tests_enable()
114 if (amdgpu_device_deinitialize(device_handle)) in suite_vce_tests_enable()
146 &minor_version, &device_handle); in suite_vce_tests_init()
156 family_id = device_handle->info.family_id; in suite_vce_tests_init()
[all …]
/third_party/e2fsprogs/ext2ed/
Ddisk.c49 if (device_handle==NULL) { /* Check that a device is indeed open */ in low_read()
61 if ( (fseek (device_handle,offset,SEEK_SET))==-1) { /* Seek to the required offset */ in low_read()
67 if ( (fread (buffer,1,length,device_handle))==-1) { /* And do the actual reading */ in low_read()
100 if (device_handle==NULL) { in low_write()
117 if ( (fseek (device_handle,offset,SEEK_SET))==-1) { in low_write()
123 if ( (fwrite (buffer,1,length,device_handle))==-1) { in low_write()
199 if (device_handle==NULL) { in load_type_data()
222 if (device_handle==NULL) { in write_type_data()
Dgeneral_com.c172 if (device_handle!=NULL) in set_device()
173 fclose (device_handle); in set_device()
175 if ( (device_handle=fopen (new_device,"rb"))==NULL) { in set_device()
189 fclose (device_handle); in set_device()
190 device_handle=NULL; /* Notice that our device is still not set up */ in set_device()
209 if (device_handle==NULL) { in set_offset()
263 if ( (fseek (device_handle,new_offset,SEEK_SET))==-1) { in set_offset()
367 if (device_handle==NULL) { in set()
622 if (device_handle==NULL) in show()
778 if (device_handle==NULL) { in remember()
[all …]
/third_party/gstreamer/gstplugins_bad/sys/d3d11/
Dgstd3d11shader.cpp96 ID3D11Device *device_handle; in compile_shader() local
107 device_handle = gst_d3d11_device_get_device_handle (device); in compile_shader()
108 feature_level = device_handle->GetFeatureLevel (); in compile_shader()
160 ID3D11Device *device_handle; in gst_d3d11_create_pixel_shader() local
175 device_handle = gst_d3d11_device_get_device_handle (device); in gst_d3d11_create_pixel_shader()
176 hr = device_handle->CreatePixelShader (ps_blob->GetBufferPointer (), in gst_d3d11_create_pixel_shader()
191 ID3D11Device *device_handle; in gst_d3d11_create_vertex_shader() local
211 device_handle = gst_d3d11_device_get_device_handle (device); in gst_d3d11_create_vertex_shader()
212 hr = device_handle->CreateVertexShader (vs_blob->GetBufferPointer (), in gst_d3d11_create_vertex_shader()
219 hr = device_handle->CreateInputLayout (input_desc, in gst_d3d11_create_vertex_shader()
Dgstd3d11window_dummy.cpp256 ID3D11Device *device_handle = in gst_d3d11_window_dummy_setup_fallback_texture() local
292 hr = device_handle->CreateTexture2D (&desc, NULL, &self->fallback_texture); in gst_d3d11_window_dummy_setup_fallback_texture()
302 hr = device_handle->CreateRenderTargetView (self->fallback_texture, &rtv_desc, in gst_d3d11_window_dummy_setup_fallback_texture()
336 ID3D11Device *device_handle; in gst_d3d11_window_dummy_open_shared_handle() local
346 device_handle = gst_d3d11_device_get_device_handle (device); in gst_d3d11_window_dummy_open_shared_handle()
352 hr = device_handle->QueryInterface (IID_PPV_ARGS (&device1_handle)); in gst_d3d11_window_dummy_open_shared_handle()
359 hr = device_handle->OpenSharedResource (data->shared_handle, in gst_d3d11_window_dummy_open_shared_handle()
409 hr = device_handle->CreateRenderTargetView ((ID3D11Resource *) texture, in gst_d3d11_window_dummy_open_shared_handle()
468 ID3D11Device *device_handle = gst_d3d11_device_get_device_handle (device); in gst_d3d11_window_dummy_release_shared_handle() local
478 hr = device_handle->CreateQuery (&query_desc, &query); in gst_d3d11_window_dummy_release_shared_handle()
Dgstd3d11overlaycompositor.cpp127 ID3D11Device *device_handle; in gst_d3d11_composition_overlay_new() local
146 device_handle = gst_d3d11_device_get_device_handle (device); in gst_d3d11_composition_overlay_new()
191 hr = device_handle->CreateTexture2D (&texture_desc, in gst_d3d11_composition_overlay_new()
203 hr = device_handle->CreateShaderResourceView (texture.Get (), &srv_desc, in gst_d3d11_composition_overlay_new()
215 hr = device_handle->CreateBuffer (&buffer_desc, NULL, &vertex_buffer); in gst_d3d11_composition_overlay_new()
321 ID3D11Device *device_handle; in gst_d3d11_overlay_compositor_setup_shader() local
338 device_handle = gst_d3d11_device_get_device_handle (device); in gst_d3d11_overlay_compositor_setup_shader()
350 hr = device_handle->CreateSamplerState (&sampler_desc, &sampler); in gst_d3d11_overlay_compositor_setup_shader()
397 hr = device_handle->CreateBlendState (&blend_desc, &blend); in gst_d3d11_overlay_compositor_setup_shader()
408 hr = device_handle->CreateBuffer (&buffer_desc, NULL, &index_buffer); in gst_d3d11_overlay_compositor_setup_shader()
Dgstd3d11screencapture.cpp257 ID3D11Device *device_handle; in Init() local
270 device_handle = gst_d3d11_device_get_device_handle (device); in Init()
286 hr = device_handle->CreateTexture2D (&texture_desc, in Init()
365 ID3D11Device *device_handle = gst_d3d11_device_get_device_handle (device); in DrawMouse() local
467 HRESULT hr = device_handle->CreateTexture2D(&Desc, &InitData, &MouseTex); in DrawMouse()
474 hr = device_handle->CreateShaderResourceView(MouseTex.Get(), &SDesc, in DrawMouse()
492 hr = device_handle->CreateBuffer(&BDesc, &InitData, &VertexBufferMouse); in DrawMouse()
549 ID3D11Device *device_handle = nullptr; in CopyToTexture() local
554 device_handle = gst_d3d11_device_get_device_handle (device); in CopyToTexture()
564 hr = device_handle->OpenSharedResource (shared_handle, in CopyToTexture()
[all …]
Dplugin.cpp177 ID3D11Device *device_handle; in plugin_init() local
184 device_handle = gst_d3d11_device_get_device_handle (device); in plugin_init()
185 feature_level = device_handle->GetFeatureLevel (); in plugin_init()
/third_party/ffmpeg/libavutil/
Dhwcontext_dxva2.c63 HANDLE device_handle; member
73 HANDLE device_handle; member
114 if (s->device_handle != INVALID_HANDLE_VALUE) { in dxva2_frames_uninit()
115 IDirect3DDeviceManager9_CloseDeviceHandle(device_hwctx->devmgr, s->device_handle); in dxva2_frames_uninit()
116 s->device_handle = INVALID_HANDLE_VALUE; in dxva2_frames_uninit()
155 hr = IDirect3DDeviceManager9_OpenDeviceHandle(device_hwctx->devmgr, &s->device_handle); in dxva2_init_pool()
162 s->device_handle, in dxva2_init_pool()
222 s->device_handle = INVALID_HANDLE_VALUE; in dxva2_frames_init()
414 if (hwctx->devmgr && priv->device_handle != INVALID_HANDLE_VALUE) in dxva2_device_free()
415 IDirect3DDeviceManager9_CloseDeviceHandle(hwctx->devmgr, priv->device_handle); in dxva2_device_free()
[all …]
/third_party/gstreamer/gstplugins_bad/tests/check/libs/
Dd3d11device.cpp124 ID3D11Device *device_handle, *device_handle_clone; in GST_START_TEST() local
136 device_handle = gst_d3d11_device_get_device_handle (device); in GST_START_TEST()
137 fail_unless (device_handle != nullptr); in GST_START_TEST()
145 device_clone = gst_d3d11_device_new_wrapped (device_handle); in GST_START_TEST()
149 fail_unless_equals_pointer (device_handle, device_handle_clone); in GST_START_TEST()
/third_party/gstreamer/gstplugins_bad/sys/mediafoundation/
Dplugin.c119 ID3D11Device *device_handle; in get_d3d11_devices() local
154 device_handle = gst_d3d11_device_get_device_handle (device); in get_d3d11_devices()
155 hr = ID3D11Device_CheckFeatureSupport (device_handle, in get_d3d11_devices()
166 hr = ID3D11Device_CheckFormatSupport (device_handle, in get_d3d11_devices()
/third_party/gstreamer/gstplugins_good/sys/oss4/
Doss4-property-probe.c120 const gchar * device_handle, gchar ** device_name) in gst_oss4_property_probe_find_device_name() argument
136 if (strcmp (ai.devnode, device_handle) == 0) { in gst_oss4_property_probe_find_device_name()
149 GST_LOG_OBJECT (obj, "device %s not listed in AUDIOINFO", device_handle); in gst_oss4_property_probe_find_device_name()
165 const gchar * device_handle, gchar ** device_name) in gst_oss4_property_probe_find_device_name_nofd() argument
174 res = gst_oss4_property_probe_find_device_name (obj, fd, device_handle, in gst_oss4_property_probe_find_device_name_nofd()
Doss4-property-probe.h33 const gchar * device_handle,
37 const gchar * device_handle,
/third_party/libdrm/amdgpu/
Damdgpu_device.c146 amdgpu_device_handle *device_handle) in amdgpu_device_initialize() argument
156 *device_handle = NULL; in amdgpu_device_initialize()
184 amdgpu_device_reference(device_handle, dev); in amdgpu_device_initialize()
267 *device_handle = dev; in amdgpu_device_initialize()
/third_party/gstreamer/gstplugins_bad/gst-libs/gst/d3d11/
Dgstd3d11memory.cpp298 ID3D11Device *device_handle = gst_d3d11_device_get_device_handle (device); in gst_d3d11_allocate_staging_texture() local
310 hr = device_handle->CreateTexture2D (&desc, NULL, &texture); in gst_d3d11_allocate_staging_texture()
647 ID3D11Device *device_handle; in create_shader_resource_views() local
653 device_handle = gst_d3d11_device_get_device_handle (mem->device); in create_shader_resource_views()
705 hr = device_handle->CreateShaderResourceView (priv->texture, in create_shader_resource_views()
815 ID3D11Device *device_handle; in create_render_target_views() local
821 device_handle = gst_d3d11_device_get_device_handle (mem->device); in create_render_target_views()
862 hr = device_handle->CreateRenderTargetView (priv->texture, &render_desc, in create_render_target_views()
1261 ID3D11Device *device_handle = gst_d3d11_device_get_device_handle (device); in gst_d3d11_memory_copy() local
1298 hr = device_handle->CheckFormatSupport (src_desc.Format, &supported_flags); in gst_d3d11_memory_copy()
[all …]

12