Home
last modified time | relevance | path

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

12345678910>>...216

/external/adhd/cras/src/server/
Dcras_bt_device.c123 struct cras_bt_device *device; member
155 struct cras_bt_device *device; in cras_bt_device_create() local
157 device = calloc(1, sizeof(*device)); in cras_bt_device_create()
158 if (device == NULL) in cras_bt_device_create()
161 device->conn = conn; in cras_bt_device_create()
162 device->object_path = strdup(object_path); in cras_bt_device_create()
163 if (device->object_path == NULL) { in cras_bt_device_create()
164 free(device); in cras_bt_device_create()
168 DL_APPEND(devices, device); in cras_bt_device_create()
170 return device; in cras_bt_device_create()
[all …]
Dcras_bt_device.h36 void cras_bt_device_remove(struct cras_bt_device *device);
42 const char *cras_bt_device_object_path(const struct cras_bt_device *device);
44 cras_bt_device_adapter(const struct cras_bt_device *device);
45 const char *cras_bt_device_address(const struct cras_bt_device *device);
46 const char *cras_bt_device_name(const struct cras_bt_device *device);
47 int cras_bt_device_paired(const struct cras_bt_device *device);
48 int cras_bt_device_trusted(const struct cras_bt_device *device);
49 int cras_bt_device_connected(const struct cras_bt_device *device);
51 void cras_bt_device_update_properties(struct cras_bt_device *device,
56 int cras_bt_device_add_supported_profiles(struct cras_bt_device *device,
[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/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/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.py48 def RemoveSystemApps(device, package_names): argument
56 system_package_paths = _FindSystemPackagePaths(device, package_names)
58 with EnableSystemAppModification(device):
59 device.RemovePath(system_package_paths, force=True, recursive=True)
63 def ReplaceSystemApp(device, package_name, replacement_apk, argument
73 storage_dir = device_temp_file.NamedDeviceTemporaryDirectory(device.adb)
74 relocate_app = _RelocateApp(device, package_name, storage_dir.name)
75 install_app = _TemporarilyInstallApp(device, replacement_apk, install_timeout)
80 def _FindSystemPackagePaths(device, system_package_list): argument
84 paths = _GetApplicationPaths(device, system_package)
[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/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/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/mesa3d/src/amd/vulkan/
Dradv_sqtt.c39 radv_thread_trace_get_data_offset(struct radv_device *device, unsigned se) in radv_thread_trace_get_data_offset() argument
45 data_offset += device->thread_trace_buffer_size * se; in radv_thread_trace_get_data_offset()
51 radv_thread_trace_get_info_va(struct radv_device *device, unsigned se) in radv_thread_trace_get_info_va() argument
53 uint64_t va = radv_buffer_get_va(device->thread_trace_bo); in radv_thread_trace_get_info_va()
58 radv_thread_trace_get_data_va(struct radv_device *device, unsigned se) in radv_thread_trace_get_data_va() argument
60 uint64_t va = radv_buffer_get_va(device->thread_trace_bo); in radv_thread_trace_get_data_va()
61 return va + radv_thread_trace_get_data_offset(device, se); in radv_thread_trace_get_data_va()
65 radv_emit_thread_trace_start(struct radv_device *device, in radv_emit_thread_trace_start() argument
69 uint32_t shifted_size = device->thread_trace_buffer_size >> SQTT_BUFFER_ALIGN_SHIFT; in radv_emit_thread_trace_start()
70 unsigned max_se = device->physical_device->rad_info.max_se; in radv_emit_thread_trace_start()
[all …]
Dradv_debug.c62 radv_init_trace(struct radv_device *device) in radv_init_trace() argument
64 struct radeon_winsys *ws = device->ws; in radv_init_trace()
66 device->trace_bo = ws->buffer_create(ws, TRACE_BO_SIZE, 8, in radv_init_trace()
72 if (!device->trace_bo) in radv_init_trace()
75 device->trace_id_ptr = ws->buffer_map(device->trace_bo); in radv_init_trace()
76 if (!device->trace_id_ptr) in radv_init_trace()
79 ac_vm_fault_occured(device->physical_device->rad_info.chip_class, in radv_init_trace()
80 &device->dmesg_timestamp, NULL); in radv_init_trace()
86 radv_dump_trace(struct radv_device *device, struct radeon_cmdbuf *cs, FILE *f) in radv_dump_trace() argument
88 fprintf(f, "Trace ID: %x\n", *device->trace_id_ptr); in radv_dump_trace()
[all …]
/external/autotest/server/cros/bluetooth/
Dbluetooth_adapter_pairing_tests.py34 def pairing_test(self, device, check_connected_method=lambda device: True, argument
46 self.test_discover_device(device.address)
53 self.test_device_class_of_service(device.address,
54 device.class_of_service)
57 self.test_device_class_of_device(device.address,
58 device.class_of_device)
63 self.test_pairing(device.address, device.pin, trusted=True)
67 self.test_connection_by_adapter(device.address)
75 self.test_device_name(device.address, device.name)
82 self.test_device_is_paired(device.address)
[all …]
Dbluetooth_adapter_hidreports_tests.py25 def run_mouse_tests(self, device): argument
31 self.test_mouse_left_click(device)
32 self.test_mouse_right_click(device)
33 self.test_mouse_move_in_x(device, 80)
34 self.test_mouse_move_in_y(device, -50)
35 self.test_mouse_move_in_xy(device, -60, 100)
36 self.test_mouse_scroll_down(device, 70)
37 self.test_mouse_scroll_up(device, 40)
38 self.test_mouse_click_and_drag(device, 90, 30)
41 def run_keyboard_tests(self, device): argument
[all …]
/external/vulkan-validation-layers/layers/generated/
Dobject_tracker.cpp36 bool ObjectLifetimes::ReportUndestroyedObjects(VkDevice device, const std::string& error_code) { in ReportUndestroyedObjects() argument
38 skip |= DeviceReportUndestroyedObjects(device, kVulkanObjectTypeCommandBuffer, error_code); in ReportUndestroyedObjects()
39 skip |= DeviceReportUndestroyedObjects(device, kVulkanObjectTypeSemaphore, error_code); in ReportUndestroyedObjects()
40 skip |= DeviceReportUndestroyedObjects(device, kVulkanObjectTypeFence, error_code); in ReportUndestroyedObjects()
41 skip |= DeviceReportUndestroyedObjects(device, kVulkanObjectTypeDeviceMemory, error_code); in ReportUndestroyedObjects()
42 skip |= DeviceReportUndestroyedObjects(device, kVulkanObjectTypeBuffer, error_code); in ReportUndestroyedObjects()
43 skip |= DeviceReportUndestroyedObjects(device, kVulkanObjectTypeImage, error_code); in ReportUndestroyedObjects()
44 skip |= DeviceReportUndestroyedObjects(device, kVulkanObjectTypeEvent, error_code); in ReportUndestroyedObjects()
45 skip |= DeviceReportUndestroyedObjects(device, kVulkanObjectTypeQueryPool, error_code); in ReportUndestroyedObjects()
46 skip |= DeviceReportUndestroyedObjects(device, kVulkanObjectTypeBufferView, error_code); in ReportUndestroyedObjects()
[all …]
Dthread_safety.cpp28 void ThreadSafety::PreCallRecordAllocateCommandBuffers(VkDevice device, const VkCommandBufferAlloca… in PreCallRecordAllocateCommandBuffers() argument
30 StartReadObject(device); in PreCallRecordAllocateCommandBuffers()
34 void ThreadSafety::PostCallRecordAllocateCommandBuffers(VkDevice device, const VkCommandBufferAlloc… in PostCallRecordAllocateCommandBuffers() argument
36 FinishReadObject(device); in PostCallRecordAllocateCommandBuffers()
49 void ThreadSafety::PreCallRecordAllocateDescriptorSets(VkDevice device, const VkDescriptorSetAlloca… in PreCallRecordAllocateDescriptorSets() argument
51 StartReadObject(device); in PreCallRecordAllocateDescriptorSets()
56 void ThreadSafety::PostCallRecordAllocateDescriptorSets(VkDevice device, const VkDescriptorSetAlloc… in PostCallRecordAllocateDescriptorSets() argument
58 FinishReadObject(device); in PostCallRecordAllocateDescriptorSets()
63 void ThreadSafety::PreCallRecordFreeCommandBuffers(VkDevice device, VkCommandPool commandPool, uint… in PreCallRecordFreeCommandBuffers() argument
66 StartReadObject(device); in PreCallRecordFreeCommandBuffers()
[all …]
Dvk_dispatch_table_helper.h36 static VKAPI_ATTR VkResult VKAPI_CALL StubBindBufferMemory2(VkDevice device, uint32_t bindInfoCount… in StubBindBufferMemory2() argument
37 static VKAPI_ATTR VkResult VKAPI_CALL StubBindImageMemory2(VkDevice device, uint32_t bindInfoCount,… in StubBindImageMemory2() argument
38 static VKAPI_ATTR void VKAPI_CALL StubGetDeviceGroupPeerMemoryFeatures(VkDevice device, uint32_t he… in StubGetDeviceGroupPeerMemoryFeatures() argument
41 static VKAPI_ATTR void VKAPI_CALL StubGetImageMemoryRequirements2(VkDevice device, const VkImageMem… in StubGetImageMemoryRequirements2() argument
42 static VKAPI_ATTR void VKAPI_CALL StubGetBufferMemoryRequirements2(VkDevice device, const VkBufferM… in StubGetBufferMemoryRequirements2() argument
43 static VKAPI_ATTR void VKAPI_CALL StubGetImageSparseMemoryRequirements2(VkDevice device, const VkIm… in StubGetImageSparseMemoryRequirements2() argument
44 static VKAPI_ATTR void VKAPI_CALL StubTrimCommandPool(VkDevice device, VkCommandPool commandPool, V… in StubTrimCommandPool() argument
45 static VKAPI_ATTR void VKAPI_CALL StubGetDeviceQueue2(VkDevice device, const VkDeviceQueueInfo2* pQ… in StubGetDeviceQueue2() argument
46 static VKAPI_ATTR VkResult VKAPI_CALL StubCreateSamplerYcbcrConversion(VkDevice device, const VkSam… in StubCreateSamplerYcbcrConversion() argument
47 static VKAPI_ATTR void VKAPI_CALL StubDestroySamplerYcbcrConversion(VkDevice device, VkSamplerYcbcr… in StubDestroySamplerYcbcrConversion() argument
[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/intel/vulkan/
Danv_device.c82 struct anv_device *device = (struct anv_device *)data; in compiler_debug_log() local
83 struct anv_instance *instance = device->physical->instance; in compiler_debug_log()
137 anv_physical_device_init_heaps(struct anv_physical_device *device, int fd) in anv_physical_device_init_heaps() argument
140 &device->gtt_size) == -1) { in anv_physical_device_init_heaps()
147 if (gen_get_aperture_size(fd, &device->gtt_size) == -1) { in anv_physical_device_init_heaps()
148 return vk_errorfi(device->instance, NULL, in anv_physical_device_init_heaps()
157 device->supports_48bit_addresses = (device->info.gen >= 8) && in anv_physical_device_init_heaps()
158 device->has_softpin && in anv_physical_device_init_heaps()
159 device->gtt_size > (4ULL << 30 /* GiB */); in anv_physical_device_init_heaps()
161 uint64_t heap_size = anv_compute_heap_size(fd, device->gtt_size); in anv_physical_device_init_heaps()
[all …]
/external/mesa3d/src/vulkan/util/
Dvk_object.c31 vk_object_base_init(UNUSED struct vk_device *device, in vk_object_base_init() argument
47 vk_device_init(struct vk_device *device, in vk_device_init() argument
52 vk_object_base_init(device, &device->base, VK_OBJECT_TYPE_DEVICE); in vk_device_init()
54 device->alloc = *device_alloc; in vk_device_init()
56 device->alloc = *instance_alloc; in vk_device_init()
58 p_atomic_set(&device->private_data_next_index, 0); in vk_device_init()
61 mtx_init(&device->swapchain_private_mtx, mtx_plain); in vk_device_init()
62 device->swapchain_private = NULL; in vk_device_init()
67 vk_device_finish(UNUSED struct vk_device *device) in vk_device_finish() argument
70 if (device->swapchain_private) { in vk_device_finish()
[all …]
/external/adhd/cras/src/tests/
Dbt_device_unittest.cc130 struct cras_bt_device* device; in TEST() local
132 device = cras_bt_device_create(NULL, FAKE_OBJ_PATH); in TEST()
133 EXPECT_NE((void*)NULL, device); in TEST()
135 device = cras_bt_device_get(FAKE_OBJ_PATH); in TEST()
136 EXPECT_NE((void*)NULL, device); in TEST()
138 cras_bt_device_remove(device); in TEST()
139 device = cras_bt_device_get(FAKE_OBJ_PATH); in TEST()
140 EXPECT_EQ((void*)NULL, device); in TEST()
144 struct cras_bt_device* device; in TEST_F() local
145 device = cras_bt_device_create(NULL, FAKE_OBJ_PATH); in TEST_F()
[all …]
/external/mesa3d/prebuilt-intermediates/util/
Dvk_enum_to_str.c4509 void vk_load_device_commands(VkDevice device, in vk_load_device_commands() argument
4516 …llScreenExclusiveModeEXT = (PFN_vkAcquireFullScreenExclusiveModeEXT) gpa(device, "vkAcquireFullScr… in vk_load_device_commands()
4518 … table->AcquireImageANDROID = (PFN_vkAcquireImageANDROID) gpa(device, "vkAcquireImageANDROID"); in vk_load_device_commands()
4519 … table->AcquireNextImage2KHR = (PFN_vkAcquireNextImage2KHR) gpa(device, "vkAcquireNextImage2KHR"); in vk_load_device_commands()
4520 … table->AcquireNextImageKHR = (PFN_vkAcquireNextImageKHR) gpa(device, "vkAcquireNextImageKHR"); in vk_load_device_commands()
4521 …nceConfigurationINTEL = (PFN_vkAcquirePerformanceConfigurationINTEL) gpa(device, "vkAcquirePerform… in vk_load_device_commands()
4522 …table->AcquireProfilingLockKHR = (PFN_vkAcquireProfilingLockKHR) gpa(device, "vkAcquireProfilingLo… in vk_load_device_commands()
4523 …table->AllocateCommandBuffers = (PFN_vkAllocateCommandBuffers) gpa(device, "vkAllocateCommandBuffe… in vk_load_device_commands()
4524 …table->AllocateDescriptorSets = (PFN_vkAllocateDescriptorSets) gpa(device, "vkAllocateDescriptorSe… in vk_load_device_commands()
4525 table->AllocateMemory = (PFN_vkAllocateMemory) gpa(device, "vkAllocateMemory"); in vk_load_device_commands()
[all …]
/external/mesa3d/src/gallium/frontends/clover/core/
Ddevice.cpp50 device::device(clover::platform &platform, pipe_loader_device *ldev) : in device() function in device
70 device::~device() { in ~device()
80 device::operator==(const device &dev) const { in operator ==()
85 device::type() const { in type()
98 device::vendor_id() const { in vendor_id()
111 device::max_images_read() const { in max_images_read()
116 device::max_images_write() const { in max_images_write()
121 device::max_image_buffer_size() const { in max_image_buffer_size()
126 device::max_image_levels_2d() const { in max_image_levels_2d()
131 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/mesa3d/src/broadcom/vulkan/
Dv3dv_bo.c46 bo_dump_stats(struct v3dv_device *device) in bo_dump_stats() argument
48 struct v3dv_bo_cache *cache = &device->bo_cache; in bo_dump_stats()
50 fprintf(stderr, " BOs allocated: %d\n", device->bo_count); in bo_dump_stats()
51 fprintf(stderr, " BOs size: %dkb\n", device->bo_size / 1024); in bo_dump_stats()
95 bo_from_cache(struct v3dv_device *device, uint32_t size, const char *name) in bo_from_cache() argument
97 struct v3dv_bo_cache *cache = &device->bo_cache; in bo_from_cache()
114 if (!v3dv_bo_wait(device, bo, 0)) { in bo_from_cache()
128 bo_free(struct v3dv_device *device, in bo_free() argument
135 v3dv_bo_unmap(device, bo); in bo_free()
140 int ret = v3dv_ioctl(device->render_fd, DRM_IOCTL_GEM_CLOSE, &c); in bo_free()
[all …]

12345678910>>...216