Lines Matching refs:portsc

198 	u32 portsc;  in xhci_usb2_hub_descriptor()  local
215 portsc = readl(rhub->ports[i]->addr); in xhci_usb2_hub_descriptor()
219 if (portsc & PORT_DEV_REMOVE) in xhci_usb2_hub_descriptor()
252 u32 portsc; in xhci_usb3_hub_descriptor() local
272 portsc = readl(rhub->ports[i]->addr); in xhci_usb3_hub_descriptor()
273 if (portsc & PORT_DEV_REMOVE) in xhci_usb3_hub_descriptor()
691 u32 portsc; in xhci_set_link_state() local
693 portsc = readl(port->addr); in xhci_set_link_state()
694 temp = xhci_port_state_to_neutral(portsc); in xhci_set_link_state()
701 portsc, temp); in xhci_set_link_state()
827 u32 *status, u32 portsc, in xhci_handle_usb2_port_link_resume() argument
841 if ((portsc & PORT_RESET) || !(portsc & PORT_PE)) { in xhci_handle_usb2_port_link_resume()
938 u32 portsc) in xhci_get_usb3_port_status() argument
949 link_state = portsc & PORT_PLS_MASK; in xhci_get_usb3_port_status()
961 if (portsc & PORT_PLC && (link_state != XDEV_RESUME)) in xhci_get_usb3_port_status()
963 if (portsc & PORT_WRC) in xhci_get_usb3_port_status()
965 if (portsc & PORT_CEC) in xhci_get_usb3_port_status()
969 if (portsc & PORT_POWER) { in xhci_get_usb3_port_status()
984 xhci_hub_report_usb3_link_state(xhci, status, portsc); in xhci_get_usb3_port_status()
985 xhci_del_comp_mod_timer(xhci, portsc, portnum); in xhci_get_usb3_port_status()
989 u32 portsc, unsigned long *flags) in xhci_get_usb2_port_status() argument
997 link_state = portsc & PORT_PLS_MASK; in xhci_get_usb2_port_status()
1001 if (portsc & PORT_POWER) { in xhci_get_usb2_port_status()
1022 portsc, flags); in xhci_get_usb2_port_status()
1757 u32 portsc; in xhci_port_missing_cas_quirk() local
1759 portsc = readl(port->addr); in xhci_port_missing_cas_quirk()
1762 if (portsc & (PORT_CONNECT | PORT_CAS)) in xhci_port_missing_cas_quirk()
1765 if (((portsc & PORT_PLS_MASK) != XDEV_POLLING) && in xhci_port_missing_cas_quirk()
1766 ((portsc & PORT_PLS_MASK) != XDEV_COMP_MODE)) in xhci_port_missing_cas_quirk()
1770 portsc &= ~(PORT_RWC_BITS | PORT_CEC | PORT_WAKE_BITS); in xhci_port_missing_cas_quirk()
1771 portsc |= PORT_WR; in xhci_port_missing_cas_quirk()
1772 writel(portsc, port->addr); in xhci_port_missing_cas_quirk()
1787 u32 temp, portsc; in xhci_bus_resume() local
1818 portsc = readl(ports[port_index]->addr); in xhci_bus_resume()
1831 switch (portsc & PORT_PLS_MASK) { in xhci_bus_resume()
1833 portsc = xhci_port_state_to_neutral(portsc); in xhci_bus_resume()
1834 portsc &= ~PORT_PLS_MASK; in xhci_bus_resume()
1835 portsc |= PORT_LINK_STROBE | next_state; in xhci_bus_resume()
1847 portsc &= ~(PORT_RWC_BITS | PORT_CEC | PORT_WAKE_BITS); in xhci_bus_resume()
1848 writel(portsc, ports[port_index]->addr); in xhci_bus_resume()