Lines Matching defs:dev
102 struct usb_device_descriptor *dev;
117 dev = (void*) ptr;
118 len -= dev->bLength;
119 ptr += dev->bLength;
127 info.dev_vendor = dev->idVendor;
128 info.dev_product = dev->idProduct;
129 info.dev_class = dev->bDeviceClass;
130 info.dev_subclass = dev->bDeviceSubClass;
131 info.dev_protocol = dev->bDeviceProtocol;
136 if (dev->iSerialNumber) {
146 ctrl.wValue = (USB_DT_STRING << 8) | dev->iSerialNumber;
166 * /dev/bus/usb. Unfortunately, the names of those entries change each
170 * /sys/dev/char/<major>:<minor>
172 * have an Android device at /dev/bus/usb/001/027 so working with bash:
173 * $ ls -l /dev/bus/usb/001/027
174 * crw-rw-r-- 1 root plugdev 189, 26 Apr 9 11:03 /dev/bus/usb/001/027
175 * $ ls -l /sys/dev/char/189:26
176 * lrwxrwxrwx 1 root root 0 Apr 9 11:03 /sys/dev/char/189:26 ->
189 snprintf(cdev, sizeof(cdev), "/sys/dev/char/%d:%d",
434 return find_usb_device("/dev/bus/usb", callback);