Home
last modified time | relevance | path

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

12

/external/libdrm/tests/amdgpu/
Ddeadlock_tests.c102 static amdgpu_device_handle device_handle; variable
130 &minor_version, &device_handle)) in suite_deadlock_tests_enable()
137 if (device_handle->info.family_id != AMDGPU_FAMILY_VI && in suite_deadlock_tests_enable()
138 device_handle->info.family_id != AMDGPU_FAMILY_AI && in suite_deadlock_tests_enable()
139 device_handle->info.family_id != AMDGPU_FAMILY_CI) { in suite_deadlock_tests_enable()
144 asic_id = device_handle->info.asic_id; in suite_deadlock_tests_enable()
153 if (device_handle->info.family_id >= AMDGPU_FAMILY_AI) in suite_deadlock_tests_enable()
156 if (amdgpu_device_deinitialize(device_handle)) in suite_deadlock_tests_enable()
167 &minor_version, &device_handle); in suite_deadlock_tests_init()
182 int r = amdgpu_device_deinitialize(device_handle); in suite_deadlock_tests_clean()
[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()
110 r = amdgpu_query_gpu_info(device_handle, &gpu_info); in amdgpu_vmid_reserve_test()
116 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in amdgpu_vmid_reserve_test()
120 r = amdgpu_vm_reserve_vmid(device_handle, flags); in amdgpu_vmid_reserve_test()
124 r = amdgpu_bo_alloc_and_map(device_handle, 4096, 4096, in amdgpu_vmid_reserve_test()
[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 …]
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 …]
Dcs_tests.c38 static amdgpu_device_handle device_handle; variable
70 &minor_version, &device_handle)) in suite_cs_tests_enable()
73 family_id = device_handle->info.family_id; in suite_cs_tests_enable()
74 asic_id = device_handle->info.asic_id; in suite_cs_tests_enable()
76 if (amdgpu_device_deinitialize(device_handle)) in suite_cs_tests_enable()
98 &minor_version, &device_handle); in suite_cs_tests_init()
108 family_id = device_handle->info.family_id; in suite_cs_tests_init()
110 chip_rev = device_handle->info.chip_rev; in suite_cs_tests_init()
111 chip_id = device_handle->info.chip_external_rev; in suite_cs_tests_init()
113 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in suite_cs_tests_init()
[all …]
Dbasic_tests.c45 static amdgpu_device_handle device_handle; variable
623 &minor_version, &device_handle)) in suite_basic_tests_enable()
626 asic_id = device_handle->info.asic_id; in suite_basic_tests_enable()
628 if (amdgpu_device_deinitialize(device_handle)) in suite_basic_tests_enable()
661 &minor_version, &device_handle); in suite_basic_tests_init()
671 r = amdgpu_query_gpu_info(device_handle, &gpu_info); in suite_basic_tests_init()
682 int r = amdgpu_device_deinitialize(device_handle); in suite_basic_tests_clean()
696 r = amdgpu_query_gpu_info(device_handle, &gpu_info); in amdgpu_query_info_test()
699 r = amdgpu_query_firmware_version(device_handle, AMDGPU_INFO_FW_VCE, 0, in amdgpu_query_info_test()
719 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in amdgpu_command_submission_gfx_separate_ibs()
[all …]
Dsecurity_tests.c40 static amdgpu_device_handle device_handle; variable
273 sb_ctx.dev = device_handle; in amdgpu_secure_bounce()
293 res = amdgpu_bo_alloc_map(device_handle, in amdgpu_secure_bounce()
314 res = amdgpu_bo_alloc_map(device_handle, in amdgpu_secure_bounce()
375 bo = gpu_mem_alloc(device_handle, 4096, 4096, in amdgpu_security_alloc_buf_test()
384 bo = gpu_mem_alloc(device_handle, 4096, 4096, in amdgpu_security_alloc_buf_test()
393 bo = gpu_mem_alloc(device_handle, 4096, 4096, in amdgpu_security_alloc_buf_test()
405 amdgpu_command_submission_write_linear_helper_with_secure(device_handle, in amdgpu_security_gfx_submission_test()
412 amdgpu_command_submission_write_linear_helper_with_secure(device_handle, in amdgpu_security_sdma_submission_test()
432 &minor_version, &device_handle)) in suite_security_tests_enable()
[all …]
Dvcn_tests.c55 static amdgpu_device_handle device_handle; variable
101 &minor_version, &device_handle)) in suite_vcn_tests_enable()
104 family_id = device_handle->info.family_id; in suite_vcn_tests_enable()
105 asic_id = device_handle->info.asic_id; in suite_vcn_tests_enable()
106 chip_rev = device_handle->info.chip_rev; in suite_vcn_tests_enable()
107 chip_id = device_handle->info.chip_external_rev; in suite_vcn_tests_enable()
109 r = amdgpu_query_hw_ip_info(device_handle, AMDGPU_HW_IP_VCN_DEC, 0, &info); in suite_vcn_tests_enable()
111 if (amdgpu_device_deinitialize(device_handle)) in suite_vcn_tests_enable()
176 &minor_version, &device_handle); in suite_vcn_tests_init()
180 family_id = device_handle->info.family_id; in suite_vcn_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 …]
Damdgpu_test.h244 void amdgpu_dispatch_hang_helper(amdgpu_device_handle device_handle, uint32_t ip_type);
245 void amdgpu_dispatch_hang_slow_helper(amdgpu_device_handle device_handle, uint32_t ip_type);
246 void amdgpu_memcpy_draw_test(amdgpu_device_handle device_handle, uint32_t ring,
248 void amdgpu_memcpy_draw_hang_slow_test(amdgpu_device_handle device_handle, uint32_t ring);
280 amdgpu_device_handle device_handle, in gpu_mem_alloc() argument
297 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in gpu_mem_alloc()
303 r = amdgpu_va_range_alloc(device_handle, in gpu_mem_alloc()
465 void amdgpu_test_exec_cs_helper_raw(amdgpu_device_handle device_handle,
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()
110 asic_id = device_handle->info.asic_id; in suite_vce_tests_enable()
112 amdgpu_query_firmware_version(device_handle, AMDGPU_INFO_FW_VCE, 0, in suite_vce_tests_enable()
115 if (amdgpu_device_deinitialize(device_handle)) in suite_vce_tests_enable()
148 &minor_version, &device_handle); in suite_vce_tests_init()
[all …]
Damdgpu_test.c431 amdgpu_device_handle device_handle; in amdgpu_disable_suites() local
437 &minor_version, &device_handle)) in amdgpu_disable_suites()
440 family_id = device_handle->info.family_id; in amdgpu_disable_suites()
442 if (amdgpu_device_deinitialize(device_handle)) in amdgpu_disable_suites()
/external/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 …]
Dinit.c41 if (device_handle!=NULL) in prepare_to_close()
42 fclose (device_handle); in prepare_to_close()
61 device_handle=NULL; /* Notice that our device is still not set up */ in init()
/external/tensorflow/tensorflow/compiler/xla/client/
Dclient.cc69 const LiteralSlice& literal, const DeviceHandle* device_handle) { in TransferToServer() argument
72 if (device_handle) { in TransferToServer()
73 *request.mutable_device_handle() = *device_handle; in TransferToServer()
97 const DeviceHandle* device_handle) { in TransferToInfeed() argument
100 if (device_handle) { in TransferToInfeed()
101 *request.mutable_device_handle() = *device_handle; in TransferToInfeed()
120 const DeviceHandle* device_handle) { in TransferFromOutfeed() argument
122 if (device_handle) { in TransferFromOutfeed()
123 *request.mutable_device_handle() = *device_handle; in TransferFromOutfeed()
383 for (const DeviceHandle& device_handle : response.device_handles()) { in GetDeviceHandles() local
[all …]
Dclient.h145 const LiteralSlice& literal, const DeviceHandle* device_handle = nullptr);
153 const DeviceHandle* device_handle = nullptr);
162 const DeviceHandle* device_handle = nullptr);
/external/tensorflow/tensorflow/compiler/xla/service/
Dservice.cc472 Backend* backend, const DeviceHandle& device_handle, in ExecuteAndRegisterResult() argument
477 TF_ASSIGN_OR_RETURN(auto replicas, Replicas(*backend, device_handle)); in ExecuteAndRegisterResult()
540 for (const auto& device_handle : execution_options.device_handles()) { in GetExecutors() local
542 Replicas(*execute_backend_, device_handle)); in GetExecutors()
747 DeviceHandle device_handle; in GetDeviceHandles() local
748 device_handle.set_handle(i); in GetDeviceHandles()
749 device_handle.set_device_count(arg->device_count()); in GetDeviceHandles()
750 *result->add_device_handles() = device_handle; in GetDeviceHandles()
957 Replicas(*execute_backend_, arg->device_handle())); in TransferToServer()
1000 Replicas(*execute_backend_, arg->device_handle())); in TransferToInfeed()
[all …]
Dservice.h256 Backend* backend, const DeviceHandle& device_handle,
278 const Backend& backend, const DeviceHandle& device_handle) const;
/external/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()
Damdgpu.h528 amdgpu_device_handle *device_handle);
547 int amdgpu_device_deinitialize(amdgpu_device_handle device_handle);
/external/tensorflow/tensorflow/c/eager/parallel_device/
Dparallel_device_lib.h249 TFE_TensorHandle* device_handle; in ScalarsFromSequence() local
251 TFE_Execute(const_op.get(), &device_handle, &num_outputs, status); in ScalarsFromSequence()
253 components.emplace_back(device_handle); in ScalarsFromSequence()
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_virtual_mem_allocator.cc89 for (const auto device_handle : access_gpu_handles) { in Create() local
91 GpuDriver::GetMinAllocationGranularity(device_handle)); in Create()
/external/tensorflow/tensorflow/compiler/xla/
Dxla.proto408 DeviceHandle device_handle = 2; field
418 DeviceHandle device_handle = 3; field
429 DeviceHandle device_handle = 3; field
437 DeviceHandle device_handle = 1; field

12