Lines Matching defs:bus_state
930 struct xhci_bus_state *bus_state;
937 bus_state = &port->rhub->bus_state;
947 if (test_bit(wIndex, &bus_state->resuming_ports)) {
961 set_bit(wIndex, &bus_state->resuming_ports);
974 clear_bit(wIndex, &bus_state->resuming_ports);
1010 bus_state->port_c_suspend |= 1 << wIndex;
1011 bus_state->suspended_ports &= ~(1 << wIndex);
1036 struct xhci_bus_state *bus_state;
1042 bus_state = &port->rhub->bus_state;
1073 if (bus_state->port_remote_wakeup & (1 << portnum)) {
1074 bus_state->port_remote_wakeup &= ~(1 << portnum);
1077 bus_state->suspended_ports &= ~(1 << portnum);
1087 struct xhci_bus_state *bus_state;
1092 bus_state = &port->rhub->bus_state;
1106 if (bus_state->suspended_ports & (1 << portnum)) {
1107 bus_state->suspended_ports &= ~(1 << portnum);
1108 bus_state->port_c_suspend |= 1 << portnum;
1128 test_bit(portnum, &bus_state->resuming_ports)) {
1130 clear_bit(portnum, &bus_state->resuming_ports);
1134 bus_state->suspended_ports &= ~(1 << portnum);
1149 struct xhci_bus_state *bus_state,
1191 if (bus_state->port_c_suspend & (1 << wIndex))
1206 struct xhci_bus_state *bus_state;
1219 bus_state = &rhub->bus_state;
1266 status = xhci_get_port_status(hcd, bus_state, wIndex, temp,
1353 bus_state->suspended_ports |= 1 << wIndex;
1486 bus_state->suspended_ports |= 1 << wIndex;
1575 set_bit(wIndex, &bus_state->resuming_ports);
1582 clear_bit(wIndex, &bus_state->resuming_ports);
1585 bus_state->port_c_suspend |= 1 << wIndex;
1596 bus_state->port_c_suspend &= ~(1 << wIndex);
1647 struct xhci_bus_state *bus_state;
1655 bus_state = &rhub->bus_state;
1667 status = bus_state->resuming_ports;
1693 (bus_state->port_c_suspend & 1 << i) ||
1719 struct xhci_bus_state *bus_state;
1729 bus_state = &rhub->bus_state;
1735 if (bus_state->resuming_ports || /* USB2 */
1736 bus_state->port_remote_wakeup) { /* USB3 */
1747 bus_state->bus_suspended = 0;
1772 bus_state->bus_suspended = 0;
1780 bus_state->bus_suspended = 0;
1789 set_bit(port_index, &bus_state->bus_suspended);
1823 if (test_bit(port_index, &bus_state->bus_suspended)) {
1837 bus_state->next_statechange = jiffies + msecs_to_jiffies(10);
1840 if (bus_state->bus_suspended)
1877 struct xhci_bus_state *bus_state;
1890 bus_state = &rhub->bus_state;
1892 if (time_before(jiffies, bus_state->next_statechange))
1922 clear_bit(port_index, &bus_state->bus_suspended);
1926 if (test_bit(port_index, &bus_state->bus_suspended))
1939 &bus_state->bus_suspended);
1949 if (bus_state->bus_suspended) {
1954 for_each_set_bit(port_index, &bus_state->bus_suspended,
1964 for_each_set_bit(port_index, &bus_state->bus_suspended, BITS_PER_LONG) {
1979 bus_state->next_statechange = jiffies + msecs_to_jiffies(5);
1995 return rhub->bus_state.resuming_ports; /* USB2 ports only */