Lines Matching refs:wIndex
830 dr->wIndex = 0; in ehset_single_step_set_feature()
874 u16 wIndex, in ehci_hub_control() argument
891 temp = wIndex & 0xff; in ehci_hub_control()
916 if (!wIndex || wIndex > ports) in ehci_hub_control()
918 wIndex--; in ehci_hub_control()
942 if ((hcd->self.otg_port == (wIndex + 1)) in ehci_hub_control()
965 ehci->reset_done[wIndex] = jiffies in ehci_hub_control()
967 set_bit(wIndex, &ehci->resuming_ports); in ehci_hub_control()
968 usb_hcd_start_port_resume(&hcd->self, wIndex); in ehci_hub_control()
971 clear_bit(wIndex, &ehci->port_c_suspend); in ehci_hub_control()
976 ehci_port_power(ehci, wIndex, false); in ehci_hub_control()
1004 if (!wIndex || wIndex > ports) in ehci_hub_control()
1006 wIndex--; in ehci_hub_control()
1029 ehci_port_power(ehci, wIndex, false); in ehci_hub_control()
1036 if (!ehci->reset_done[wIndex]) { in ehci_hub_control()
1041 ehci->reset_done[wIndex] = jiffies in ehci_hub_control()
1043 usb_hcd_start_port_resume(&hcd->self, wIndex); in ehci_hub_control()
1044 set_bit(wIndex, &ehci->resuming_ports); in ehci_hub_control()
1047 ehci->reset_done[wIndex]); in ehci_hub_control()
1051 } else if (!time_after_eq(jiffies, ehci->reset_done[wIndex])) { in ehci_hub_control()
1055 } else if (test_bit(wIndex, &ehci->resuming_ports)) { in ehci_hub_control()
1056 clear_bit(wIndex, &ehci->suspended_ports); in ehci_hub_control()
1057 set_bit(wIndex, &ehci->port_c_suspend); in ehci_hub_control()
1058 ehci->reset_done[wIndex] = 0; in ehci_hub_control()
1059 usb_hcd_end_port_resume(&hcd->self, wIndex); in ehci_hub_control()
1064 clear_bit(wIndex, &ehci->resuming_ports); in ehci_hub_control()
1069 wIndex + 1, retval); in ehci_hub_control()
1077 ehci->reset_done [wIndex] = 0; in ehci_hub_control()
1089 wIndex + 1, retval); in ehci_hub_control()
1094 temp = check_reset_complete (ehci, wIndex, status_reg, in ehci_hub_control()
1100 test_bit(wIndex, &ehci->companion_ports)) { in ehci_hub_control()
1104 ehci_dbg(ehci, "port %d --> companion\n", wIndex + 1); in ehci_hub_control()
1129 } else if (test_bit(wIndex, &ehci->suspended_ports)) { in ehci_hub_control()
1130 clear_bit(wIndex, &ehci->suspended_ports); in ehci_hub_control()
1131 clear_bit(wIndex, &ehci->resuming_ports); in ehci_hub_control()
1132 ehci->reset_done[wIndex] = 0; in ehci_hub_control()
1134 set_bit(wIndex, &ehci->port_c_suspend); in ehci_hub_control()
1135 usb_hcd_end_port_resume(&hcd->self, wIndex); in ehci_hub_control()
1144 if (test_bit(wIndex, &ehci->port_c_suspend)) in ehci_hub_control()
1148 dbg_port(ehci, "GetStatus", wIndex + 1, temp); in ehci_hub_control()
1162 selector = wIndex >> 8; in ehci_hub_control()
1163 wIndex &= 0xff; in ehci_hub_control()
1167 if (wIndex == HCS_DEBUG_PORT(ehci->hcs_params) && in ehci_hub_control()
1173 if (!wIndex || wIndex > ports) in ehci_hub_control()
1175 wIndex--; in ehci_hub_control()
1205 wIndex, (temp1 & HOSTPC_PHCD) ? in ehci_hub_control()
1214 set_bit(wIndex, &ehci->suspended_ports); in ehci_hub_control()
1219 ehci_port_power(ehci, wIndex, true); in ehci_hub_control()
1235 wIndex + 1); in ehci_hub_control()
1245 ehci->reset_done [wIndex] = jiffies in ehci_hub_control()
1269 wIndex + 1); in ehci_hub_control()