Home
last modified time | relevance | path

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

12

/external/libdrm/tests/amdgpu/
Dcs_tests.c42 static amdgpu_device_handle device_handle; variable
78 &minor_version, &device_handle); in suite_cs_tests_init()
88 family_id = device_handle->info.family_id; in suite_cs_tests_init()
90 chip_rev = device_handle->info.chip_rev; in suite_cs_tests_init()
91 chip_id = device_handle->info.chip_external_rev; in suite_cs_tests_init()
93 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in suite_cs_tests_init()
97 r = amdgpu_bo_alloc_and_map(device_handle, IB_SIZE, 4096, in suite_cs_tests_init()
126 r = amdgpu_device_deinitialize(device_handle); in suite_cs_tests_clean()
146 r = amdgpu_bo_list_create(device_handle, num_resources, resources, in submit()
198 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in amdgpu_cs_uvd_create()
[all …]
Dbasic_tests.c40 static amdgpu_device_handle device_handle; variable
205 &minor_version, &device_handle); in suite_basic_tests_init()
220 int r = amdgpu_device_deinitialize(device_handle); in suite_basic_tests_clean()
234 r = amdgpu_query_gpu_info(device_handle, &gpu_info); in amdgpu_query_info_test()
237 r = amdgpu_query_firmware_version(device_handle, AMDGPU_INFO_FW_VCE, 0, in amdgpu_query_info_test()
250 bo = gpu_mem_alloc(device_handle, in amdgpu_memory_alloc()
260 bo = gpu_mem_alloc(device_handle, in amdgpu_memory_alloc()
270 bo = gpu_mem_alloc(device_handle, in amdgpu_memory_alloc()
279 bo = gpu_mem_alloc(device_handle, in amdgpu_memory_alloc()
304 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in amdgpu_command_submission_gfx_separate_ibs()
[all …]
Dbo_tests.c38 static amdgpu_device_handle device_handle; variable
67 &minor_version, &device_handle); in suite_bo_tests_init()
81 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in suite_bo_tests_init()
85 r = amdgpu_va_range_alloc(device_handle, in suite_bo_tests_init()
127 r = amdgpu_device_deinitialize(device_handle); in suite_bo_tests_clean()
143 r = amdgpu_bo_import(device_handle, type, shared_handle, &res); in amdgpu_bo_export_import_do_type()
Dvce_tests.c64 static amdgpu_device_handle device_handle; variable
96 &minor_version, &device_handle); in suite_vce_tests_init()
106 family_id = device_handle->info.family_id; in suite_vce_tests_init()
107 vce_harvest_config = device_handle->info.vce_harvest_config; in suite_vce_tests_init()
109 r = amdgpu_cs_ctx_create(device_handle, &context_handle); in suite_vce_tests_init()
113 r = amdgpu_bo_alloc_and_map(device_handle, IB_SIZE, 4096, in suite_vce_tests_init()
138 r = amdgpu_device_deinitialize(device_handle); in suite_vce_tests_clean()
158 r = amdgpu_bo_list_create(device_handle, num_resources, resources, in submit()
198 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in alloc_resource()
200 r = amdgpu_va_range_alloc(device_handle, in alloc_resource()
Damdgpu_test.h111 amdgpu_device_handle device_handle, in gpu_mem_alloc() argument
130 r = amdgpu_bo_alloc(device_handle, &req, &buf_handle); in gpu_mem_alloc()
133 r = amdgpu_va_range_alloc(device_handle, in gpu_mem_alloc()
/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()
Dmain.c72 FILE *device_handle=NULL; /* This is passed to the fopen / fread ... commands */ variable
Dext2ed.h200 extern FILE *device_handle;
/external/tensorflow/tensorflow/compiler/xla/client/
Dclient.cc67 const Literal& literal, const DeviceHandle* device_handle) { in TransferToServer() argument
70 if (device_handle) { in TransferToServer()
71 *request.mutable_device_handle() = *device_handle; in TransferToServer()
95 const DeviceHandle* device_handle) { in TransferToInfeed() argument
98 if (device_handle) { in TransferToInfeed()
99 *request.mutable_device_handle() = *device_handle; in TransferToInfeed()
118 const DeviceHandle* device_handle) { in TransferFromOutfeed() argument
120 if (device_handle) { in TransferFromOutfeed()
121 *request.mutable_device_handle() = *device_handle; in TransferFromOutfeed()
287 for (const DeviceHandle& device_handle : response.device_handles()) { in GetDeviceHandles() local
[all …]
Dclient.h109 const Literal& literal, const DeviceHandle* device_handle = nullptr);
117 const DeviceHandle* device_handle = nullptr);
126 const DeviceHandle* device_handle = nullptr);
/external/libdrm/amdgpu/
Damdgpu_device.c173 amdgpu_device_handle *device_handle) in amdgpu_device_initialize() argument
183 *device_handle = NULL; in amdgpu_device_initialize()
205 amdgpu_device_reference(device_handle, dev); in amdgpu_device_initialize()
281 *device_handle = dev; in amdgpu_device_initialize()
Damdgpu.h514 amdgpu_device_handle *device_handle);
533 int amdgpu_device_deinitialize(amdgpu_device_handle device_handle);
/external/libmtp/src/
Dlibusb-glue.c1655 usb_dev_handle *device_handle; in init_ptp_usb() local
1674 device_handle = usb_open(dev); in init_ptp_usb()
1675 if (!device_handle) { in init_ptp_usb()
1679 ptp_usb->handle = device_handle; in init_ptp_usb()
1688 if (usb_get_driver_np(device_handle, (int) ptp_usb->interface, in init_ptp_usb()
1690 if (usb_detach_kernel_driver_np(device_handle, in init_ptp_usb()
1705 if (usb_set_configuration(device_handle, dev->config->bConfigurationValue)) { in init_ptp_usb()
1715 usbresult = usb_claim_interface(device_handle, (int) ptp_usb->interface); in init_ptp_usb()
1732 usbresult = usb_set_altinterface(device_handle, 0); in init_ptp_usb()
1746 ret = usb_control_msg(device_handle, in init_ptp_usb()
[all …]
Dlibusb1-glue.c1779 libusb_device_handle *device_handle; in init_ptp_usb() local
1799 ret = libusb_open(dev, &device_handle); in init_ptp_usb()
1804 ptp_usb->handle = device_handle; in init_ptp_usb()
1812 libusb_kernel_driver_active(device_handle, ptp_usb->interface) in init_ptp_usb()
1814 if (LIBUSB_SUCCESS != libusb_detach_kernel_driver(device_handle, ptp_usb->interface)) { in init_ptp_usb()
1831 if (libusb_set_configuration(device_handle, ptp_usb->config) != LIBUSB_SUCCESS) { in init_ptp_usb()
1842 if (libusb_set_configuration(device_handle, ptp_usb->config)) { in init_ptp_usb()
1859 usbresult = libusb_claim_interface(device_handle, ptp_usb->interface); in init_ptp_usb()
1876 usbresult = libusb_set_interface_alt_setting(device_handle, in init_ptp_usb()
1894 ret = libusb_control_transfer(device_handle, in init_ptp_usb()
[all …]
Dlibopenusb1-glue.c1742 openusb_dev_handle_t device_handle; in init_ptp_usb() local
1761 ret = openusb_open_device(libmtp_openusb_handle, *dev, USB_INIT_DEFAULT, &device_handle); in init_ptp_usb()
1767 *ptp_usb->handle = device_handle; in init_ptp_usb()
1786 usbresult = openusb_claim_interface(device_handle, ptp_usb->interface, USB_INIT_DEFAULT); in init_ptp_usb()
1814 ret = openusb_ctrl_xfer(device_handle, ptp_usb->interface, ptp_usb->outep, &ctrl); in init_ptp_usb()
1835 ret = openusb_ctrl_xfer(device_handle, ptp_usb->interface, ptp_usb->outep, &ctrl); in init_ptp_usb()
1856 ret = openusb_ctrl_xfer(device_handle, ptp_usb->interface, ptp_usb->outep, &ctrl); in init_ptp_usb()
1877 ret = openusb_ctrl_xfer(device_handle, ptp_usb->interface, ptp_usb->outep, &ctrl); in init_ptp_usb()
/external/tensorflow/tensorflow/compiler/xla/service/
Dservice.cc722 for (const auto& device_handle : execution_options.device_handles()) { in ExecuteParallel() local
724 Replicas(*execute_backend_, device_handle)); in ExecuteParallel()
826 DeviceHandle device_handle; in GetDeviceHandles() local
827 device_handle.set_handle(i); in GetDeviceHandles()
828 device_handle.set_device_count(arg->device_count()); in GetDeviceHandles()
829 *result->add_device_handles() = device_handle; in GetDeviceHandles()
1071 Replicas(*execute_backend_, arg->device_handle())); in TransferToServer()
1127 Replicas(*execute_backend_, arg->device_handle())); in TransferToInfeed()
1156 Replicas(*execute_backend_, arg->device_handle())); in TransferFromOutfeed()
1606 DeviceHandle device_handle; in SingleComputationDeviceHandle() local
[all …]
Dservice.h349 const Backend& backend, const DeviceHandle& device_handle) const;
/external/syslinux/efi/
Dfio.c115 EFI_STATUS efi_set_volroot(EFI_HANDLE device_handle) in efi_set_volroot() argument
117 vol_root = LibOpenRoot(device_handle); in efi_set_volroot()
Dfio.h33 EFI_STATUS efi_set_volroot(EFI_HANDLE device_handle);
/external/tensorflow/tensorflow/compiler/xla/
Dxla.proto260 DeviceHandle device_handle = 2; field
270 DeviceHandle device_handle = 3; field
282 DeviceHandle device_handle = 3; field
290 DeviceHandle device_handle = 1; field
/external/tensorflow/tensorflow/compiler/xla/tests/
Dclient_library_test_base.cc536 const DeviceHandle* device_handle, ComputationBuilder* builder, in CreateParameterAndTransferLiteral() argument
545 client_->TransferToServer(*param_literal, device_handle) in CreateParameterAndTransferLiteral()
/external/vulkan-validation-layers/layers/
Dobject_tracker_utils.cpp105 bool ValidateDeviceObject(uint64_t device_handle, enum UNIQUE_VALIDATION_ERROR_CODE invalid_handle_… in ValidateDeviceObject() argument
112 if (object.second->handle == device_handle) return false; in ValidateDeviceObject()
117 …>report_data, VK_DEBUG_REPORT_ERROR_BIT_EXT, VK_DEBUG_REPORT_OBJECT_TYPE_DEVICE_EXT, device_handle, in ValidateDeviceObject()
118 …E__, invalid_handle_code, LayerName, "Invalid Device Object 0x%" PRIxLEAST64 ". %s", device_handle, in ValidateDeviceObject()
Dobject_tracker.h148 bool ValidateDeviceObject(uint64_t device_handle, enum UNIQUE_VALIDATION_ERROR_CODE invalid_handle_…

12