Home
last modified time | relevance | path

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

/kernel/linux/linux-5.10/drivers/usb/host/
Dxhci-hub.c825 struct xhci_bus_state *bus_state; in xhci_handle_usb2_port_link_resume() local
832 bus_state = &port->rhub->bus_state; in xhci_handle_usb2_port_link_resume()
841 if (!bus_state->resume_done[wIndex]) { in xhci_handle_usb2_port_link_resume()
843 if (test_bit(wIndex, &bus_state->resuming_ports)) { in xhci_handle_usb2_port_link_resume()
857 set_bit(wIndex, &bus_state->resuming_ports); in xhci_handle_usb2_port_link_resume()
858 bus_state->resume_done[wIndex] = timeout; in xhci_handle_usb2_port_link_resume()
863 } else if (time_after_eq(jiffies, bus_state->resume_done[wIndex])) { in xhci_handle_usb2_port_link_resume()
869 bus_state->resume_done[wIndex] = 0; in xhci_handle_usb2_port_link_resume()
870 clear_bit(wIndex, &bus_state->resuming_ports); in xhci_handle_usb2_port_link_resume()
872 set_bit(wIndex, &bus_state->rexit_ports); in xhci_handle_usb2_port_link_resume()
[all …]
Dxhci-ring.c1772 struct xhci_bus_state *bus_state; in handle_port_status() local
1807 bus_state = &port->rhub->bus_state; in handle_port_status()
1843 bus_state->port_remote_wakeup |= 1 << hcd_portnum; in handle_port_status()
1852 } else if (!test_bit(hcd_portnum, &bus_state->resuming_ports)) { in handle_port_status()
1854 bus_state->resume_done[hcd_portnum] = jiffies + in handle_port_status()
1856 set_bit(hcd_portnum, &bus_state->resuming_ports); in handle_port_status()
1863 bus_state->resume_done[hcd_portnum]); in handle_port_status()
1875 complete(&bus_state->u3exit_done[hcd_portnum]); in handle_port_status()
1886 if (bus_state->port_remote_wakeup & (1 << hcd_portnum)) { in handle_port_status()
1902 &bus_state->rexit_ports)) { in handle_port_status()
[all …]
Dxhci-mem.c1958 xhci->usb2_rhub.bus_state.bus_suspended = 0; in xhci_mem_cleanup()
1959 xhci->usb3_rhub.bus_state.bus_suspended = 0; in xhci_mem_cleanup()
2586 xhci->usb2_rhub.bus_state.resume_done[i] = 0; in xhci_mem_init()
2587 xhci->usb3_rhub.bus_state.resume_done[i] = 0; in xhci_mem_init()
2589 init_completion(&xhci->usb2_rhub.bus_state.rexit_done[i]); in xhci_mem_init()
2590 init_completion(&xhci->usb3_rhub.bus_state.u3exit_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()
1120 if (time_before(jiffies, xhci->usb2_rhub.bus_state.next_statechange) || in xhci_resume()
1121 time_before(jiffies, xhci->usb3_rhub.bus_state.next_statechange)) in xhci_resume()
Dxhci.h1739 struct xhci_bus_state bus_state; member
/kernel/linux/patches/linux-5.10/imx8mm_patch/patches/drivers/
D0034_linux_drivers_usb_vfio_wdt_tty_uio.patch5931 bus_state->next_statechange = jiffies + msecs_to_jiffies(10);
5934 - if (bus_state->bus_suspended)