Lines Matching refs:i

164 	int i;  in usb_hub_power_on()  local
172 for (i = 0; i < dev->maxchild; i++) { in usb_hub_power_on()
173 usb_set_port_feature(dev, i + 1, USB_PORT_FEAT_POWER); in usb_hub_power_on()
174 debug("port %d returns %lX\n", i + 1, dev->status); in usb_hub_power_on()
450 int i; in usb_scan_port() local
454 i = usb_scan->port; in usb_scan_port()
463 ret = usb_get_port_status(dev, i + 1, portsts); in usb_scan_port()
468 dev->devnum, i + 1); in usb_scan_port()
479 debug("Port %d Status %X Change %X\n", i + 1, portstatus, portchange); in usb_scan_port()
492 dev->devnum, i + 1); in usb_scan_port()
502 debug("port %d reset change\n", i + 1); in usb_scan_port()
503 usb_clear_port_feature(dev, i + 1, USB_PORT_FEAT_C_RESET); in usb_scan_port()
508 debug("port %d BH reset change\n", i + 1); in usb_scan_port()
509 usb_clear_port_feature(dev, i + 1, USB_SS_PORT_FEAT_C_BH_RESET); in usb_scan_port()
513 debug("devnum=%d port=%d: USB dev found\n", dev->devnum, i + 1); in usb_scan_port()
515 usb_hub_port_connect_change(dev, i); in usb_scan_port()
518 debug("port %d enable change, status %x\n", i + 1, portstatus); in usb_scan_port()
519 usb_clear_port_feature(dev, i + 1, USB_PORT_FEAT_C_ENABLE); in usb_scan_port()
532 usb_device_has_child_on_port(dev, i)) { in usb_scan_port()
534 i + 1); in usb_scan_port()
535 usb_hub_port_connect_change(dev, i); in usb_scan_port()
541 debug("port %d suspend change\n", i + 1); in usb_scan_port()
542 usb_clear_port_feature(dev, i + 1, USB_PORT_FEAT_SUSPEND); in usb_scan_port()
546 debug("port %d over-current change\n", i + 1); in usb_scan_port()
547 usb_clear_port_feature(dev, i + 1, in usb_scan_port()
550 usb_set_port_feature(dev, i + 1, USB_PORT_FEAT_POWER); in usb_scan_port()
551 hub->overcurrent_count[i]++; in usb_scan_port()
557 if (hub->overcurrent_count[i] <= in usb_scan_port()
562 printf("Port %d over-current occurred %d times\n", i + 1, in usb_scan_port()
563 hub->overcurrent_count[i]); in usb_scan_port()
631 int i, length; in usb_hub_configure() local
675 for (i = 0; i < ((hub->desc.bNbrPorts + 1 + 7)/8); i++) in usb_hub_configure()
676 hub->desc.u.hs.DeviceRemovable[i] = in usb_hub_configure()
677 descriptor->u.hs.DeviceRemovable[i]; in usb_hub_configure()
679 for (i = 0; i < ((hub->desc.bNbrPorts + 1 + 7)/8); i++) in usb_hub_configure()
680 hub->desc.u.hs.PortPowerCtrlMask[i] = in usb_hub_configure()
681 descriptor->u.hs.PortPowerCtrlMask[i]; in usb_hub_configure()
773 for (i = 0; i < dev->maxchild; i++) in usb_hub_configure()
774 debug("port %d is%s removable\n", i + 1, in usb_hub_configure()
775 hub->desc.u.hs.DeviceRemovable[(i + 1) / 8] & \ in usb_hub_configure()
776 (1 << ((i + 1) % 8)) ? " not" : ""); in usb_hub_configure()
862 for (i = 0; i < dev->maxchild; i++) in usb_hub_configure()
863 usb_hub_reset_devices(hub, i + 1); in usb_hub_configure()
872 for (i = 0; i < dev->maxchild; i++) { in usb_hub_configure()
882 usb_scan->port = i; in usb_hub_configure()