Home
last modified time | relevance | path

Searched refs:bus_state (Results 1 – 5 of 5) sorted by relevance

/Linux-v5.4/drivers/usb/host/
Dxhci-hub.c811 struct xhci_bus_state *bus_state; in xhci_handle_usb2_port_link_resume() local
818 bus_state = &port->rhub->bus_state; in xhci_handle_usb2_port_link_resume()
827 if (!bus_state->resume_done[wIndex]) { in xhci_handle_usb2_port_link_resume()
829 if (test_bit(wIndex, &bus_state->resuming_ports)) { in xhci_handle_usb2_port_link_resume()
843 set_bit(wIndex, &bus_state->resuming_ports); in xhci_handle_usb2_port_link_resume()
844 bus_state->resume_done[wIndex] = timeout; in xhci_handle_usb2_port_link_resume()
849 } else if (time_after_eq(jiffies, bus_state->resume_done[wIndex])) { in xhci_handle_usb2_port_link_resume()
855 bus_state->resume_done[wIndex] = 0; in xhci_handle_usb2_port_link_resume()
856 clear_bit(wIndex, &bus_state->resuming_ports); in xhci_handle_usb2_port_link_resume()
858 set_bit(wIndex, &bus_state->rexit_ports); in xhci_handle_usb2_port_link_resume()
[all …]
Dxhci-ring.c1573 struct xhci_bus_state *bus_state; in handle_port_status() local
1608 bus_state = &port->rhub->bus_state; in handle_port_status()
1627 bus_state->port_remote_wakeup &= ~(1 << hcd_portnum); in handle_port_status()
1645 bus_state->port_remote_wakeup |= 1 << hcd_portnum; in handle_port_status()
1653 } else if (!test_bit(hcd_portnum, &bus_state->resuming_ports)) { in handle_port_status()
1655 bus_state->resume_done[hcd_portnum] = jiffies + in handle_port_status()
1657 set_bit(hcd_portnum, &bus_state->resuming_ports); in handle_port_status()
1664 bus_state->resume_done[hcd_portnum]); in handle_port_status()
1686 if (bus_state->port_remote_wakeup & (1 << hcd_portnum)) { in handle_port_status()
1687 bus_state->port_remote_wakeup &= ~(1 << hcd_portnum); in handle_port_status()
[all …]
Dxhci-mem.c1925 xhci->usb2_rhub.bus_state.bus_suspended = 0; in xhci_mem_cleanup()
1926 xhci->usb3_rhub.bus_state.bus_suspended = 0; in xhci_mem_cleanup()
2526 xhci->usb2_rhub.bus_state.resume_done[i] = 0; in xhci_mem_init()
2527 xhci->usb3_rhub.bus_state.resume_done[i] = 0; in xhci_mem_init()
2529 init_completion(&xhci->usb2_rhub.bus_state.rexit_done[i]); in xhci_mem_init()
Dxhci.c216 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()
Dxhci.h1718 struct xhci_bus_state bus_state; member