Lines Matching refs:udev
17 extern struct udev *udev_context;
94 dbg("%-20s = %x", to_string(name), (int) udev->name)
110 void dump_usb_device(struct usbip_usb_device *udev) in dump_usb_device() argument
114 dbg("%-20s = %s", "path", udev->path); in dump_usb_device()
115 dbg("%-20s = %s", "busid", udev->busid); in dump_usb_device()
118 udev->bDeviceClass, in dump_usb_device()
119 udev->bDeviceSubClass, in dump_usb_device()
120 udev->bDeviceProtocol); in dump_usb_device()
126 udev->idVendor, in dump_usb_device()
127 udev->idProduct); in dump_usb_device()
134 usbip_speed_string(udev->speed)); in dump_usb_device()
206 int read_usb_device(struct udev_device *sdev, struct usbip_usb_device *udev) in read_usb_device() argument
211 READ_ATTR(udev, uint8_t, sdev, bDeviceClass, "%02x\n"); in read_usb_device()
212 READ_ATTR(udev, uint8_t, sdev, bDeviceSubClass, "%02x\n"); in read_usb_device()
213 READ_ATTR(udev, uint8_t, sdev, bDeviceProtocol, "%02x\n"); in read_usb_device()
215 READ_ATTR(udev, uint16_t, sdev, idVendor, "%04x\n"); in read_usb_device()
216 READ_ATTR(udev, uint16_t, sdev, idProduct, "%04x\n"); in read_usb_device()
217 READ_ATTR(udev, uint16_t, sdev, bcdDevice, "%04x\n"); in read_usb_device()
219 READ_ATTR(udev, uint8_t, sdev, bConfigurationValue, "%02x\n"); in read_usb_device()
220 READ_ATTR(udev, uint8_t, sdev, bNumConfigurations, "%02x\n"); in read_usb_device()
221 READ_ATTR(udev, uint8_t, sdev, bNumInterfaces, "%02x\n"); in read_usb_device()
223 READ_ATTR(udev, uint8_t, sdev, devnum, "%d\n"); in read_usb_device()
224 udev->speed = read_attr_speed(sdev); in read_usb_device()
229 strncpy(udev->path, path, SYSFS_PATH_MAX - 1); in read_usb_device()
230 udev->path[SYSFS_PATH_MAX - 1] = '\0'; in read_usb_device()
231 strncpy(udev->busid, name, SYSFS_BUS_ID_SIZE - 1); in read_usb_device()
232 udev->busid[SYSFS_BUS_ID_SIZE - 1] = '\0'; in read_usb_device()
235 udev->busnum = busnum; in read_usb_device()
240 int read_usb_interface(struct usbip_usb_device *udev, int i, in read_usb_interface() argument
248 udev->busid, udev->bConfigurationValue, i); in read_usb_interface()