Lines Matching refs:wIndex

820 	dr->wIndex = 0;  in ehset_single_step_set_feature()
864 u16 wIndex, in ehci_hub_control() argument
871 (wIndex & 0xff) - 1]; in ehci_hub_control()
872 u32 __iomem *hostpc_reg = &ehci->regs->hostpc[(wIndex & 0xff) - 1]; in ehci_hub_control()
898 if (!wIndex || wIndex > ports) in ehci_hub_control()
900 wIndex--; in ehci_hub_control()
924 if ((hcd->self.otg_port == (wIndex + 1)) in ehci_hub_control()
947 ehci->reset_done[wIndex] = jiffies in ehci_hub_control()
949 set_bit(wIndex, &ehci->resuming_ports); in ehci_hub_control()
950 usb_hcd_start_port_resume(&hcd->self, wIndex); in ehci_hub_control()
953 clear_bit(wIndex, &ehci->port_c_suspend); in ehci_hub_control()
958 ehci_port_power(ehci, wIndex, false); in ehci_hub_control()
986 if (!wIndex || wIndex > ports) in ehci_hub_control()
988 wIndex--; in ehci_hub_control()
1011 ehci_port_power(ehci, wIndex, false); in ehci_hub_control()
1018 if (!ehci->reset_done[wIndex]) { in ehci_hub_control()
1023 ehci->reset_done[wIndex] = jiffies in ehci_hub_control()
1025 usb_hcd_start_port_resume(&hcd->self, wIndex); in ehci_hub_control()
1026 set_bit(wIndex, &ehci->resuming_ports); in ehci_hub_control()
1029 ehci->reset_done[wIndex]); in ehci_hub_control()
1033 } else if (!time_after_eq(jiffies, ehci->reset_done[wIndex])) { in ehci_hub_control()
1037 } else if (test_bit(wIndex, &ehci->resuming_ports)) { in ehci_hub_control()
1038 clear_bit(wIndex, &ehci->suspended_ports); in ehci_hub_control()
1039 set_bit(wIndex, &ehci->port_c_suspend); in ehci_hub_control()
1040 ehci->reset_done[wIndex] = 0; in ehci_hub_control()
1041 usb_hcd_end_port_resume(&hcd->self, wIndex); in ehci_hub_control()
1046 clear_bit(wIndex, &ehci->resuming_ports); in ehci_hub_control()
1051 wIndex + 1, retval); in ehci_hub_control()
1059 ehci->reset_done [wIndex] = 0; in ehci_hub_control()
1071 wIndex + 1, retval); in ehci_hub_control()
1076 temp = check_reset_complete (ehci, wIndex, status_reg, in ehci_hub_control()
1082 test_bit(wIndex, &ehci->companion_ports)) { in ehci_hub_control()
1086 ehci_dbg(ehci, "port %d --> companion\n", wIndex + 1); in ehci_hub_control()
1111 } else if (test_bit(wIndex, &ehci->suspended_ports)) { in ehci_hub_control()
1112 clear_bit(wIndex, &ehci->suspended_ports); in ehci_hub_control()
1113 clear_bit(wIndex, &ehci->resuming_ports); in ehci_hub_control()
1114 ehci->reset_done[wIndex] = 0; in ehci_hub_control()
1116 set_bit(wIndex, &ehci->port_c_suspend); in ehci_hub_control()
1117 usb_hcd_end_port_resume(&hcd->self, wIndex); in ehci_hub_control()
1126 if (test_bit(wIndex, &ehci->port_c_suspend)) in ehci_hub_control()
1130 dbg_port(ehci, "GetStatus", wIndex + 1, temp); in ehci_hub_control()
1144 selector = wIndex >> 8; in ehci_hub_control()
1145 wIndex &= 0xff; in ehci_hub_control()
1149 if (wIndex == HCS_DEBUG_PORT(ehci->hcs_params) && in ehci_hub_control()
1155 if (!wIndex || wIndex > ports) in ehci_hub_control()
1157 wIndex--; in ehci_hub_control()
1187 wIndex, (temp1 & HOSTPC_PHCD) ? in ehci_hub_control()
1190 set_bit(wIndex, &ehci->suspended_ports); in ehci_hub_control()
1195 ehci_port_power(ehci, wIndex, true); in ehci_hub_control()
1211 wIndex + 1); in ehci_hub_control()
1221 ehci->reset_done [wIndex] = jiffies in ehci_hub_control()
1238 wIndex + 1); in ehci_hub_control()