Lines Matching refs:wIndex

735 	u16		wIndex,  in ehci_hub_control()  argument
752 temp = (wIndex - 1) & 0xff; in ehci_hub_control()
778 if (!wIndex || wIndex > ports) in ehci_hub_control()
780 wIndex--; in ehci_hub_control()
804 if ((hcd->self.otg_port == (wIndex + 1)) in ehci_hub_control()
827 ehci->reset_done[wIndex] = jiffies in ehci_hub_control()
829 set_bit(wIndex, &ehci->resuming_ports); in ehci_hub_control()
830 usb_hcd_start_port_resume(&hcd->self, wIndex); in ehci_hub_control()
833 clear_bit(wIndex, &ehci->port_c_suspend); in ehci_hub_control()
838 ehci_port_power(ehci, wIndex, false); in ehci_hub_control()
866 if (!wIndex || wIndex > ports) in ehci_hub_control()
868 wIndex--; in ehci_hub_control()
891 ehci_port_power(ehci, wIndex, false); in ehci_hub_control()
898 if (!ehci->reset_done[wIndex]) { in ehci_hub_control()
903 ehci->reset_done[wIndex] = jiffies in ehci_hub_control()
905 usb_hcd_start_port_resume(&hcd->self, wIndex); in ehci_hub_control()
906 set_bit(wIndex, &ehci->resuming_ports); in ehci_hub_control()
909 ehci->reset_done[wIndex]); in ehci_hub_control()
913 } else if (!time_after_eq(jiffies, ehci->reset_done[wIndex])) { in ehci_hub_control()
917 } else if (test_bit(wIndex, &ehci->resuming_ports)) { in ehci_hub_control()
918 clear_bit(wIndex, &ehci->suspended_ports); in ehci_hub_control()
919 set_bit(wIndex, &ehci->port_c_suspend); in ehci_hub_control()
920 ehci->reset_done[wIndex] = 0; in ehci_hub_control()
921 usb_hcd_end_port_resume(&hcd->self, wIndex); in ehci_hub_control()
926 clear_bit(wIndex, &ehci->resuming_ports); in ehci_hub_control()
931 wIndex + 1, retval); in ehci_hub_control()
939 ehci->reset_done [wIndex] = 0; in ehci_hub_control()
951 wIndex + 1, retval); in ehci_hub_control()
956 temp = check_reset_complete (ehci, wIndex, status_reg, in ehci_hub_control()
962 test_bit(wIndex, &ehci->companion_ports)) { in ehci_hub_control()
966 ehci_dbg(ehci, "port %d --> companion\n", wIndex + 1); in ehci_hub_control()
991 } else if (test_bit(wIndex, &ehci->suspended_ports)) { in ehci_hub_control()
992 clear_bit(wIndex, &ehci->suspended_ports); in ehci_hub_control()
993 clear_bit(wIndex, &ehci->resuming_ports); in ehci_hub_control()
994 ehci->reset_done[wIndex] = 0; in ehci_hub_control()
996 set_bit(wIndex, &ehci->port_c_suspend); in ehci_hub_control()
997 usb_hcd_end_port_resume(&hcd->self, wIndex); in ehci_hub_control()
1006 if (test_bit(wIndex, &ehci->port_c_suspend)) in ehci_hub_control()
1010 dbg_port(ehci, "GetStatus", wIndex + 1, temp); in ehci_hub_control()
1024 selector = wIndex >> 8; in ehci_hub_control()
1025 wIndex &= 0xff; in ehci_hub_control()
1029 if (wIndex == HCS_DEBUG_PORT(ehci->hcs_params) && in ehci_hub_control()
1035 if (!wIndex || wIndex > ports) in ehci_hub_control()
1037 wIndex--; in ehci_hub_control()
1067 wIndex, (temp1 & HOSTPC_PHCD) ? in ehci_hub_control()
1076 set_bit(wIndex, &ehci->suspended_ports); in ehci_hub_control()
1081 ehci_port_power(ehci, wIndex, true); in ehci_hub_control()
1097 wIndex + 1); in ehci_hub_control()
1107 ehci->reset_done [wIndex] = jiffies in ehci_hub_control()
1131 wIndex + 1); in ehci_hub_control()