Home
last modified time | relevance | path

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

123

/tools/power/cpupower/utils/helpers/
Dpci.c30 struct pci_dev *device; in pci_acc_init() local
42 filter_nb_link.device = dev; in pci_acc_init()
47 for (device = (*pacc)->devices; device; device = device->next) { in pci_acc_init()
48 if (pci_filter_match(&filter_nb_link, device)) in pci_acc_init()
49 return device; in pci_acc_init()
/tools/testing/selftests/devices/probe/
Dtest_discoverable_devices.py139 def is_controller(device): argument
140 return device.get("type") and "controller" in device.get("type")
163 def find_in_sysfs(device, parent_sysfs=None): argument
164 if parent_sysfs and device.get("path"):
166 parent_sysfs, device["meta"]["type"], str(device["path"])
176 if is_controller(device):
177 return find_controller_in_sysfs(device, sysfs_path)
207 def generate_pathname(device): argument
210 if device.get("path"):
211 pathname = str(device["path"])
[all …]
/tools/testing/selftests/tc-testing/
Dtdc_batch.py48 device = args.device variable
73 def format_add_filter(device, prio, handle, skip, src_mac, dst_mac, argument
77 device, prio, handle, skip, src_mac, dst_mac, share_action))
80 def format_rep_filter(device, prio, handle, skip, src_mac, dst_mac, argument
84 device, prio, handle, skip, src_mac, dst_mac, share_action))
87 def format_del_filter(device, prio, handle, skip, src_mac, dst_mac, argument
90 "flower".format(device, prio, handle))
106 cmd = formatter(device, prio, handle_start + index, skip, src_mac,
Dtdc_multibatch.py50 device = args.device variable
63 num_filters, handle, operation, i + mac_prefix, device, file))
/tools/usb/usbip/
DREADME8 USB/IP protocol allows to pass USB device from server to client over the
9 network. Server is a machine which provides (shares) a USB device. Client is
10 a machine which uses USB device provided by server over the network.
11 The USB device may be either physical device connected to a server or
17 and allows to import a USB device from a remote machine.
20 A server side module which provides a USB device driver which can be
21 bound to a physical USB device to make it exportable.
25 to export a USB device created using USB Gadget Subsystem.
32 - USB/IP device drivers
47 Contains USB device identification data.
[all …]
/tools/crypto/ccp/
Ddbc.py33 def get_nonce(device, signature): argument
34 if not device:
37 ret = lib.get_nonce(device.fileno(), ctypes.byref(buf), signature)
43 def set_uid(device, new_uid, signature): argument
48 ret = lib.set_uid(device.fileno(), new_uid, signature)
54 def process_param(device, message, signature, data=None): argument
61 ret = lib.process_param(device.fileno(), message[0], ctypes.pointer(sig), ctypes.pointer(arg))
/tools/hv/
Dvmbus_testing105 def locate_state(device, file_map): argument
106 return file_map[device][f_names.state_f.value]
166 for device in file_map:
167 if (get_test_state(locate_state(device, file_map)) == 1):
169 .format(device.split("/")[5]))
172 .format(device.split("/")[5]))
224 def set_delay_values(device, file_map, delay_length, quiet): argument
227 interrupt = file_map[device][f_names.buff_f.value]
228 message = file_map[device][f_names.mess_f.value]
251 for device in (file_map):
[all …]
/tools/testing/selftests/drivers/net/virtio_net/
Dvirtio_net_common.sh45 local device=`virtio_device_get $dev`
47 echo "$device" > /sys/bus/virtio/drivers/virtio_net/unbind
48 echo "$device" > /sys/bus/virtio/drivers/virtio_net/bind
54 local device=`virtio_device_get $dev`
56 echo /sys/kernel/debug/virtio/$device/
/tools/testing/selftests/alsa/
Dglobal-timer.c21 static void bind_to_timer(int device, int subdevice, int timeout) in bind_to_timer() argument
31 device, subdevice); in bind_to_timer()
69 int device, subdevice, timeout; in main() local
78 device = atoi(argv[1]); in main()
82 bind_to_timer(device, subdevice, timeout); in main()
Dpcm-test.c38 int device; member
96 static void missing_device(int card, int device, int subdevice, snd_pcm_stream_t stream) in missing_device() argument
103 if (pcm_data->device != device) in missing_device()
115 pcm_data->device = device; in missing_device()
127 int device, subdevice; in missing_devices() local
134 device = device_from_id(node1); in missing_devices()
135 if (device < 0) in missing_devices()
145 missing_device(card, device, subdevice, SND_PCM_STREAM_PLAYBACK); in missing_devices()
147 missing_device(card, device, subdevice, SND_PCM_STREAM_CAPTURE); in missing_devices()
259 pcm_data->device = dev; in find_pcms()
[all …]
/tools/testing/kunit/test_data/
Dtest_is_test_passed-no_tests_run_no_header.log40 setup_one_line failed for device 1 : Configuration failed
42 setup_one_line failed for device 2 : Configuration failed
44 setup_one_line failed for device 3 : Configuration failed
46 setup_one_line failed for device 4 : Configuration failed
48 setup_one_line failed for device 5 : Configuration failed
50 setup_one_line failed for device 6 : Configuration failed
52 setup_one_line failed for device 7 : Configuration failed
54 setup_one_line failed for device 8 : Configuration failed
56 setup_one_line failed for device 9 : Configuration failed
58 setup_one_line failed for device 10 : Configuration failed
[all …]
Dtest_output_isolated_correctly.log62 setup_one_line failed for device 1 : Configuration failed
64 setup_one_line failed for device 2 : Configuration failed
66 setup_one_line failed for device 3 : Configuration failed
68 setup_one_line failed for device 4 : Configuration failed
70 setup_one_line failed for device 5 : Configuration failed
72 setup_one_line failed for device 6 : Configuration failed
74 setup_one_line failed for device 7 : Configuration failed
76 setup_one_line failed for device 8 : Configuration failed
78 setup_one_line failed for device 9 : Configuration failed
80 setup_one_line failed for device 10 : Configuration failed
[all …]
/tools/usb/
Dtestusb.c376 char *device; in main() local
399 device = getenv ("DEVICE"); in main()
404 device = optarg; in main()
410 device = NULL; in main()
463 if (!all && !device) { in main()
485 if (!testdevs && !device) { in main()
491 if (testdevs && !testdevs->next && !device) in main()
492 device = testdevs->name; in main()
500 if (device) { in main()
501 if (strcmp (entry->name, device)) in main()
[all …]
/tools/laptop/freefall/
Dfreefall.c29 static int set_unload_heads_path(char *device) in set_unload_heads_path() argument
31 if (strlen(device) <= 5 || strncmp(device, "/dev/", 5) != 0) in set_unload_heads_path()
33 strncpy(device_path, device, sizeof(device_path) - 1); in set_unload_heads_path()
36 "/sys/block/%s/device/unload_heads", device+5); in set_unload_heads_path()
/tools/testing/selftests/android/
DREADME4 Run tests on a physical or virtual device:
7 Before the tests, you can use the following command to launch a virtual device:
10 After the tests, you can use the following command to remove the virtual device:
14 * Build kernel and launch a virtual device from a specific platform build:
/tools/testing/cxl/test/
Dmock.h13 bool (*is_mock_bridge)(struct device *dev);
20 bool (*is_mock_port)(struct device *dev);
21 bool (*is_mock_dev)(struct device *dev);
/tools/testing/kunit/android/
DREADME8 Run tests on a physical or virtual device:
14 Before the tests, you can use the following command to launch a virtual device:
17 After the tests, you can use the following command to remove the virtual device:
21 * Build kernel and launch a virtual device from a specific platform build:
33 Load and run a test module on Android device manually
34 * Push the KUnit test framework module kunit.ko over to the device. For
39 * Load test module on device:
47 * Push the KUnit test module over to the device. For example using adb:
50 * (Optional) - Mount debugfs on device:
53 * Load test module on device:
[all …]
/tools/leds/
Dget_led_device_info.sh37 bus=`readlink $led_cdev_path/device/subsystem | sed s'/.*\///'`
43 input_node=`readlink $led_cdev_path/device | sed s'/.*\///'`
62 product=`cat device/name`
63 driver=`cat device/device/driver/description`
66 compatible=`cat device/of_node/compatible`
/tools/testing/nvdimm/test/
Dnfit_test.h22 struct device *dev;
210 void __iomem *__wrap_devm_ioremap(struct device *dev,
212 void *__wrap_devm_memremap(struct device *dev, resource_size_t offset,
214 void *__wrap_devm_memremap_pages(struct device *dev, struct dev_pagemap *pgmap);
218 void __wrap_devm_memunmap(struct device *dev, void *addr);
228 struct resource *__wrap___devm_request_region(struct device *dev,
233 void __wrap___devm_release_region(struct device *dev, struct resource *parent,
Dndtest.c198 static inline struct ndtest_priv *to_ndtest_priv(struct device *dev) in to_ndtest_priv()
386 static ssize_t range_index_show(struct device *dev, in range_index_show()
494 static ssize_t handle_show(struct device *dev, struct device_attribute *attr, in handle_show()
503 static ssize_t fail_cmd_show(struct device *dev, struct device_attribute *attr, in fail_cmd_show()
511 static ssize_t fail_cmd_store(struct device *dev, struct device_attribute *attr, in fail_cmd_store()
528 static ssize_t fail_cmd_code_show(struct device *dev, struct device_attribute *attr, in fail_cmd_code_show()
536 static ssize_t fail_cmd_code_store(struct device *dev, struct device_attribute *attr, in fail_cmd_code_store()
568 static ssize_t phys_id_show(struct device *dev, in phys_id_show()
578 static ssize_t vendor_show(struct device *dev, in vendor_show()
585 static ssize_t id_show(struct device *dev, in id_show()
[all …]
Diomap.c74 void __iomem *__wrap_devm_ioremap(struct device *dev, in __wrap_devm_ioremap()
86 void *__wrap_devm_memremap(struct device *dev, resource_size_t offset, in __wrap_devm_memremap()
116 void *__wrap_devm_memremap_pages(struct device *dev, struct dev_pagemap *pgmap) in __wrap_devm_memremap_pages()
159 void __wrap_devm_memunmap(struct device *dev, void *addr) in __wrap_devm_memunmap()
200 static bool nfit_test_release_region(struct device *dev,
204 static void nfit_devres_release(struct device *dev, void *data) in nfit_devres_release()
212 static int match(struct device *dev, void *__res, void *match_data) in match()
220 static bool nfit_test_release_region(struct device *dev, in nfit_test_release_region()
257 static struct resource *nfit_test_request_region(struct device *dev, in nfit_test_request_region()
350 struct resource *__wrap___devm_request_region(struct device *dev, in __wrap___devm_request_region()
[all …]
/tools/testing/selftests/filesystems/binderfs/
Dbinderfs_test.c61 struct binderfs_device device = { 0 }; in __do_binderfs_test() local
90 memcpy(device.name, "my-binder", strlen("my-binder")); in __do_binderfs_test()
100 ret = ioctl(fd, BINDER_CTL_ADD, &device); in __do_binderfs_test()
111 device.major, device.minor, device.name); in __do_binderfs_test()
396 struct binderfs_device device = { 0 }; in TEST() local
440 memset(&device, 0, sizeof(device)); in TEST()
441 snprintf(device.name, sizeof(device.name), "%d", i); in TEST()
442 ret = ioctl(fd, BINDER_CTL_ADD, &device); in TEST()
/tools/testing/selftests/media_tests/
Dregression_test.txt10 Disconnect the device.
24 seconds. The idea is when device file goes away, media devnode and cdev
35 device file goes away after unbind, device file name changes. Start the
36 test with possible device names. If we start with /dev/media0 for example,
/tools/testing/selftests/devices/error_logs/
Dtest_device_error_logs.py79 for device in error_log_per_device:
80 for log in error_log_per_device[device]:
82 ksft.test_result_fail(device)
/tools/testing/cxl/
Dmock_acpi.c10 struct acpi_device *to_cxl_host_bridge(struct device *host, struct device *dev) in to_cxl_host_bridge()

123