Lines Matching defs:wIndex

736 	u16		wIndex,
750 * from wIndex. The compiler doesn't like pointers to invalid
753 temp = (wIndex - 1) & 0xff;
779 if (!wIndex || wIndex > ports)
781 wIndex--;
805 if ((hcd->self.otg_port == (wIndex + 1))
828 ehci->reset_done[wIndex] = jiffies
830 set_bit(wIndex, &ehci->resuming_ports);
831 usb_hcd_start_port_resume(&hcd->self, wIndex);
834 clear_bit(wIndex, &ehci->port_c_suspend);
839 ehci_port_power(ehci, wIndex, false);
867 if (!wIndex || wIndex > ports)
869 wIndex--;
883 wIndex + 1, temp);
899 ehci_port_power(ehci, wIndex, false);
906 if (!ehci->reset_done[wIndex]) {
911 ehci->reset_done[wIndex] = jiffies
913 usb_hcd_start_port_resume(&hcd->self, wIndex);
914 set_bit(wIndex, &ehci->resuming_ports);
917 ehci->reset_done[wIndex]);
921 } else if (!time_after_eq(jiffies, ehci->reset_done[wIndex])) {
925 } else if (test_bit(wIndex, &ehci->resuming_ports)) {
926 clear_bit(wIndex, &ehci->suspended_ports);
927 set_bit(wIndex, &ehci->port_c_suspend);
928 ehci->reset_done[wIndex] = 0;
929 usb_hcd_end_port_resume(&hcd->self, wIndex);
934 clear_bit(wIndex, &ehci->resuming_ports);
939 wIndex + 1, retval);
947 ehci->reset_done [wIndex] = 0;
959 wIndex + 1, retval);
964 temp = check_reset_complete (ehci, wIndex, status_reg,
970 test_bit(wIndex, &ehci->companion_ports)) {
974 ehci_dbg(ehci, "port %d --> companion\n", wIndex + 1);
999 } else if (test_bit(wIndex, &ehci->suspended_ports)) {
1000 clear_bit(wIndex, &ehci->suspended_ports);
1001 clear_bit(wIndex, &ehci->resuming_ports);
1002 ehci->reset_done[wIndex] = 0;
1004 set_bit(wIndex, &ehci->port_c_suspend);
1005 usb_hcd_end_port_resume(&hcd->self, wIndex);
1014 if (test_bit(wIndex, &ehci->port_c_suspend))
1018 dbg_port(ehci, "GetStatus", wIndex + 1, temp);
1032 selector = wIndex >> 8;
1033 wIndex &= 0xff;
1037 if (wIndex == HCS_DEBUG_PORT(ehci->hcs_params) &&
1043 if (!wIndex || wIndex > ports)
1045 wIndex--;
1075 wIndex, (temp1 & HOSTPC_PHCD) ?
1084 set_bit(wIndex, &ehci->suspended_ports);
1089 ehci_port_power(ehci, wIndex, true);
1105 wIndex + 1);
1115 ehci->reset_done [wIndex] = jiffies
1139 wIndex + 1);