Home
last modified time | relevance | path

Searched refs:devices (Results 1 – 25 of 71) sorted by relevance

123

/tools/testing/selftests/powerpc/eeh/
Deeh-basic.sh14 devices=""
17 for dev in `ls -1 /sys/bus/pci/devices/ | grep '\.0$'` ; do
31 devices="$devices $dev"
34 dev_count="$(echo $devices | wc -w)"
38 for dev in $devices ; do
Deeh-functions.sh100 if ! test -e /sys/bus/pci/devices/$dev/ ; then
139 test -e /sys/bus/pci/devices/$1/driver;
152 devices=""
165 for dev in `ls -1 /sys/bus/pci/devices/` ; do
183 devices="$devices $dev"
186 if [ -z "$devices" ] ; then
190 echo $devices
Deeh-vf-unaware.sh22 echo "$vf" > /sys/bus/pci/devices/$vf/driver/unbind
/tools/testing/selftests/cpu-hotplug/
Dcpu-on-off-test.sh27 if ! ls $SYSFS/devices/system/cpu/cpu* > /dev/null 2>&1; then
33 online_cpus=`cat $SYSFS/devices/system/cpu/online`
41 present_cpus=`cat $SYSFS/devices/system/cpu/present`
47 offline_cpus=`cat $SYSFS/devices/system/cpu/offline`
63 for cpu in $SYSFS/devices/system/cpu/cpu*; do
82 grep -q 1 $SYSFS/devices/system/cpu/cpu$1/online
87 grep -q 0 $SYSFS/devices/system/cpu/cpu$1/online
92 echo 1 > $SYSFS/devices/system/cpu/cpu$1/online
97 echo 0 > $SYSFS/devices/system/cpu/cpu$1/online
/tools/power/cpupower/bench/
Dcpufreq-bench_script.sh30 echo $up_threshold >/sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold
31 echo $sampling_rate >/sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate
32 up_threshold_set=$(cat /sys/devices/system/cpu/cpu0/cpufreq/ondemand/up_threshold)
33 sampling_rate_set=$(cat /sys/devices/system/cpu/cpu0/cpufreq/ondemand/sampling_rate)
/tools/testing/selftests/net/forwarding/
Dtsn_lib.sh113 if ! [ -d /sys/bus/cpu/devices/cpu${cpu}/cpufreq ]; then
122 cat /sys/bus/cpu/devices/cpu${cpu}/cpufreq/scaling_max_freq > \
123 /sys/bus/cpu/devices/cpu${cpu}/cpufreq/scaling_min_freq
125 /sys/bus/cpu/devices/cpu${cpu}/cpufreq/scaling_governor
134 if ! [ -d /sys/bus/cpu/devices/cpu${cpu}/cpufreq ]; then
138 echo "${!freq}" > /sys/bus/cpu/devices/cpu${cpu}/cpufreq/scaling_min_freq
140 /sys/bus/cpu/devices/cpu${cpu}/cpufreq/scaling_governor
/tools/testing/selftests/memory-hotplug/
Dmem-on-off-test.sh25 if ! ls $SYSFS/devices/system/memory/memory* > /dev/null 2>&1; then
30 if ! grep -q 1 $SYSFS/devices/system/memory/memory*/removable; then
43 for memory in $SYSFS/devices/system/memory/memory*; do
63 grep -q online $SYSFS/devices/system/memory/memory$1/state
68 grep -q offline $SYSFS/devices/system/memory/memory$1/state
73 echo online > $SYSFS/devices/system/memory/memory$1/state
78 echo offline > $SYSFS/devices/system/memory/memory$1/state
/tools/usb/usbip/
DREADME75 - List driver assignments for USB devices.
110 - List exported USB devices on the <host>.
128 Physically attach your USB devices to this host.
134 In another terminal, let's look up what USB devices are physically
138 Local USB devices
178 Local USB devices
189 First, let's list available remote devices that are marked as
196 Exportable USB devices
200 : /sys/devices/pci0000:00/0000:00:1f.2/usb1/1-1
205 : /sys/devices/pci0000:00/0000:00:1f.2/usb1/1-2/1-2.2/1-2.2.1
[all …]
/tools/testing/selftests/zram/
DREADME1 zram: Compressed RAM based block devices
5 The zram module creates RAM based block devices named /dev/zram<id>
11 Statistics for individual zram devices are exported through sysfs nodes at
/tools/testing/selftests/drivers/net/netdevsim/
Dethtool-common.sh5 NSIM_DEV_SYS=/sys/bus/netdevsim/devices/netdevsim$NSIM_ID
55 ls /sys/bus/netdevsim/devices/netdevsim${NSIM_ID}/net/
Ddevlink_in_netns.sh13 SYSFS_NET_DIR=/sys/bus/netdevsim/devices/$DEV_NAME/net/
Ddevlink_trap.sh469 echo 1 > ${NETDEVSIM_PATH}/devices/${DEV}/new_port
474 echo 1 > ${NETDEVSIM_PATH}/devices/${DEV}/del_port
498 NETDEV=$(ls ${NETDEVSIM_PATH}/devices/${DEV}/net/)
/tools/usb/usbip/src/
Dusbip_list.c171 struct udev_list_entry *devices, *dev_list_entry; in list_devices() local
197 devices = udev_enumerate_get_list_entry(enumerate); in list_devices()
200 udev_list_entry_foreach(dev_list_entry, devices) { in list_devices()
254 struct udev_list_entry *devices, *dev_list_entry; in list_gadget_devices() local
275 devices = udev_enumerate_get_list_entry(enumerate); in list_gadget_devices()
277 udev_list_entry_foreach(dev_list_entry, devices) { in list_gadget_devices()
/tools/perf/Documentation/
Dperf-iostat.txt18 - Inbound Read - I/O devices below root port read from the host memory, in MB
20 - Inbound Write - I/O devices below root port write to the host memory, in MB
22 - Outbound Read - CPU reads from I/O devices below root port, in MB
24 - Outbound Write - CPU writes to I/O devices below root port, in MB
Dintel-hybrid.txt11 /sys/devices/cpu_core
12 /sys/devices/cpu_atom
16 cat /sys/devices/cpu_core/cpus
19 cat /sys/devices/cpu_atom/cpus
63 /sys/devices/cpu_atom/type
64 /sys/devices/cpu_core/type
/tools/testing/selftests/rcutorture/bin/
Djitter.sh31 for i in /sys/devices/system/cpu/cpu[0-9]*
58 if cpus=`grep 1 /sys/devices/system/cpu/*/online 2>&1 |
Dkvm-assign-cpus.sh13 sysfsdir=${1-/sys/devices/system/node}
/tools/power/cpupower/
Dcpupower-completion.sh24 if [ -d /sys/devices/system/cpu/cpufreq/ ] ; then
28 if [ -d /sys/devices/system/cpu/cpufreq/ ] ; then
/tools/bpf/bpftool/
Dnet.c37 struct ip_devname_ifindex *devices; member
368 netinfo->devices = realloc(netinfo->devices, in dump_link_nlmsg()
371 if (!netinfo->devices) in dump_link_nlmsg()
376 netinfo->devices[netinfo->used_len].ifindex = ifinfo->ifi_index; in dump_link_nlmsg()
377 snprintf(netinfo->devices[netinfo->used_len].devname, in dump_link_nlmsg()
378 sizeof(netinfo->devices[netinfo->used_len].devname), in dump_link_nlmsg()
864 dev_array.devices = NULL; in do_show()
879 show_dev_tc_bpf(&dev_array.devices[i]); in do_show()
881 &dev_array.devices[i]); in do_show()
907 free(dev_array.devices); in do_show()
/tools/testing/selftests/ftrace/test.d/ftrace/
Dfunc_cpumask.tc8 ls -d /sys/devices/system/cpu/cpu[0-9]* | wc -l
/tools/usb/usbip/libsrc/
Dusbip_host_common.c122 struct udev_list_entry *devices, *dev_list_entry; in refresh_exported_devices() local
130 devices = udev_enumerate_get_list_entry(enumerate); in refresh_exported_devices()
132 udev_list_entry_foreach(dev_list_entry, devices) { in refresh_exported_devices()
/tools/power/cpupower/utils/helpers/
Dpci.c47 for (device = (*pacc)->devices; device; device = device->next) { in pci_acc_init()
/tools/thermal/tmon/
DREADME5 Increasingly, Linux is running on thermally constrained devices. The simple
12 devices, zones, sensors, and trip points. They can also change dynamically.
/tools/testing/selftests/gpio/
Dgpio-mockup-sysfs.sh12 PLATFORM_SYSFS=$SYSFS/devices/platform
/tools/testing/selftests/amd-pstate/
Drun.sh242 scaling_driver=$(cat /sys/devices/system/cpu/cpufreq/policy0/scaling_driver)
296 CPUROOT=$SYSFS/devices/system/cpu

123