Home
last modified time | relevance | path

Searched refs:device (Results 1 – 25 of 51) 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()
Damd.c129 struct pci_dev *device; in amd_pci_get_num_boost_states() local
134 device = pci_slot_func_init(&pci_acc, 0x18, 4); in amd_pci_get_num_boost_states()
136 if (device == NULL) in amd_pci_get_num_boost_states()
139 val = pci_read_byte(device, 0x15c); in amd_pci_get_num_boost_states()
/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/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/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.c370 char *device; in main() local
393 device = getenv ("DEVICE"); in main()
398 device = optarg; in main()
404 device = NULL; in main()
457 if (!all && !device) { in main()
479 if (!testdevs && !device) { in main()
485 if (testdevs && testdevs->next == 0 && !device) in main()
486 device = testdevs->name; in main()
494 if (device) { in main()
495 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/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/selftests/filesystems/binderfs/
Dbinderfs_test.c61 struct binderfs_device device = { 0 }; in __do_binderfs_test() local
87 memcpy(device.name, "my-binder", strlen("my-binder")); in __do_binderfs_test()
97 ret = ioctl(fd, BINDER_CTL_ADD, &device); in __do_binderfs_test()
108 device.major, device.minor, device.name); in __do_binderfs_test()
385 struct binderfs_device device = { 0 }; in TEST() local
428 memset(&device, 0, sizeof(device)); in TEST()
429 snprintf(device.name, sizeof(device.name), "%d", i); in TEST()
430 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/nvdimm/test/
Diomap.c76 void __iomem *__wrap_devm_ioremap(struct device *dev, in __wrap_devm_ioremap()
88 void *__wrap_devm_memremap(struct device *dev, resource_size_t offset, in __wrap_devm_memremap()
118 void *__wrap_devm_memremap_pages(struct device *dev, struct dev_pagemap *pgmap) in __wrap_devm_memremap_pages()
161 void __wrap_devm_memunmap(struct device *dev, void *addr) in __wrap_devm_memunmap()
202 static bool nfit_test_release_region(struct device *dev,
206 static void nfit_devres_release(struct device *dev, void *data) in nfit_devres_release()
214 static int match(struct device *dev, void *__res, void *match_data) in match()
222 static bool nfit_test_release_region(struct device *dev, in nfit_test_release_region()
259 static struct resource *nfit_test_request_region(struct device *dev, in nfit_test_request_region()
352 struct resource *__wrap___devm_request_region(struct device *dev, in __wrap___devm_request_region()
[all …]
Dndtest.c253 static inline struct ndtest_priv *to_ndtest_priv(struct device *dev) in to_ndtest_priv()
366 struct device *dev) in ndtest_blk_region_enable()
497 static ssize_t range_index_show(struct device *dev, in range_index_show()
622 static ssize_t handle_show(struct device *dev, struct device_attribute *attr, in handle_show()
631 static ssize_t fail_cmd_show(struct device *dev, struct device_attribute *attr, in fail_cmd_show()
639 static ssize_t fail_cmd_store(struct device *dev, struct device_attribute *attr, in fail_cmd_store()
656 static ssize_t fail_cmd_code_show(struct device *dev, struct device_attribute *attr, in fail_cmd_code_show()
664 static ssize_t fail_cmd_code_store(struct device *dev, struct device_attribute *attr, in fail_cmd_code_store()
696 static ssize_t phys_id_show(struct device *dev, in phys_id_show()
706 static ssize_t vendor_show(struct device *dev, in vendor_show()
[all …]
Dnfit.c212 struct device *dimm_dev[ARRAY_SIZE(handle)];
226 static struct nfit_test *to_nfit_test(struct device *dev) in to_nfit_test()
237 struct device *dev = &t->pdev.dev; in nd_intel_test_get_fw_info()
263 struct device *dev = &t->pdev.dev; in nd_intel_test_start_update()
293 struct device *dev = &t->pdev.dev; in nd_intel_test_send_data()
344 struct device *dev = &t->pdev.dev; in nd_intel_test_finish_fw()
395 struct device *dev = &t->pdev.dev; in nd_intel_test_finish_query()
639 static int is_region_device(struct device *dev) in is_region_device()
644 static int nfit_test_search_region_spa(struct device *dev, void *data) in nfit_test_search_region_spa()
732 static void smart_notify(struct device *bus_dev, in smart_notify()
[all …]
/tools/virtio/linux/
Dvirtio.h8 struct device { struct
13 struct device dev; argument
/tools/pci/
Dpcitest.c25 char *device; member
47 fd = open(test->device, O_RDWR); in run_test()
175 test->device = "/dev/pci-endpoint-test.0"; in main()
180 test->device = optarg; in main()
/tools/bpf/bpftool/Documentation/
Dbpftool-cgroup.rst31 | *ATTACH_TYPE* := { **ingress** | **egress** | **sock_create** | **sock_ops** | **device** |
89 **device** device access (since 4.15);
133 | **# bpftool cgroup attach /sys/fs/cgroup/test.slice/ device id 1 allow_multi**
140 1 device allow_multi bpf_prog1
143 | **# bpftool cgroup detach /sys/fs/cgroup/test.slice/ device id 1**
/tools/testing/selftests/powerpc/eeh/
Deeh-functions.sh157 if [ ! -f /proc/device-tree/rtas/ibm,open-sriov-allow-unfreeze ] ||
158 [ ! -f /proc/device-tree/rtas/ibm,open-sriov-map-pe-number ] ; then
/tools/testing/selftests/net/
Dtimestamping.c325 struct ifreq device; in main() local
387 memset(&device, 0, sizeof(device)); in main()
388 memcpy(device.ifr_name, interface, if_len + 1); in main()
389 if (ioctl(sock, SIOCGIFADDR, &device) < 0) in main()
433 ((struct sockaddr_in *)&device.ifr_addr)->sin_addr.s_addr; in main()
/tools/usb/usbip/vudc/
Dvudc_server_example.sh81 usbipd --device &
/tools/testing/nvdimm/
Ddimm_devs.c12 ssize_t security_show(struct device *dev, in security_show()
/tools/testing/selftests/powerpc/nx-gzip/
DREADME4 Verify that following device exists:
6 If you get a permission error run as sudo or set the device permissions:
/tools/testing/selftests/ptp/
Dtestptp.c164 char *device = DEVICE; in main() local
195 device = optarg; in main()
261 fd = open(device, O_RDWR); in main()
263 fprintf(stderr, "opening %s: %s\n", device, strerror(errno)); in main()

123