Lines Matching defs:wIndex
482 u16 wIndex, __le32 __iomem *addr, u32 port_status)
501 hcd->self.busnum, wIndex + 1, port_status);
505 u16 wIndex, __le32 __iomem *addr, u32 port_status)
552 wIndex + 1, port_change_bit, port_status);
605 u16 test_mode, u16 wIndex)
611 port = xhci->usb2_rhub.ports[wIndex];
621 u16 test_mode, u16 wIndex, unsigned long *flags)
656 /* Port is selected by wIndex. port_id = wIndex + 1 */
658 test_mode, wIndex + 1);
659 xhci_port_set_test_mode(xhci, test_mode, wIndex);
801 u16 wIndex)
810 xhci->port_status_u0 |= 1 << wIndex;
829 u32 wIndex;
834 wIndex = port->hcd_portnum;
842 if (test_bit(wIndex, &bus_state->resuming_ports)) {
856 set_bit(wIndex, &bus_state->resuming_ports);
859 usb_hcd_start_port_resume(&hcd->self, wIndex);
866 hcd->self.busnum, wIndex + 1);
869 clear_bit(wIndex, &bus_state->resuming_ports);
885 wIndex + 1);
895 hcd->self.busnum, wIndex + 1, port_status);
904 usb_hcd_end_port_resume(&hcd->self, wIndex);
905 bus_state->port_c_suspend |= 1 << wIndex;
906 bus_state->suspended_ports &= ~(1 << wIndex);
1045 u16 wIndex, u32 raw_port_status,
1055 port = rhub->ports[wIndex];
1086 if (bus_state->port_c_suspend & (1 << wIndex))
1093 u16 wIndex, char *buf, u16 wLength)
1115 portnum1 = wIndex & 0xff;
1152 wIndex--;
1160 trace_xhci_get_port_status(wIndex, temp);
1161 status = xhci_get_port_status(hcd, bus_state, wIndex, temp,
1186 link_state = (wIndex & 0xff00) >> 3;
1188 wake_mask = wIndex & 0xff00;
1190 test_mode = (wIndex & 0xff00) >> 8;
1191 /* The MSB of wIndex is the U1/U2 timeout */
1192 timeout = (wIndex & 0xff00) >> 8;
1194 wIndex &= 0xff;
1199 wIndex--;
1248 bus_state->suspended_ports |= 1 << wIndex;
1381 bus_state->suspended_ports |= 1 << wIndex;
1391 xhci_set_port_power(xhci, hcd, wIndex, true, &flags);
1435 retval = xhci_enter_test_mode(xhci, test_mode, wIndex,
1450 wIndex--;
1470 set_bit(wIndex, &bus_state->resuming_ports);
1471 usb_hcd_start_port_resume(&hcd->self, wIndex);
1477 clear_bit(wIndex, &bus_state->resuming_ports);
1478 usb_hcd_end_port_resume(&hcd->self, wIndex);
1480 bus_state->port_c_suspend |= 1 << wIndex;
1491 bus_state->port_c_suspend &= ~(1 << wIndex);
1500 xhci_clear_port_change_bit(xhci, wValue, wIndex,
1504 xhci_disable_port(hcd, xhci, wIndex,
1508 xhci_set_port_power(xhci, hcd, wIndex, false, &flags);