Searched refs:bus_state (Results 1 – 5 of 5) sorted by relevance
830 struct xhci_bus_state *bus_state; in xhci_handle_usb2_port_link_resume() local837 bus_state = &port->rhub->bus_state; in xhci_handle_usb2_port_link_resume()846 if (!bus_state->resume_done[wIndex]) { in xhci_handle_usb2_port_link_resume()848 if (test_bit(wIndex, &bus_state->resuming_ports)) { in xhci_handle_usb2_port_link_resume()862 set_bit(wIndex, &bus_state->resuming_ports); in xhci_handle_usb2_port_link_resume()863 bus_state->resume_done[wIndex] = timeout; in xhci_handle_usb2_port_link_resume()868 } else if (time_after_eq(jiffies, bus_state->resume_done[wIndex])) { in xhci_handle_usb2_port_link_resume()874 bus_state->resume_done[wIndex] = 0; in xhci_handle_usb2_port_link_resume()875 clear_bit(wIndex, &bus_state->resuming_ports); in xhci_handle_usb2_port_link_resume()877 set_bit(wIndex, &bus_state->rexit_ports); in xhci_handle_usb2_port_link_resume()[all …]
1902 struct xhci_bus_state *bus_state; in handle_port_status() local1937 bus_state = &port->rhub->bus_state; in handle_port_status()1973 bus_state->port_remote_wakeup |= 1 << hcd_portnum; in handle_port_status()1982 } else if (!test_bit(hcd_portnum, &bus_state->resuming_ports)) { in handle_port_status()1984 bus_state->resume_done[hcd_portnum] = jiffies + in handle_port_status()1986 set_bit(hcd_portnum, &bus_state->resuming_ports); in handle_port_status()1993 bus_state->resume_done[hcd_portnum]); in handle_port_status()2005 complete(&bus_state->u3exit_done[hcd_portnum]); in handle_port_status()2016 if (bus_state->port_remote_wakeup & (1 << hcd_portnum)) { in handle_port_status()2032 &bus_state->rexit_ports)) { in handle_port_status()[all …]
2047 xhci->usb2_rhub.bus_state.bus_suspended = 0; in xhci_mem_cleanup()2048 xhci->usb3_rhub.bus_state.bus_suspended = 0; in xhci_mem_cleanup()2682 xhci->usb2_rhub.bus_state.resume_done[i] = 0; in xhci_mem_init()2683 xhci->usb3_rhub.bus_state.resume_done[i] = 0; in xhci_mem_init()2685 init_completion(&xhci->usb2_rhub.bus_state.rexit_done[i]); in xhci_mem_init()2686 init_completion(&xhci->usb3_rhub.bus_state.u3exit_done[i]); in xhci_mem_init()
213 xhci->usb2_rhub.bus_state.port_c_suspend = 0; in xhci_reset()214 xhci->usb2_rhub.bus_state.suspended_ports = 0; in xhci_reset()215 xhci->usb2_rhub.bus_state.resuming_ports = 0; in xhci_reset()216 xhci->usb3_rhub.bus_state.port_c_suspend = 0; in xhci_reset()217 xhci->usb3_rhub.bus_state.suspended_ports = 0; in xhci_reset()218 xhci->usb3_rhub.bus_state.resuming_ports = 0; in xhci_reset()1118 if (time_before(jiffies, xhci->usb2_rhub.bus_state.next_statechange) || in xhci_resume()1119 time_before(jiffies, xhci->usb3_rhub.bus_state.next_statechange)) in xhci_resume()
1752 struct xhci_bus_state bus_state; member