Searched refs:bus_state (Results 1 – 5 of 5) sorted by relevance
823 struct xhci_bus_state *bus_state; in xhci_handle_usb2_port_link_resume() local830 bus_state = &port->rhub->bus_state; in xhci_handle_usb2_port_link_resume()839 if (!bus_state->resume_done[wIndex]) { in xhci_handle_usb2_port_link_resume()841 if (test_bit(wIndex, &bus_state->resuming_ports)) { in xhci_handle_usb2_port_link_resume()855 set_bit(wIndex, &bus_state->resuming_ports); in xhci_handle_usb2_port_link_resume()856 bus_state->resume_done[wIndex] = timeout; in xhci_handle_usb2_port_link_resume()861 } else if (time_after_eq(jiffies, bus_state->resume_done[wIndex])) { in xhci_handle_usb2_port_link_resume()867 bus_state->resume_done[wIndex] = 0; in xhci_handle_usb2_port_link_resume()868 clear_bit(wIndex, &bus_state->resuming_ports); in xhci_handle_usb2_port_link_resume()870 set_bit(wIndex, &bus_state->rexit_ports); in xhci_handle_usb2_port_link_resume()[all …]
1599 struct xhci_bus_state *bus_state; in handle_port_status() local1634 bus_state = &port->rhub->bus_state; in handle_port_status()1670 bus_state->port_remote_wakeup |= 1 << hcd_portnum; in handle_port_status()1679 } else if (!test_bit(hcd_portnum, &bus_state->resuming_ports)) { in handle_port_status()1681 bus_state->resume_done[hcd_portnum] = jiffies + in handle_port_status()1683 set_bit(hcd_portnum, &bus_state->resuming_ports); in handle_port_status()1690 bus_state->resume_done[hcd_portnum]); in handle_port_status()1702 complete(&bus_state->u3exit_done[hcd_portnum]); in handle_port_status()1713 if (bus_state->port_remote_wakeup & (1 << hcd_portnum)) { in handle_port_status()1729 &bus_state->rexit_ports)) { in handle_port_status()[all …]
1944 xhci->usb2_rhub.bus_state.bus_suspended = 0; in xhci_mem_cleanup()1945 xhci->usb3_rhub.bus_state.bus_suspended = 0; in xhci_mem_cleanup()2560 xhci->usb2_rhub.bus_state.resume_done[i] = 0; in xhci_mem_init()2561 xhci->usb3_rhub.bus_state.resume_done[i] = 0; in xhci_mem_init()2563 init_completion(&xhci->usb2_rhub.bus_state.rexit_done[i]); in xhci_mem_init()2564 init_completion(&xhci->usb3_rhub.bus_state.u3exit_done[i]); in xhci_mem_init()
216 xhci->usb2_rhub.bus_state.port_c_suspend = 0; in xhci_reset()217 xhci->usb2_rhub.bus_state.suspended_ports = 0; in xhci_reset()218 xhci->usb2_rhub.bus_state.resuming_ports = 0; in xhci_reset()219 xhci->usb3_rhub.bus_state.port_c_suspend = 0; in xhci_reset()220 xhci->usb3_rhub.bus_state.suspended_ports = 0; in xhci_reset()221 xhci->usb3_rhub.bus_state.resuming_ports = 0; in xhci_reset()1099 if (time_before(jiffies, xhci->usb2_rhub.bus_state.next_statechange) || in xhci_resume()1100 time_before(jiffies, xhci->usb3_rhub.bus_state.next_statechange)) in xhci_resume()
1727 struct xhci_bus_state bus_state; member