Lines Matching refs:bus_state

572 		struct xhci_bus_state *bus_state,  in xhci_get_port_status()  argument
620 bus_state->resume_done[wIndex])) { in xhci_get_port_status()
625 bus_state->resume_done[wIndex] = 0; in xhci_get_port_status()
626 clear_bit(wIndex, &bus_state->resuming_ports); in xhci_get_port_status()
628 set_bit(wIndex, &bus_state->rexit_ports); in xhci_get_port_status()
634 &bus_state->rexit_done[wIndex], in xhci_get_port_status()
653 clear_bit(wIndex, &bus_state->rexit_ports); in xhci_get_port_status()
656 bus_state->port_c_suspend |= 1 << wIndex; in xhci_get_port_status()
657 bus_state->suspended_ports &= ~(1 << wIndex); in xhci_get_port_status()
670 && (bus_state->suspended_ports & (1 << wIndex))) { in xhci_get_port_status()
671 bus_state->suspended_ports &= ~(1 << wIndex); in xhci_get_port_status()
673 bus_state->port_c_suspend |= 1 << wIndex; in xhci_get_port_status()
702 if (bus_state->port_c_suspend & (1 << wIndex)) in xhci_get_port_status()
718 struct xhci_bus_state *bus_state; in xhci_hub_control() local
724 bus_state = &xhci->bus_state[hcd_index(hcd)]; in xhci_hub_control()
779 status = xhci_get_port_status(hcd, bus_state, port_array, in xhci_hub_control()
849 bus_state->suspended_ports |= 1 << wIndex; in xhci_hub_control()
911 bus_state->suspended_ports |= 1 << wIndex; in xhci_hub_control()
1006 bus_state->port_c_suspend |= 1 << wIndex; in xhci_hub_control()
1017 bus_state->port_c_suspend &= ~(1 << wIndex); in xhci_hub_control()
1073 struct xhci_bus_state *bus_state; in xhci_hub_status_data() local
1077 bus_state = &xhci->bus_state[hcd_index(hcd)]; in xhci_hub_status_data()
1087 status = bus_state->resuming_ports; in xhci_hub_status_data()
1100 (bus_state->port_c_suspend & 1 << i) || in xhci_hub_status_data()
1101 (bus_state->resume_done[i] && time_after_eq( in xhci_hub_status_data()
1102 jiffies, bus_state->resume_done[i]))) { in xhci_hub_status_data()
1124 struct xhci_bus_state *bus_state; in xhci_bus_suspend() local
1128 bus_state = &xhci->bus_state[hcd_index(hcd)]; in xhci_bus_suspend()
1133 if (bus_state->resuming_ports || /* USB2 */ in xhci_bus_suspend()
1134 bus_state->port_remote_wakeup) { /* USB3 */ in xhci_bus_suspend()
1142 bus_state->bus_suspended = 0; in xhci_bus_suspend()
1162 set_bit(port_index, &bus_state->bus_suspended); in xhci_bus_suspend()
1184 bus_state->next_statechange = jiffies + msecs_to_jiffies(10); in xhci_bus_suspend()
1194 struct xhci_bus_state *bus_state; in xhci_bus_resume() local
1199 bus_state = &xhci->bus_state[hcd_index(hcd)]; in xhci_bus_resume()
1201 if (time_before(jiffies, bus_state->next_statechange)) in xhci_bus_resume()
1227 if (test_bit(port_index, &bus_state->bus_suspended) && in xhci_bus_resume()
1264 bus_state->next_statechange = jiffies + msecs_to_jiffies(5); in xhci_bus_resume()