Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 4724) sorted by relevance

12345678910>>...189

/external/adhd/cras/src/server/
Dcras_bt_device.c108 struct cras_bt_device *device; member
115 void cras_bt_device_set_append_iodev_cb(struct cras_bt_device *device, in cras_bt_device_set_append_iodev_cb() argument
118 device->append_iodev_cb = cb; in cras_bt_device_set_append_iodev_cb()
146 struct cras_bt_device *device; in cras_bt_device_create() local
148 device = calloc(1, sizeof(*device)); in cras_bt_device_create()
149 if (device == NULL) in cras_bt_device_create()
152 device->conn = conn; in cras_bt_device_create()
153 device->object_path = strdup(object_path); in cras_bt_device_create()
154 if (device->object_path == NULL) { in cras_bt_device_create()
155 free(device); in cras_bt_device_create()
[all …]
Dcras_bt_device.h31 void cras_bt_device_destroy(struct cras_bt_device *device);
37 const char *cras_bt_device_object_path(const struct cras_bt_device *device);
39 const struct cras_bt_device *device);
40 const char *cras_bt_device_address(const struct cras_bt_device *device);
41 const char *cras_bt_device_name(const struct cras_bt_device *device);
42 int cras_bt_device_paired(const struct cras_bt_device *device);
43 int cras_bt_device_trusted(const struct cras_bt_device *device);
44 int cras_bt_device_connected(const struct cras_bt_device *device);
46 void cras_bt_device_update_properties(struct cras_bt_device *device,
51 void cras_bt_device_set_append_iodev_cb(struct cras_bt_device *device,
[all …]
Dcras_hfp_ag_profile.c91 struct cras_bt_device *device; member
118 if (!cras_bt_device_has_a2dp(ag->device)) in destroy_audio_gateway()
119 cras_bt_device_disconnect(ag->conn, ag->device); in destroy_audio_gateway()
125 static int has_audio_gateway(struct cras_bt_device *device) in has_audio_gateway() argument
129 if (ag->device == device) in has_audio_gateway()
150 return cras_bt_device_audio_gateway_initialized(ag->device); in cras_hfp_ag_slc_initialized()
171 if (cras_bt_device_has_a2dp(ag->device)) in check_for_conflict_ag()
186 struct cras_bt_device *device = (struct cras_bt_device *)data; in possibly_remove_conflict_dev() local
192 if (ag->device == device) in possibly_remove_conflict_dev()
207 if (a2dp_device && a2dp_device != device) { in possibly_remove_conflict_dev()
[all …]
/external/tensorflow/tensorflow/core/grappler/clusters/
Dutils.cc47 DeviceProperties device; in GetLocalCPUInfo() local
48 device.set_type("CPU"); in GetLocalCPUInfo()
50 device.set_vendor(port::CPUVendorIDString()); in GetLocalCPUInfo()
52 device.set_model( in GetLocalCPUInfo()
54 device.set_frequency(port::NominalCPUFrequency() * 1e-6); in GetLocalCPUInfo()
55 device.set_num_cores(port::NumSchedulableCPUs()); in GetLocalCPUInfo()
56 device.set_l1_cache_size(Eigen::l1CacheSize()); in GetLocalCPUInfo()
57 device.set_l2_cache_size(Eigen::l2CacheSize()); in GetLocalCPUInfo()
58 device.set_l3_cache_size(Eigen::l3CacheSize()); in GetLocalCPUInfo()
62 device.set_memory_size(free_mem); in GetLocalCPUInfo()
[all …]
/external/chromium-trace/catapult/devil/devil/android/tools/
Dprovision_devices.py154 def ProvisionDevice(device, steps, blacklist, reboot_timeout=None): argument
157 if device.build_version_sdk >= version_codes.LOLLIPOP:
164 device.WaitUntilFullyBooted(timeout=reboot_timeout, retries=0)
167 device.Reboot(timeout=reboot_timeout)
168 step.cmd(device)
170 device.Reboot(False, retries=0)
171 device.adb.WaitForDevice()
175 str(device))
177 blacklist.Extend([str(device)], reason='provision_timeout')
182 str(device))
[all …]
Dsystem_app.py34 def RemoveSystemApps(device, package_names): argument
42 system_package_paths = _FindSystemPackagePaths(device, package_names)
44 with EnableSystemAppModification(device):
45 device.RemovePath(system_package_paths, force=True, recursive=True)
49 def ReplaceSystemApp(device, package_name, replacement_apk): argument
58 storage_dir = device_temp_file.NamedDeviceTemporaryDirectory(device.adb)
59 relocate_app = _RelocateApp(device, package_name, storage_dir.name)
60 install_app = _TemporarilyInstallApp(device, replacement_apk)
65 def _FindSystemPackagePaths(device, system_package_list): argument
69 found_paths.extend(device.GetApplicationPaths(system_package))
[all …]
/external/libdrm/tests/kms/
Dlibkms-test-device.c51 static void kms_device_probe_screens(struct kms_device *device) in kms_device_probe_screens() argument
60 res = drmModeGetResources(device->fd); in kms_device_probe_screens()
64 device->screens = calloc(res->count_connectors, sizeof(screen)); in kms_device_probe_screens()
65 if (!device->screens) in kms_device_probe_screens()
73 screen = kms_screen_create(device, res->connectors[i]); in kms_device_probe_screens()
92 device->screens[i] = screen; in kms_device_probe_screens()
93 device->num_screens++; in kms_device_probe_screens()
100 static void kms_device_probe_crtcs(struct kms_device *device) in kms_device_probe_crtcs() argument
106 res = drmModeGetResources(device->fd); in kms_device_probe_crtcs()
110 device->crtcs = calloc(res->count_crtcs, sizeof(crtc)); in kms_device_probe_crtcs()
[all …]
/external/skqp/src/gpu/vk/
DGrVkInterface.cpp13 #define ACQUIRE_PROC(name, instance, device) \ argument
14 fFunctions.f##name = reinterpret_cast<PFN_vk##name>(getProc("vk" #name, instance, device))
16 #define ACQUIRE_PROC_SUFFIX(name, suffix, instance, device) \ argument
18 reinterpret_cast<PFN_vk##name##suffix>(getProc("vk" #name #suffix, instance, device))
22 VkDevice device, in GrVkInterface() argument
50 ACQUIRE_PROC(GetDeviceQueue, VK_NULL_HANDLE, device); in GrVkInterface()
51 ACQUIRE_PROC(QueueSubmit, VK_NULL_HANDLE, device); in GrVkInterface()
52 ACQUIRE_PROC(QueueWaitIdle, VK_NULL_HANDLE, device); in GrVkInterface()
53 ACQUIRE_PROC(DeviceWaitIdle, VK_NULL_HANDLE, device); in GrVkInterface()
54 ACQUIRE_PROC(AllocateMemory, VK_NULL_HANDLE, device); in GrVkInterface()
[all …]
/external/skia/src/gpu/vk/
DGrVkInterface.cpp13 #define ACQUIRE_PROC(name, instance, device) \ argument
14 fFunctions.f##name = reinterpret_cast<PFN_vk##name>(getProc("vk" #name, instance, device))
16 #define ACQUIRE_PROC_SUFFIX(name, suffix, instance, device) \ argument
18 reinterpret_cast<PFN_vk##name##suffix>(getProc("vk" #name #suffix, instance, device))
22 VkDevice device, in GrVkInterface() argument
50 ACQUIRE_PROC(GetDeviceQueue, VK_NULL_HANDLE, device); in GrVkInterface()
51 ACQUIRE_PROC(QueueSubmit, VK_NULL_HANDLE, device); in GrVkInterface()
52 ACQUIRE_PROC(QueueWaitIdle, VK_NULL_HANDLE, device); in GrVkInterface()
53 ACQUIRE_PROC(DeviceWaitIdle, VK_NULL_HANDLE, device); in GrVkInterface()
54 ACQUIRE_PROC(AllocateMemory, VK_NULL_HANDLE, device); in GrVkInterface()
[all …]
/external/mesa3d/src/intel/vulkan/
Danv_device.c103 anv_physical_device_init_heaps(struct anv_physical_device *device, int fd) in anv_physical_device_init_heaps() argument
109 device->supports_48bit_addresses = in anv_physical_device_init_heaps()
110 (device->info.gen >= 8) && anv_gem_supports_48b_addresses(fd); in anv_physical_device_init_heaps()
117 if (heap_size > (2ull << 30) && !device->supports_48bit_addresses) { in anv_physical_device_init_heaps()
134 device->memory.heap_count = 1; in anv_physical_device_init_heaps()
135 device->memory.heaps[0] = (struct anv_memory_heap) { in anv_physical_device_init_heaps()
151 assert(device->supports_48bit_addresses); in anv_physical_device_init_heaps()
153 device->memory.heap_count = 2; in anv_physical_device_init_heaps()
154 device->memory.heaps[0] = (struct anv_memory_heap) { in anv_physical_device_init_heaps()
159 device->memory.heaps[1] = (struct anv_memory_heap) { in anv_physical_device_init_heaps()
[all …]
Danv_queue.c38 anv_device_execbuf(struct anv_device *device, in anv_device_execbuf() argument
42 int ret = anv_gem_execbuffer(device, execbuf); in anv_device_execbuf()
45 device->lost = true; in anv_device_execbuf()
46 return vk_errorf(device->instance, device, VK_ERROR_DEVICE_LOST, in anv_device_execbuf()
59 anv_device_submit_simple_batch(struct anv_device *device, in anv_device_submit_simple_batch() argument
70 result = anv_bo_pool_alloc(&device->batch_bo_pool, &bo, size); in anv_device_submit_simple_batch()
75 if (!device->info.has_llc) in anv_device_submit_simple_batch()
99 execbuf.rsvd1 = device->context_id; in anv_device_submit_simple_batch()
102 result = anv_device_execbuf(device, &execbuf, exec_bos); in anv_device_submit_simple_batch()
106 result = anv_device_wait(device, &bo, INT64_MAX); in anv_device_submit_simple_batch()
[all …]
/external/tensorflow/tensorflow/python/training/
Ddevice_setter_test.py39 with ops.device(
41 with ops.device("/cpu:0"):
44 with ops.device("/cpu:0"):
46 self.assertDeviceEqual("/job:ps/task:0/cpu:0", v.device)
47 self.assertDeviceEqual("/job:ps/task:0/cpu:0", v.initializer.device)
48 self.assertDeviceEqual("/job:ps/task:1", w.device)
49 self.assertDeviceEqual("/job:ps/task:1", w.initializer.device)
50 self.assertDeviceEqual("/job:worker/cpu:0", a.device)
54 with ops.device(
57 self.assertDeviceEqual("/job:ps/task:0", v.device)
[all …]
/external/chromium-trace/catapult/devil/devil/android/
Ddevice_utils_test.py194 self.device = device_utils.DeviceUtils(
202 args, output, status, msg, str(self.device)))
208 msg, str(self.device)))
213 cmd, output, status, str(self.device))
222 msg, str(self.device)))
227 return (self.call.device.RunShellCommand(
236 self.assertTrue(self.device == other)
237 self.assertTrue(other == self.device)
241 self.assertTrue(self.device == other)
242 self.assertTrue(other == self.device)
[all …]
/external/tensorflow/tensorflow/compiler/tests/
Dlstm_layer_inference.pbtxt6 device: "/device:GPU:*"
31 device: "/device:GPU:*"
53 device: "/device:GPU:*"
76 device: "/device:GPU:*"
107 device: "/device:GPU:*"
120 device: "/device:GPU:*"
133 device: "/device:GPU:*"
144 device: "/device:GPU:*"
182 device: "/device:GPU:*"
214 device: "/device:GPU:*"
[all …]
/external/mesa3d/src/gallium/state_trackers/clover/core/
Ddevice.cpp44 device::device(clover::platform &platform, pipe_loader_device *ldev) : in device() function in device
54 device::~device() { in ~device()
62 device::operator==(const device &dev) const { in operator ==()
67 device::type() const { in type()
80 device::vendor_id() const { in vendor_id()
93 device::max_images_read() const { in max_images_read()
98 device::max_images_write() const { in max_images_write()
103 device::max_image_buffer_size() const { in max_image_buffer_size()
108 device::max_image_levels_2d() const { in max_image_levels_2d()
113 device::max_image_levels_3d() const { in max_image_levels_3d()
[all …]
/external/deqp/external/vulkancts/framework/vulkan/
DvkDeviceDriverImpl.inl5 PFN_vkVoidFunction DeviceDriver::getDeviceProcAddr (VkDevice device, const char* pName) const argument
7 return m_vk.getDeviceProcAddr(device, pName);
10 void DeviceDriver::destroyDevice (VkDevice device, const VkAllocationCallbacks* pAllocator) const argument
12 m_vk.destroyDevice(device, pAllocator);
15 void DeviceDriver::getDeviceQueue (VkDevice device, deUint32 queueFamilyIndex, deUint32 queueIndex,… argument
17 m_vk.getDeviceQueue(device, queueFamilyIndex, queueIndex, pQueue);
30 VkResult DeviceDriver::deviceWaitIdle (VkDevice device) const
32 return m_vk.deviceWaitIdle(device);
35 VkResult DeviceDriver::allocateMemory (VkDevice device, const VkMemoryAllocateInfo* pAllocateInfo, … argument
37 return m_vk.allocateMemory(device, pAllocateInfo, pAllocator, pMemory);
[all …]
/external/tensorflow/tensorflow/python/framework/
Ddevice_test.py22 from tensorflow.python.framework import device
32 d = device.DeviceSpec()
38 d = device.DeviceSpec(job="j", replica=0, task=1,
47 d = device.DeviceSpec(device_type="GPU", device_index=0)
51 d = device.DeviceSpec()
74 d = device.DeviceSpec(job="foo", replica=12, task=3, device_type="GPU")
78 d = device.DeviceSpec()
92 d = device.DeviceSpec.from_string("/job:foo/replica:0")
95 d = device.DeviceSpec.from_string("/job:muu/device:GPU:2/cpu:0")
98 d = device.DeviceSpec.from_string("/job:foo/replica:0/task:3/cpu:*")
[all …]
/external/u-boot/drivers/usb/gadget/
Dcore.c132 …usb_configuration_instance *usbd_device_configuration_instance (struct usb_device_instance *device, in usbd_device_configuration_instance() argument
135 if (configuration >= device->configurations) in usbd_device_configuration_instance()
138 return device->configuration_instance_array + configuration; in usbd_device_configuration_instance()
150 struct usb_interface_instance *usbd_device_interface_instance (struct usb_device_instance *device, … in usbd_device_interface_instance() argument
154 …if ((configuration_instance = usbd_device_configuration_instance (device, port, configuration)) ==… in usbd_device_interface_instance()
172 struct usb_alternate_instance *usbd_device_alternate_instance (struct usb_device_instance *device, … in usbd_device_alternate_instance() argument
176 …if ((interface_instance = usbd_device_interface_instance (device, port, configuration, interface))… in usbd_device_alternate_instance()
196 struct usb_device_descriptor *usbd_device_device_descriptor (struct usb_device_instance *device, in… in usbd_device_device_descriptor() argument
198 return (device->device_descriptor); in usbd_device_device_descriptor()
211 *device, int port, int configuration) in usbd_device_configuration_descriptor()
[all …]
/external/u-boot/drivers/block/
Dide.c207 unsigned char atapi_issue(int device, unsigned char *ccb, int ccblen, in atapi_issue() argument
217 ide_outb(device, ATA_DEV_HD, ATA_LBA | ATA_DEVICE(device)); in atapi_issue()
218 c = atapi_wait_mask(device, ATAPI_TIME_OUT, mask, res); in atapi_issue()
220 printf("ATAPI_ISSUE: device %d not ready status %X\n", device, in atapi_issue()
226 ide_outb(device, ATA_ERROR_REG, 0); /* no DMA, no overlaped */ in atapi_issue()
227 ide_outb(device, ATA_SECT_CNT, 0); in atapi_issue()
228 ide_outb(device, ATA_SECT_NUM, 0); in atapi_issue()
229 ide_outb(device, ATA_CYL_LOW, (unsigned char) (buflen & 0xFF)); in atapi_issue()
230 ide_outb(device, ATA_CYL_HIGH, in atapi_issue()
232 ide_outb(device, ATA_DEV_HD, ATA_LBA | ATA_DEVICE(device)); in atapi_issue()
[all …]
/external/mesa3d/src/amd/vulkan/
Dradv_device.c118 radv_physical_device_init_mem_types(struct radv_physical_device *device) in radv_physical_device_init_mem_types() argument
121 uint64_t visible_vram_size = MIN2(device->rad_info.vram_size, in radv_physical_device_init_mem_types()
122 device->rad_info.vram_vis_size); in radv_physical_device_init_mem_types()
125 device->memory_properties.memoryHeapCount = 0; in radv_physical_device_init_mem_types()
126 if (device->rad_info.vram_size - visible_vram_size > 0) { in radv_physical_device_init_mem_types()
127 vram_index = device->memory_properties.memoryHeapCount++; in radv_physical_device_init_mem_types()
128 device->memory_properties.memoryHeaps[vram_index] = (VkMemoryHeap) { in radv_physical_device_init_mem_types()
129 .size = device->rad_info.vram_size - visible_vram_size, in radv_physical_device_init_mem_types()
134 visible_vram_index = device->memory_properties.memoryHeapCount++; in radv_physical_device_init_mem_types()
135 device->memory_properties.memoryHeaps[visible_vram_index] = (VkMemoryHeap) { in radv_physical_device_init_mem_types()
[all …]
Dradv_meta_bufimage.c128 radv_device_init_meta_itob_state(struct radv_device *device) in radv_device_init_meta_itob_state() argument
134 cs.nir = build_nir_itob_compute_shader(device, false); in radv_device_init_meta_itob_state()
135 if (device->physical_device->rad_info.chip_class >= GFX9) in radv_device_init_meta_itob_state()
136 cs_3d.nir = build_nir_itob_compute_shader(device, true); in radv_device_init_meta_itob_state()
164 result = radv_CreateDescriptorSetLayout(radv_device_to_handle(device), in radv_device_init_meta_itob_state()
166 &device->meta_state.alloc, in radv_device_init_meta_itob_state()
167 &device->meta_state.itob.img_ds_layout); in radv_device_init_meta_itob_state()
175 .pSetLayouts = &device->meta_state.itob.img_ds_layout, in radv_device_init_meta_itob_state()
180 result = radv_CreatePipelineLayout(radv_device_to_handle(device), in radv_device_init_meta_itob_state()
182 &device->meta_state.alloc, in radv_device_init_meta_itob_state()
[all …]
/external/libdrm/tests/
Ddrmdevice.c36 print_device_info(drmDevicePtr device, int i, bool print_revision) in print_device_info() argument
39 printf("\tavailable_nodes %04x\n", device->available_nodes); in print_device_info()
42 if (device->available_nodes & 1 << j) in print_device_info()
43 printf("\t\tnodes[%d] %s\n", j, device->nodes[j]); in print_device_info()
45 printf("\tbustype %04x\n", device->bustype); in print_device_info()
47 if (device->bustype == DRM_BUS_PCI) { in print_device_info()
49 printf("\t\t\tdomain\t%04x\n",device->businfo.pci->domain); in print_device_info()
50 printf("\t\t\tbus\t%02x\n", device->businfo.pci->bus); in print_device_info()
51 printf("\t\t\tdev\t%02x\n", device->businfo.pci->dev); in print_device_info()
52 printf("\t\t\tfunc\t%1u\n", device->businfo.pci->func); in print_device_info()
[all …]
/external/ImageMagick/MagickCore/
Dopencl.c380 device; in SelectOpenCLDevice() local
391 device=clEnv->devices[i]; in SelectOpenCLDevice()
392 if (device->type != type) in SelectOpenCLDevice()
395 device->enabled=MagickTrue; in SelectOpenCLDevice()
402 if (IsSameOpenCLDevice(device,other_device)) in SelectOpenCLDevice()
459 ReleaseOpenCLDevice(info->device); in DestroyMagickCLCacheInfo()
467 MagickPrivate cl_mem CreateOpenCLBuffer(MagickCLDevice device, in CreateOpenCLBuffer() argument
470 return(openCL_library->clCreateBuffer(device->context,flags,size,host_ptr, in CreateOpenCLBuffer()
524 MagickPrivate MagickCLCacheInfo AcquireMagickCLCacheInfo(MagickCLDevice device, in AcquireMagickCLCacheInfo() argument
536 device->requested++; in AcquireMagickCLCacheInfo()
[all …]
/external/tensorflow/tensorflow/contrib/training/python/training/
Ddevice_setter_test.py41 with ops.device(
51 self.assertDeviceEqual("/job:ps/task:1", u.device)
52 self.assertDeviceEqual("/job:ps/task:1", u.initializer.device)
53 self.assertDeviceEqual("/job:ps/task:0", v.device)
54 self.assertDeviceEqual("/job:ps/task:0", v.initializer.device)
55 self.assertDeviceEqual("/job:ps/task:1", w.device)
56 self.assertDeviceEqual("/job:ps/task:1", w.initializer.device)
57 self.assertDeviceEqual("/job:ps/task:1", x.device)
58 self.assertDeviceEqual("/job:ps/task:1", x.initializer.device)
59 self.assertDeviceEqual("/job:worker", a.device)
[all …]
/external/autotest/server/site_tests/bluetooth_AdapterPairing/
Dbluetooth_AdapterPairing.py64 device = self.get_device(device_type)
74 self.test_discover_device(device.address)
81 self.test_device_class_of_service(device.address,
82 device.class_of_service)
85 self.test_device_class_of_device(device.address,
86 device.class_of_device)
91 self.test_pairing(device.address, device.pin, trusted=True)
95 self.test_connection_by_adapter(device.address)
103 self.test_device_name(device.address, device.name)
110 self.test_device_is_paired(device.address)
[all …]

12345678910>>...189