Lines Matching refs:devnum
1909 if (hdev->devnum <= 0) in hub_ioctl()
1918 hub->ports[i]->child->devnum; in hub_ioctl()
2115 int devnum; in choose_devnum() local
2121 devnum = udev->portnum + 1; in choose_devnum()
2122 BUG_ON(test_bit(devnum, bus->devmap.devicemap)); in choose_devnum()
2126 devnum = find_next_zero_bit(bus->devmap.devicemap, 128, in choose_devnum()
2128 if (devnum >= 128) in choose_devnum()
2129 devnum = find_next_zero_bit(bus->devmap.devicemap, in choose_devnum()
2131 bus->devnum_next = (devnum >= 127 ? 1 : devnum + 1); in choose_devnum()
2133 if (devnum < 128) { in choose_devnum()
2134 set_bit(devnum, bus->devmap.devicemap); in choose_devnum()
2135 udev->devnum = devnum; in choose_devnum()
2142 if (udev->devnum > 0) { in release_devnum()
2143 clear_bit(udev->devnum, udev->bus->devmap.devicemap); in release_devnum()
2144 udev->devnum = -1; in release_devnum()
2148 static void update_devnum(struct usb_device *udev, int devnum) in update_devnum() argument
2152 udev->devnum = devnum; in update_devnum()
2154 udev->devaddr = (u8)devnum; in update_devnum()
2208 udev->devnum); in usb_disconnect()
2537 udev->devnum, udev->bus->busnum, in usb_new_device()
2538 (((udev->bus->busnum-1) * 128) + (udev->devnum-1))); in usb_new_device()
2541 (((udev->bus->busnum-1) * 128) + (udev->devnum-1))); in usb_new_device()
4593 static int hub_set_address(struct usb_device *udev, int devnum) in hub_set_address() argument
4602 if (!hcd->driver->address_device && devnum <= 1) in hub_set_address()
4612 USB_REQ_SET_ADDRESS, 0, devnum, 0, in hub_set_address()
4615 update_devnum(udev, devnum); in hub_set_address()
4685 int devnum = udev->devnum; in hub_port_init() local
4769 devnum, driver_name); in hub_port_init()
4886 retval = hub_set_address(udev, devnum); in hub_port_init()
4894 devnum, retval); in hub_port_init()
4898 devnum = udev->devnum; in hub_port_init()
4910 devnum, driver_name); in hub_port_init()
5015 update_devnum(udev, devnum); /* for disconnect processing */ in hub_port_init()
5276 if (udev->devnum <= 0) { in hub_port_connect()