Home
last modified time | relevance | path

Searched refs:device_context (Results 1 – 25 of 57) sorted by relevance

123

/external/autotest/client/cros/cellular/mbim_compliance/sequences/
Dmbim_open_generic_sequence.py53 device_context = self.device_context
54 device_type = device_context.device_type
56 device_context.descriptor_cache.mbim_communication_interface)
58 device_context.descriptor_cache.ncm_communication_interface)
60 device_context.descriptor_cache.no_data_data_interface)
62 device_context.descriptor_cache.ncm_data_interface)
64 device_context.descriptor_cache.mbim_data_interface)
66 device_context.descriptor_cache.mbim_functional)
68 device_context.descriptor_cache.interrupt_endpoint)
69 descriptor_cache = device_context.descriptor_cache
[all …]
Dmbim_cid_device_services_sequence.py34 device_context = self.device_context
36 device_context._device,
37 device_context.mbim_communication_interface.bInterfaceNumber,
38 device_context.interrupt_endpoint.bEndpointAddress,
39 device_context.max_control_transfer_size)
Dmbim_close_sequence.py39 device_context = self.device_context
40 descriptor_cache = device_context.descriptor_cache
43 device_context.max_control_transfer_size)
45 device_context._device,
48 device_context.max_control_transfer_size)
Dmbim_cid_device_caps_sequence.py38 device_context = self.device_context
39 descriptor_cache = device_context.descriptor_cache
43 device_context.max_control_transfer_size)
45 device_context._device,
48 device_context.max_control_transfer_size)
Dconnect_sequence.py63 device_context = self.device_context
64 descriptor_cache = device_context.descriptor_cache
86 device_context.max_control_transfer_size)
88 device_context._device,
91 device_context.max_control_transfer_size)
Dopen_sequence.py77 control.set_interface(self.device_context.device,
91 self.device_context.device.ctrl_transfer(bmRequestType=0b00100001,
108 ntb_parameters = self.device_context.device.ctrl_transfer(
130 response = self.device_context.device.ctrl_transfer(
149 response = self.device_context.device.ctrl_transfer(
170 response = self.device_context.device.ctrl_transfer(
188 response = self.device_context.device.ctrl_transfer(
Dget_descriptors_sequence.py37 if self.device_context is None:
40 device = self.device_context.device
44 (self.device_context.id_vendor,
45 self.device_context.id_product))
Dsequence.py51 if self.device_context.device.is_kernel_driver_active(interface_number):
52 self.device_context.device.detach_kernel_driver(interface_number)
/external/autotest/client/cros/cellular/mbim_compliance/
Dmbim_data_transfer_unittest.py143 device_context = TestMbimDeviceContext()
144 device_context.device = 1
145 device_context.max_out_data_transfer_size = 100
146 device_context.max_in_data_transfer_size = 100
147 device_context.out_data_transfer_divisor = 32
148 device_context.out_data_transfer_payload_remainder = 0
149 device_context.descriptor_cache = TestMbimDescriptorCache()
150 device_context.descriptor_cache.mbim_data_interface = (
152 device_context.descriptor_cache.bulk_in_endpoint = (
154 device_context.descriptor_cache.bulk_out_endpoint = (
[all …]
Dmbim_dts_test_base.py33 self.device_context)
35 self.device_context.update_descriptor_cache(descriptors)
37 self.device_context)
39 connect_seq = connect_sequence.ConnectSequence(self.device_context)
45 (self.device_context.current_ntb_format != ntb_format)):
Dentity.py15 def __init__(self, device_context): argument
20 self.device_context = device_context
Dmbim_test_base.py36 self.device_context = mbim_device_context.MbimDeviceContext(
39 self.device_context.id_vendor,
40 self.device_context.id_product)
Dmbim_data_transfer.py50 def __init__(self, device_context): argument
60 self._device_context = device_context
62 device_context.descriptor_cache.mbim_data_interface)
64 device_context.descriptor_cache.bulk_in_endpoint)
66 device_context.descriptor_cache.bulk_out_endpoint)
68 device=device_context.device,
72 max_in_buffer_size=device_context.max_in_data_transfer_size)
/external/tensorflow/tensorflow/compiler/xrt/
Dxrt_memory_manager.cc222 DeviceContext* device_context = GetDeviceContext(tuple->device_ordinal(), in Register() local
224 return device_context->Register(std::move(tuple)); in Register()
230 DeviceContext* device_context = GetDeviceContext(device_ordinal, in Lookup() local
232 if (device_context == nullptr) { in Lookup()
235 RefPtr<XRTTupleAllocation> tuple = device_context->Lookup(handle); in Lookup()
244 DeviceContext* device_context = GetDeviceContext(device_ordinal, in Release() local
246 if (device_context == nullptr || !device_context->Release(handle)) { in Release()
255 DeviceContext* device_context = GetDeviceContext(device_ordinal, in CompactAllocations() local
257 return device_context != nullptr in CompactAllocations()
258 ? device_context->CompactAllocations(this, backend, allocator) in CompactAllocations()
[all …]
/external/crosvm/devices/src/usb/xhci/
Ddevice_slot.rs381 let mut device_context = slot.get_device_context()?; in disable() localVariable
382 device_context in disable()
385 slot.set_device_context(device_context)?; in disable()
409 let device_context = self.get_device_context()?; in set_address() localVariable
410 let state = device_context in set_address()
432 let mut device_context = self.get_device_context()?; in set_address() localVariable
433 let port_id = device_context.slot_context.get_root_hub_port_number(); in set_address()
459 device_context in set_address()
473 device_context in set_address()
476 device_context in set_address()
[all …]
/external/tensorflow/tensorflow/core/common_runtime/gpu/
Dgpu_util.cc114 const DeviceContext* device_context, in SetProtoFromGPU() argument
117 VLOG(1) << "SetProtoFromGPU device_context " << device_context; in SetProtoFromGPU()
120 Status s = PrepareCopy(dev, device_context, tensor, nullptr, &dev_info, in SetProtoFromGPU()
128 static_cast<const GPUDeviceContext*>(device_context) in SetProtoFromGPU()
267 const DeviceContext* device_context, in CopyGPUTensorToCPU() argument
273 Status s = PrepareCopy(gpu_device, device_context, *gpu_tensor, cpu_tensor, in CopyGPUTensorToCPU()
281 static_cast<const GPUDeviceContext*>(device_context) in CopyGPUTensorToCPU()
312 const DeviceContext* device_context, in CopyCPUTensorToGPU() argument
318 Status s = PrepareCopy(gpu_device, device_context, *cpu_tensor, gpu_tensor, in CopyCPUTensorToGPU()
326 static_cast<const GPUDeviceContext*>(device_context) in CopyCPUTensorToGPU()
[all …]
Dgpu_util.h39 const DeviceContext* device_context,
48 const DeviceContext* device_context,
81 const DeviceContext* device_context,
89 const DeviceContext* device_context,
104 const DeviceContext* device_context,
Dgpu_device_test.cc115 DeviceContext* device_context) { in CopyCPUToGPU() argument
116 TF_ASSERT_OK(device_context->CopyCPUTensorToDeviceSync(cpu_tensor, device, in CopyCPUToGPU()
121 DeviceContext* device_context) { in CopyGPUToCPU() argument
122 TF_ASSERT_OK(device_context->CopyDeviceTensorToCPUSync( in CopyGPUToCPU()
527 DeviceContext* device_context = device_info->default_context; in TEST_F() local
537 CopyCPUToGPU(&cpu_tensor, &output_tensor, device, device_context); in TEST_F()
539 CopyCPUToGPU(&cpu_tensor, &input_tensor, device, device_context); in TEST_F()
541 device->CopyTensorInSameDevice(&input_tensor, &output_tensor, device_context, in TEST_F()
550 CopyGPUToCPU(&output_tensor, &output_cpu_tensor, device, device_context); in TEST_F()
/external/tensorflow/tensorflow/core/common_runtime/
Drendezvous_util.cc23 RendezvousInterface* rendezvous, DeviceContext* device_context, in SendTensorsToRendezvous() argument
45 rendez_args.device_context = device_context; in SendTensorsToRendezvous()
57 RendezvousInterface* rendezvous, DeviceContext* device_context, in RecvOutputsFromRendezvousAsync() argument
97 rendez_args.device_context = device_context; in RecvOutputsFromRendezvousAsync()
Dthreadpool_device_test.cc58 DeviceContext* device_context = new DeviceContext; in TEST() local
60 device.CopyTensorInSameDevice(&input, &output, device_context, in TEST()
68 device_context->Unref(); in TEST()
Drendezvous_util.h34 RendezvousInterface* rendezvous, DeviceContext* device_context,
43 RendezvousInterface* rendezvous, DeviceContext* device_context,
/external/tensorflow/tensorflow/core/common_runtime/pluggable_device/
Dpluggable_device_util.cc175 Device* device, const DeviceContext* device_context, in CopyPluggableDeviceTensorToCPU() argument
180 Status s = PrepareCopy(device, device_context, *device_tensor, cpu_tensor, in CopyPluggableDeviceTensorToCPU()
188 static_cast<const PluggableDeviceContext*>(device_context) in CopyPluggableDeviceTensorToCPU()
222 const Tensor* cpu_tensor, const DeviceContext* device_context, in CopyCPUTensorToPluggableDevice() argument
228 Status s = PrepareCopy(device, device_context, *cpu_tensor, device_tensor, in CopyCPUTensorToPluggableDevice()
236 static_cast<const PluggableDeviceContext*>(device_context) in CopyCPUTensorToPluggableDevice()
293 Device* device, const DeviceContext* device_context, in CopyPluggableDeviceTensorToSameDevice() argument
299 Status s = PrepareCopy(device, device_context, *src_device_tensor, in CopyPluggableDeviceTensorToSameDevice()
Dpluggable_device_util.h37 Device* device, const DeviceContext* device_context,
50 const Tensor* cpu_tensor, const DeviceContext* device_context,
65 Device* device, const DeviceContext* device_context,
/external/tensorflow/tensorflow/compiler/jit/
Dxla_device.cc370 auto device_context = new XlaDeviceContext( in GetDeviceContextLocked() local
374 << device_context; in GetDeviceContextLocked()
375 device_contexts_.emplace_back(device_context); in GetDeviceContextLocked()
416 TF_ASSIGN_OR_RETURN(auto device_context, GetDeviceContextDefault()); in TryGetDeviceContext()
417 device_context->Ref(); in TryGetDeviceContext()
418 *out_context = device_context; in TryGetDeviceContext()
504 Status XlaDevice::MakeTensorFromProto(XlaDeviceContext* device_context, in MakeTensorFromProto() argument
525 device_context->CopyCPUTensorToDeviceSync(&parsed, this, &copy)); in MakeTensorFromProto()
536 XlaDeviceContext* device_context; in MakeTensorFromProto() local
537 TF_ASSIGN_OR_RETURN(device_context, GetDeviceContextDefault()); in MakeTensorFromProto()
[all …]
/external/tensorflow/tensorflow/compiler/tests/
Dunary_ops_composition_test.cc88 DeviceContext* device_context = in RunComposedOp() local
91 TF_CHECK_OK(device_context->CopyCPUTensorToDeviceSync(&input_on_host, in RunComposedOp()
102 TF_CHECK_OK(device_context->CopyDeviceTensorToCPUSync( in RunComposedOp()

123