Lines Matching refs:wIndex

821 	dr->wIndex = 0;  in ehset_single_step_set_feature()
865 u16 wIndex, in ehci_hub_control() argument
872 (wIndex & 0xff) - 1]; in ehci_hub_control()
873 u32 __iomem *hostpc_reg = &ehci->regs->hostpc[(wIndex & 0xff) - 1]; in ehci_hub_control()
899 if (!wIndex || wIndex > ports) in ehci_hub_control()
901 wIndex--; in ehci_hub_control()
925 if ((hcd->self.otg_port == (wIndex + 1)) in ehci_hub_control()
948 ehci->reset_done[wIndex] = jiffies in ehci_hub_control()
950 set_bit(wIndex, &ehci->resuming_ports); in ehci_hub_control()
951 usb_hcd_start_port_resume(&hcd->self, wIndex); in ehci_hub_control()
954 clear_bit(wIndex, &ehci->port_c_suspend); in ehci_hub_control()
959 ehci_port_power(ehci, wIndex, false); in ehci_hub_control()
987 if (!wIndex || wIndex > ports) in ehci_hub_control()
989 wIndex--; in ehci_hub_control()
1012 ehci_port_power(ehci, wIndex, false); in ehci_hub_control()
1019 if (!ehci->reset_done[wIndex]) { in ehci_hub_control()
1024 ehci->reset_done[wIndex] = jiffies in ehci_hub_control()
1026 usb_hcd_start_port_resume(&hcd->self, wIndex); in ehci_hub_control()
1027 set_bit(wIndex, &ehci->resuming_ports); in ehci_hub_control()
1030 ehci->reset_done[wIndex]); in ehci_hub_control()
1034 } else if (!time_after_eq(jiffies, ehci->reset_done[wIndex])) { in ehci_hub_control()
1038 } else if (test_bit(wIndex, &ehci->resuming_ports)) { in ehci_hub_control()
1039 clear_bit(wIndex, &ehci->suspended_ports); in ehci_hub_control()
1040 set_bit(wIndex, &ehci->port_c_suspend); in ehci_hub_control()
1041 ehci->reset_done[wIndex] = 0; in ehci_hub_control()
1042 usb_hcd_end_port_resume(&hcd->self, wIndex); in ehci_hub_control()
1047 clear_bit(wIndex, &ehci->resuming_ports); in ehci_hub_control()
1052 wIndex + 1, retval); in ehci_hub_control()
1060 ehci->reset_done [wIndex] = 0; in ehci_hub_control()
1072 wIndex + 1, retval); in ehci_hub_control()
1077 temp = check_reset_complete (ehci, wIndex, status_reg, in ehci_hub_control()
1083 test_bit(wIndex, &ehci->companion_ports)) { in ehci_hub_control()
1087 ehci_dbg(ehci, "port %d --> companion\n", wIndex + 1); in ehci_hub_control()
1112 } else if (test_bit(wIndex, &ehci->suspended_ports)) { in ehci_hub_control()
1113 clear_bit(wIndex, &ehci->suspended_ports); in ehci_hub_control()
1114 clear_bit(wIndex, &ehci->resuming_ports); in ehci_hub_control()
1115 ehci->reset_done[wIndex] = 0; in ehci_hub_control()
1117 set_bit(wIndex, &ehci->port_c_suspend); in ehci_hub_control()
1118 usb_hcd_end_port_resume(&hcd->self, wIndex); in ehci_hub_control()
1127 if (test_bit(wIndex, &ehci->port_c_suspend)) in ehci_hub_control()
1131 dbg_port(ehci, "GetStatus", wIndex + 1, temp); in ehci_hub_control()
1145 selector = wIndex >> 8; in ehci_hub_control()
1146 wIndex &= 0xff; in ehci_hub_control()
1150 if (wIndex == HCS_DEBUG_PORT(ehci->hcs_params) && in ehci_hub_control()
1156 if (!wIndex || wIndex > ports) in ehci_hub_control()
1158 wIndex--; in ehci_hub_control()
1188 wIndex, (temp1 & HOSTPC_PHCD) ? in ehci_hub_control()
1191 set_bit(wIndex, &ehci->suspended_ports); in ehci_hub_control()
1196 ehci_port_power(ehci, wIndex, true); in ehci_hub_control()
1212 wIndex + 1); in ehci_hub_control()
1222 ehci->reset_done [wIndex] = jiffies in ehci_hub_control()
1246 wIndex + 1); in ehci_hub_control()