Home
last modified time | relevance | path

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

/linux/drivers/usb/host/
H A Dxhci-hub.c898 struct xhci_bus_state *bus_state; in xhci_handle_usb2_port_link_resume() local
904 bus_state = &port->rhub->bus_state; in xhci_handle_usb2_port_link_resume()
914 if (test_bit(wIndex, &bus_state->resuming_ports)) { in xhci_handle_usb2_port_link_resume()
928 set_bit(wIndex, &bus_state->resuming_ports); in xhci_handle_usb2_port_link_resume()
941 clear_bit(wIndex, &bus_state->resuming_ports); in xhci_handle_usb2_port_link_resume()
975 bus_state->port_c_suspend |= 1 << wIndex; in xhci_handle_usb2_port_link_resume()
976 bus_state->suspended_ports &= ~(1 << wIndex); in xhci_handle_usb2_port_link_resume()
1001 struct xhci_bus_state *bus_state; in xhci_get_usb3_port_status() local
1007 bus_state = &port->rhub->bus_state; in xhci_get_usb3_port_status()
1038 if (bus_state->port_remote_wakeup & (1 << portnum)) { in xhci_get_usb3_port_status()
[all …]
H A Dxhci-tegra.c1985 struct xhci_bus_state *bus_state = &xhci->usb2_rhub.bus_state; in tegra_xusb_check_ports() local
1989 if (bus_state->bus_suspended) { in tegra_xusb_check_ports()
2695 struct xhci_bus_state *bus_state; in tegra_xhci_hub_control() local
2704 bus_state = &rhub->bus_state; in tegra_xhci_hub_control()
2705 if (bus_state->resuming_ports && hcd->speed == HCD_USB2) { in tegra_xhci_hub_control()
2709 if (!test_bit(i, &bus_state->resuming_ports)) in tegra_xhci_hub_control()
H A Dxhci.c243 xhci->usb2_rhub.bus_state.port_c_suspend = 0; in xhci_reset()
244 xhci->usb2_rhub.bus_state.suspended_ports = 0; in xhci_reset()
245 xhci->usb2_rhub.bus_state.resuming_ports = 0; in xhci_reset()
246 xhci->usb3_rhub.bus_state.port_c_suspend = 0; in xhci_reset()
247 xhci->usb3_rhub.bus_state.suspended_ports = 0; in xhci_reset()
248 xhci->usb3_rhub.bus_state.resuming_ports = 0; in xhci_reset()
1022 if (time_before(jiffies, xhci->usb2_rhub.bus_state.next_statechange) || in xhci_resume()
1023 time_before(jiffies, xhci->usb3_rhub.bus_state.next_statechange)) in xhci_resume()
1172 if (xhci->usb3_rhub.bus_state.suspended_ports || in xhci_resume()
1173 xhci->usb3_rhub.bus_state.bus_suspended) in xhci_resume()
H A Dxhci-ring.c1887 struct xhci_bus_state *bus_state; in handle_port_status() local
1921 bus_state = &port->rhub->bus_state; in handle_port_status()
1956 bus_state->port_remote_wakeup |= 1 << hcd_portnum; in handle_port_status()
1965 } else if (!test_bit(hcd_portnum, &bus_state->resuming_ports)) { in handle_port_status()
1969 set_bit(hcd_portnum, &bus_state->resuming_ports); in handle_port_status()
1998 if (bus_state->port_remote_wakeup & (1 << hcd_portnum)) { in handle_port_status()
H A Dxhci-mem.c1963 xhci->usb2_rhub.bus_state.bus_suspended = 0; in xhci_mem_cleanup()
1964 xhci->usb3_rhub.bus_state.bus_suspended = 0; in xhci_mem_cleanup()
H A Dxhci.h1475 struct xhci_bus_state bus_state; member