Lines Matching refs:idev

21 imported_device_init(struct usbip_imported_device *idev, char *busid)  in imported_device_init()  argument
31 read_usb_device(sudev, &idev->udev); in imported_device_init()
34 return idev; in imported_device_init()
55 struct usbip_imported_device *idev; in parse_status() local
72 idev = &vhci_driver->idev[port]; in parse_status()
73 memset(idev, 0, sizeof(*idev)); in parse_status()
76 idev->hub = HUB_SPEED_HIGH; in parse_status()
78 idev->hub = HUB_SPEED_SUPER; in parse_status()
80 idev->port = port; in parse_status()
81 idev->status = status; in parse_status()
83 idev->devid = devid; in parse_status()
85 idev->busnum = (devid >> 16); in parse_status()
86 idev->devnum = (devid & 0x0000ffff); in parse_status()
88 if (idev->status != VDEV_ST_NULL in parse_status()
89 && idev->status != VDEV_ST_NOTASSIGNED) { in parse_status()
90 idev = imported_device_init(idev, lbusid); in parse_status()
91 if (!idev) { in parse_status()
341 if (vhci_driver->idev[i].hub != HUB_SPEED_SUPER) in usbip_vhci_get_free_port()
345 if (vhci_driver->idev[i].hub != HUB_SPEED_HIGH) in usbip_vhci_get_free_port()
350 if (vhci_driver->idev[i].status == VDEV_ST_NULL) in usbip_vhci_get_free_port()
351 return vhci_driver->idev[i].port; in usbip_vhci_get_free_port()
426 int usbip_vhci_imported_device_dump(struct usbip_imported_device *idev) in usbip_vhci_imported_device_dump() argument
435 if (idev->status == VDEV_ST_NULL || idev->status == VDEV_ST_NOTASSIGNED) in usbip_vhci_imported_device_dump()
438 ret = read_record(idev->port, host, sizeof(host), serv, sizeof(serv), in usbip_vhci_imported_device_dump()
445 printf("Port %02d: <%s> at %s\n", idev->port, in usbip_vhci_imported_device_dump()
446 usbip_status_string(idev->status), in usbip_vhci_imported_device_dump()
447 usbip_speed_string(idev->udev.speed)); in usbip_vhci_imported_device_dump()
450 idev->udev.idVendor, idev->udev.idProduct); in usbip_vhci_imported_device_dump()
455 printf("%10s -> usbip://%s:%s/%s\n", idev->udev.busid, in usbip_vhci_imported_device_dump()
458 idev->busnum, idev->devnum); in usbip_vhci_imported_device_dump()
461 idev->udev.busid); in usbip_vhci_imported_device_dump()
463 idev->busnum, idev->devnum); in usbip_vhci_imported_device_dump()