Lines Matching defs:bus_state
825 struct xhci_bus_state *bus_state;
832 bus_state = &port->rhub->bus_state;
842 if (test_bit(wIndex, &bus_state->resuming_ports)) {
856 set_bit(wIndex, &bus_state->resuming_ports);
869 clear_bit(wIndex, &bus_state->resuming_ports);
905 bus_state->port_c_suspend |= 1 << wIndex;
906 bus_state->suspended_ports &= ~(1 << wIndex);
931 struct xhci_bus_state *bus_state;
937 bus_state = &port->rhub->bus_state;
968 if (bus_state->port_remote_wakeup & (1 << portnum)) {
969 bus_state->port_remote_wakeup &= ~(1 << portnum);
972 bus_state->suspended_ports &= ~(1 << portnum);
982 struct xhci_bus_state *bus_state;
987 bus_state = &port->rhub->bus_state;
1001 if (bus_state->suspended_ports & (1 << portnum)) {
1002 bus_state->suspended_ports &= ~(1 << portnum);
1003 bus_state->port_c_suspend |= 1 << portnum;
1023 test_bit(portnum, &bus_state->resuming_ports)) {
1025 clear_bit(portnum, &bus_state->resuming_ports);
1029 bus_state->suspended_ports &= ~(1 << portnum);
1044 struct xhci_bus_state *bus_state,
1086 if (bus_state->port_c_suspend & (1 << wIndex))
1101 struct xhci_bus_state *bus_state;
1114 bus_state = &rhub->bus_state;
1161 status = xhci_get_port_status(hcd, bus_state, wIndex, temp,
1248 bus_state->suspended_ports |= 1 << wIndex;
1381 bus_state->suspended_ports |= 1 << wIndex;
1470 set_bit(wIndex, &bus_state->resuming_ports);
1477 clear_bit(wIndex, &bus_state->resuming_ports);
1480 bus_state->port_c_suspend |= 1 << wIndex;
1491 bus_state->port_c_suspend &= ~(1 << wIndex);
1542 struct xhci_bus_state *bus_state;
1550 bus_state = &rhub->bus_state;
1562 status = bus_state->resuming_ports;
1588 (bus_state->port_c_suspend & 1 << i) ||
1613 struct xhci_bus_state *bus_state;
1623 bus_state = &rhub->bus_state;
1629 if (bus_state->resuming_ports || /* USB2 */
1630 bus_state->port_remote_wakeup) { /* USB3 */
1640 bus_state->bus_suspended = 0;
1665 bus_state->bus_suspended = 0;
1673 bus_state->bus_suspended = 0;
1682 set_bit(port_index, &bus_state->bus_suspended);
1716 if (test_bit(port_index, &bus_state->bus_suspended)) {
1730 bus_state->next_statechange = jiffies + msecs_to_jiffies(10);
1733 if (bus_state->bus_suspended)
1770 struct xhci_bus_state *bus_state;
1783 bus_state = &rhub->bus_state;
1785 if (time_before(jiffies, bus_state->next_statechange))
1815 clear_bit(port_index, &bus_state->bus_suspended);
1819 if (test_bit(port_index, &bus_state->bus_suspended))
1832 &bus_state->bus_suspended);
1842 if (bus_state->bus_suspended) {
1847 for_each_set_bit(port_index, &bus_state->bus_suspended,
1857 for_each_set_bit(port_index, &bus_state->bus_suspended, BITS_PER_LONG) {
1872 bus_state->next_statechange = jiffies + msecs_to_jiffies(5);
1888 return rhub->bus_state.resuming_ports; /* USB2 ports only */