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.c941 struct xhci_bus_state *bus_state; in xhci_handle_usb2_port_link_resume() local
947 bus_state = &port->rhub->bus_state; in xhci_handle_usb2_port_link_resume()
957 if (test_bit(wIndex, &bus_state->resuming_ports)) { in xhci_handle_usb2_port_link_resume()
971 set_bit(wIndex, &bus_state->resuming_ports); in xhci_handle_usb2_port_link_resume()
984 clear_bit(wIndex, &bus_state->resuming_ports); in xhci_handle_usb2_port_link_resume()
1018 bus_state->port_c_suspend |= 1 << wIndex; in xhci_handle_usb2_port_link_resume()
1019 bus_state->suspended_ports &= ~(1 << wIndex); in xhci_handle_usb2_port_link_resume()
1044 struct xhci_bus_state *bus_state; in xhci_get_usb3_port_status() local
1050 bus_state = &port->rhub->bus_state; in xhci_get_usb3_port_status()
1081 if (bus_state->port_remote_wakeup & (1 << portnum)) { in xhci_get_usb3_port_status()
[all …]
H A Dxhci-tegra.c2055 struct xhci_bus_state *bus_state = &xhci->usb2_rhub.bus_state; in tegra_xusb_check_ports() local
2059 if (bus_state->bus_suspended) { in tegra_xusb_check_ports()
2776 struct xhci_bus_state *bus_state; in tegra_xhci_hub_control() local
2785 bus_state = &rhub->bus_state; in tegra_xhci_hub_control()
2786 if (bus_state->resuming_ports && hcd->speed == HCD_USB2) { in tegra_xhci_hub_control()
2790 if (!test_bit(i, &bus_state->resuming_ports)) in tegra_xhci_hub_control()
H A Dxhci.c237 xhci->usb2_rhub.bus_state.port_c_suspend = 0; in xhci_reset()
238 xhci->usb2_rhub.bus_state.suspended_ports = 0; in xhci_reset()
239 xhci->usb2_rhub.bus_state.resuming_ports = 0; in xhci_reset()
240 xhci->usb3_rhub.bus_state.port_c_suspend = 0; in xhci_reset()
241 xhci->usb3_rhub.bus_state.suspended_ports = 0; in xhci_reset()
242 xhci->usb3_rhub.bus_state.resuming_ports = 0; in xhci_reset()
1098 if (time_before(jiffies, xhci->usb2_rhub.bus_state.next_statechange) || in xhci_resume()
1099 time_before(jiffies, xhci->usb3_rhub.bus_state.next_statechange)) in xhci_resume()
1251 if (xhci->usb3_rhub.bus_state.suspended_ports || in xhci_resume()
1252 xhci->usb3_rhub.bus_state.bus_suspended) in xhci_resume()
H A Dxhci-ring.c1999 struct xhci_bus_state *bus_state; in handle_port_status() local
2035 bus_state = &port->rhub->bus_state; in handle_port_status()
2071 bus_state->port_remote_wakeup |= 1 << hcd_portnum; in handle_port_status()
2080 } else if (!test_bit(hcd_portnum, &bus_state->resuming_ports)) { in handle_port_status()
2084 set_bit(hcd_portnum, &bus_state->resuming_ports); in handle_port_status()
2113 if (bus_state->port_remote_wakeup & (1 << hcd_portnum)) { in handle_port_status()
H A Dxhci-mem.c1996 xhci->usb2_rhub.bus_state.bus_suspended = 0; in xhci_mem_cleanup()
1997 xhci->usb3_rhub.bus_state.bus_suspended = 0; in xhci_mem_cleanup()
H A Dxhci.h1494 struct xhci_bus_state bus_state; member