Home
last modified time | relevance | path

Searched refs:dev (Results 1 – 25 of 106) sorted by relevance

12345

/tools/virtio/
Dvirtio_test.c59 void vhost_vq_setup(struct vdev_info *dev, struct vq_info *info) in vhost_vq_setup() argument
63 unsigned long long features = dev->vdev.features[0]; in vhost_vq_setup()
71 r = ioctl(dev->control, VHOST_SET_FEATURES, &features); in vhost_vq_setup()
74 r = ioctl(dev->control, VHOST_SET_VRING_NUM, &state); in vhost_vq_setup()
77 r = ioctl(dev->control, VHOST_SET_VRING_BASE, &state); in vhost_vq_setup()
79 r = ioctl(dev->control, VHOST_SET_VRING_ADDR, &addr); in vhost_vq_setup()
82 r = ioctl(dev->control, VHOST_SET_VRING_KICK, &file); in vhost_vq_setup()
85 r = ioctl(dev->control, VHOST_SET_VRING_CALL, &file); in vhost_vq_setup()
89 static void vq_info_add(struct vdev_info *dev, int num) in vq_info_add() argument
91 struct vq_info *info = &dev->vqs[dev->nvqs]; in vq_info_add()
[all …]
/tools/usb/
Dtestusb.c166 struct usb_device_descriptor dev; in testdev_ifnum() local
168 if (fread(&dev, sizeof dev, 1, fd) != 1) in testdev_ifnum()
171 if (dev.bLength != sizeof dev || dev.bDescriptorType != USB_DT_DEVICE) in testdev_ifnum()
175 if (dev.idVendor == 0x0547 && dev.idProduct == 0x1002) in testdev_ifnum()
191 if (dev.idVendor == 0x0547 && dev.idProduct == 0x2235) in testdev_ifnum()
195 if (dev.idVendor == 0x04b4 && dev.idProduct == 0x8613) in testdev_ifnum()
199 if (dev.idVendor == 0x0547 && dev.idProduct == 0x0080) in testdev_ifnum()
203 if (dev.idVendor == 0x06cd && dev.idProduct == 0x010b) in testdev_ifnum()
209 if (dev.idVendor == 0x0525 && dev.idProduct == 0xa4a0) in testdev_ifnum()
213 if (dev.idVendor == 0x0525 && dev.idProduct == 0xa4a4) in testdev_ifnum()
[all …]
/tools/lguest/
Dlguest.c113 struct device *dev; member
151 struct device *dev; member
236 static u8 *get_feature_bits(struct device *dev) in get_feature_bits() argument
238 return (u8 *)(dev->desc + 1) in get_feature_bits()
239 + dev->num_vq * sizeof(struct lguest_vqconfig); in get_feature_bits()
800 struct console_abort *abort = vq->dev->priv; in console_input()
890 struct net_info *net_info = vq->dev->priv; in net_output()
937 struct net_info *net_info = vq->dev->priv; in net_input()
989 static void reset_device(struct device *dev) in reset_device() argument
993 verbose("Resetting device %s\n", dev->name); in reset_device()
[all …]
Dextract11 exec 3>/dev/null
39 exec 3>/dev/null
47 exec 3>/dev/null
/tools/lib/traceevent/
Dplugin_jbd2.c29 #define MAJOR(dev) ((unsigned int) ((dev) >> MINORBITS)) argument
30 #define MINOR(dev) ((unsigned int) ((dev) & MINORMASK)) argument
35 unsigned int dev = args[0]; in process_jbd2_dev_to_name() local
37 trace_seq_printf(s, "%d:%d", MAJOR(dev), MINOR(dev)); in process_jbd2_dev_to_name()
/tools/usb/usbip/src/
Dusbip_bind.c80 struct udev_device *dev; in unbind_other() local
88 dev = udev_device_new_from_subsystem_sysname(udev, "usb", busid); in unbind_other()
89 if (!dev) { in unbind_other()
95 bDevClass = udev_device_get_sysattr_value(dev, "bDeviceClass"); in unbind_other()
107 driver = udev_device_get_driver(dev); in unbind_other()
136 udev_device_unref(dev); in unbind_other()
146 struct udev_device *dev; in bind_device() local
151 dev = udev_device_new_from_subsystem_sysname(udev, "usb", busid); in bind_device()
152 if (!dev) { in bind_device()
156 devpath = udev_device_get_devpath(dev); in bind_device()
Dusbip_unbind.c53 struct udev_device *dev; in unbind_device() local
60 dev = udev_device_new_from_subsystem_sysname(udev, "usb", busid); in unbind_device()
61 if (!dev) { in unbind_device()
67 driver = udev_device_get_driver(dev); in unbind_device()
106 udev_device_unref(dev); in unbind_device()
Dusbip_list.c174 struct udev_device *dev; in list_devices() local
204 dev = udev_device_new_from_syspath(udev, path); in list_devices()
207 devpath = udev_device_get_devpath(dev); in list_devices()
215 idVendor = udev_device_get_sysattr_value(dev, "idVendor"); in list_devices()
216 idProduct = udev_device_get_sysattr_value(dev, "idProduct"); in list_devices()
217 bConfValue = udev_device_get_sysattr_value(dev, "bConfigurationValue"); in list_devices()
218 bNumIntfs = udev_device_get_sysattr_value(dev, "bNumInterfaces"); in list_devices()
219 busid = udev_device_get_sysname(dev); in list_devices()
237 udev_device_unref(dev); in list_devices()
/tools/testing/selftests/sysctl/
Drun_stringtests15 dd if="${TEST_FILE}" of="${TARGET}" bs=1 2>/dev/null
25 dd if="${TEST_FILE}" of="${TARGET}" bs=1 seek=1 2>/dev/null
36 dd of="${TARGET}" bs="${MAXLEN}" 2>/dev/null
47 dd of="${TARGET}" bs=$(( MAXLEN - 1 )) 2>/dev/null
58 dd of="${TARGET}" bs="${MAXLEN}" 2>/dev/null
69 dd of="${TARGET}" bs=$(( $MAXLEN + 1 )) 2>/dev/null
Dcommon_tests72 dd if="${TEST_FILE}" of="${TARGET}" bs=4096 2>/dev/null
82 dd if="${TEST_FILE}" of="${TARGET}" bs=1 seek=1 skip=1 2>/dev/null
92 dd if="${TEST_FILE}" of="${TARGET}" bs=20 seek=2 2>/dev/null
103 dd of="${TARGET}" bs=50 2>/dev/null
/tools/testing/selftests/firmware/
Dfw_userhelper.sh60 if diff -q "$FW" /dev/test_firmware >/dev/null ; then
73 if diff -q "$FW" /dev/test_firmware >/dev/null ; then
82 if ! diff -q "$FW" /dev/test_firmware >/dev/null ; then
Dfw_filesystem.sh40 if diff -q "$FW" /dev/test_firmware >/dev/null ; then
55 if ! diff -q "$FW" /dev/test_firmware >/dev/null ; then
/tools/testing/selftests/rcutorture/doc/
Dinitrd.txt26 [ -d /dev ] || mkdir -m 0755 /dev
37 # Note that this only becomes /dev on the real filesystem if udev's scripts
39 if ! mount -t devtmpfs -o mode=0755 udev /dev; then
40 echo "W: devtmpfs not available, falling back to tmpfs for /dev"
41 mount -t tmpfs -o mode=0755 udev /dev
42 [ -e /dev/console ] || mknod --mode=600 /dev/console c 5 1
43 [ -e /dev/kmsg ] || mknod --mode=644 /dev/kmsg c 1 11
44 [ -e /dev/null ] || mknod --mode=666 /dev/null c 1 3
47 mkdir /dev/pts
48 mount -t devpts -o noexec,nosuid,gid=5,mode=0620 devpts /dev/pts || true
[all …]
Drcu-test-image.txt10 dd if=/dev/zero of=rcu-test-image bs=400M count=1
21 /dev/vda / ext3 defaults 1 1
22 dev /dev tmpfs rw 0 0
23 tmpfs /dev/shm tmpfs defaults 0 0
24 devpts /dev/pts devpts gid=5,mode=620 0 0
/tools/perf/
Dperf-with-kcore.sh53 ("$PERF" record -o perf.data.junk $PERF_OPTIONS -- sleep 60) >/dev/null 2>/dev/null &
59 KCORE=$(($SUDO "$PERF" buildid-cache -v -f -k /proc/kcore >/dev/null) 2>&1)
66 wait >/dev/null 2>/dev/null || true
75 wait >/dev/null 2>/dev/null || true
199 if rmdir "$PERF_DATA_DIR" > /dev/null 2>/dev/null ; then
/tools/perf/tests/
Dperf-targz-src-pkg12 make perf-targz-src-pkg > /dev/null
17 cd - > /dev/null
18 make -C $TMP_DEST/perf*/tools/perf > /dev/null 2>&1
/tools/testing/selftests/rcutorture/bin/
Dkvm-recheck-lock.sh35 ncs=`grep "Writes: Total:" $i/console.log 2> /dev/null | tail -1 | sed -e 's/^.* Total: //' -e 's/…
41 dur=`sed -e 's/^.* locktorture.shutdown_secs=//' -e 's/ .*$//' < $i/qemu-cmd 2> /dev/null`
47 BEGIN { print ncs / dur }' < /dev/null`
Dkvm-recheck-rcu.sh35 ngps=`grep ver: $i/console.log 2> /dev/null | tail -1 | sed -e 's/^.* ver: //' -e 's/ .*$//'`
41 dur=`sed -e 's/^.* rcutorture.shutdown_secs=//' -e 's/ .*$//' < $i/qemu-cmd 2> /dev/null`
47 BEGIN { print ngps / dur }' < /dev/null`
/tools/lib/lockdep/
Drun_tests.sh3 make &> /dev/null
7 gcc -o tests/$testname -pthread -lpthread $i liblockdep.a -Iinclude -D__USE_LIBLOCKDEP &> /dev/null
19 gcc -o tests/$testname -pthread -lpthread -Iinclude $i &> /dev/null
/tools/virtio/linux/
Dvirtio_config.h4 #define virtio_has_feature(dev, feature) \ argument
5 test_bit((feature), (dev)->features)
/tools/hv/
Dhv_set_ifconfig.sh63 /sbin/ifdown $interface 2>/dev/null
64 /sbin/ifup $interface 2>/dev/null
/tools/testing/selftests/efivarfs/
Defivarfs.sh91 rm $file 2>/dev/null
149 rm $file 2>/dev/null
182 printf "$attrs\x00" 2>/dev/null > $file
186 rm $file 2>/dev/null
/tools/testing/ktest/examples/
Dtest.conf19 CONSOLE = stty -F /dev/ttyS0 115200 parodd; cat /dev/ttyS0
/tools/perf/config/
DMakefile133 PYTHON_EMBED_LDOPTS := $(shell $(PYTHON_CONFIG_SQ) --ldflags 2>/dev/null)
134 PYTHON_EMBED_CCOPTS := $(shell $(PYTHON_CONFIG_SQ) --cflags 2>/dev/null)
162 …(FEATURE_CHECK_LDFLAGS-$(1))" -C config/feature-checks test-$1.bin >/dev/null 2>/dev/null && echo …
261 …=$(LDFLAGS) -i -j -C config/feature-checks $(addsuffix .bin,$(CORE_FEATURE_TESTS)) >/dev/null 2>&1)
323 …$(warning No libelf found, disables 'probe' tool, please install elfutils-libelf-devel/libelf-dev);
334 msg := $(error No gnu/libc-version.h found, please install glibc-dev[el]);
341 …msg := $(warning No libdw DWARF unwind found, Please install elfutils-devel/libdw-dev >= 0.158 and…
345 …elfutils is older than 0.138, disables dwarf support. Please install new elfutils-devel/libdw-dev);
385 …msg := $(warning No libunwind found. Please install libunwind-dev[el] >= 1.1 and/or set LIBUNWIND_…
434 …rning No libaudit.h found, disables 'trace' tool, please install audit-libs-devel or libaudit-dev);
[all …]
/tools/perf/config/feature-checks/
DMakefile42 …sr/include/slang -lslang $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null) $(FLAGS_PERL_…
87 $(BUILD) $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null)
90 $(BUILD) $(shell $(PKG_CONFIG) --libs --cflags gtk+-2.0 2>/dev/null)
95 PERL_EMBED_LDOPTS = $(shell perl -MExtUtils::Embed -e ldopts 2>/dev/null)
98 PERL_EMBED_CCOPTS = `perl -MExtUtils::Embed -e ccopts 2>/dev/null`

12345