Lines Matching refs:portsc
285 u32 portsc; in xhci_usb2_hub_descriptor() local
302 portsc = readl(rhub->ports[i]->addr); in xhci_usb2_hub_descriptor()
306 if (portsc & PORT_DEV_REMOVE) in xhci_usb2_hub_descriptor()
339 u32 portsc; in xhci_usb3_hub_descriptor() local
359 portsc = readl(rhub->ports[i]->addr); in xhci_usb3_hub_descriptor()
360 if (portsc & PORT_DEV_REMOVE) in xhci_usb3_hub_descriptor()
553 u32 portsc; in xhci_disable_port() local
569 portsc = readl(port->addr); in xhci_disable_port()
570 portsc = xhci_port_state_to_neutral(portsc); in xhci_disable_port()
573 writel(portsc | PORT_PE, port->addr); in xhci_disable_port()
575 portsc = readl(port->addr); in xhci_disable_port()
577 hcd->self.busnum, port->hcd_portnum + 1, portsc); in xhci_disable_port()
803 u32 portsc; in xhci_set_link_state() local
805 portsc = readl(port->addr); in xhci_set_link_state()
806 temp = xhci_port_state_to_neutral(portsc); in xhci_set_link_state()
813 portsc, temp); in xhci_set_link_state()
939 u32 portsc, in xhci_handle_usb2_port_link_resume() argument
952 if ((portsc & PORT_RESET) || !(portsc & PORT_PE)) { in xhci_handle_usb2_port_link_resume()
1043 u32 portsc) in xhci_get_usb3_port_status() argument
1054 link_state = portsc & PORT_PLS_MASK; in xhci_get_usb3_port_status()
1066 if (portsc & PORT_PLC && (link_state != XDEV_RESUME)) in xhci_get_usb3_port_status()
1068 if (portsc & PORT_WRC) in xhci_get_usb3_port_status()
1070 if (portsc & PORT_CEC) in xhci_get_usb3_port_status()
1074 if (portsc & PORT_POWER) in xhci_get_usb3_port_status()
1089 xhci_hub_report_usb3_link_state(xhci, status, portsc); in xhci_get_usb3_port_status()
1090 xhci_del_comp_mod_timer(xhci, portsc, portnum); in xhci_get_usb3_port_status()
1094 u32 portsc, unsigned long *flags) in xhci_get_usb2_port_status() argument
1102 link_state = portsc & PORT_PLS_MASK; in xhci_get_usb2_port_status()
1106 if (portsc & PORT_POWER) { in xhci_get_usb2_port_status()
1121 err = xhci_handle_usb2_port_link_resume(port, portsc, in xhci_get_usb2_port_status()
1852 u32 portsc; in xhci_port_missing_cas_quirk() local
1854 portsc = readl(port->addr); in xhci_port_missing_cas_quirk()
1857 if (portsc & (PORT_CONNECT | PORT_CAS)) in xhci_port_missing_cas_quirk()
1860 if (((portsc & PORT_PLS_MASK) != XDEV_POLLING) && in xhci_port_missing_cas_quirk()
1861 ((portsc & PORT_PLS_MASK) != XDEV_COMP_MODE)) in xhci_port_missing_cas_quirk()
1865 portsc &= ~(PORT_RWC_BITS | PORT_CEC | PORT_WAKE_BITS); in xhci_port_missing_cas_quirk()
1866 portsc |= PORT_WR; in xhci_port_missing_cas_quirk()
1867 writel(portsc, port->addr); in xhci_port_missing_cas_quirk()
1881 u32 temp, portsc; in xhci_bus_resume() local
1912 portsc = readl(ports[port_index]->addr); in xhci_bus_resume()
1925 switch (portsc & PORT_PLS_MASK) { in xhci_bus_resume()
1927 portsc = xhci_port_state_to_neutral(portsc); in xhci_bus_resume()
1928 portsc &= ~PORT_PLS_MASK; in xhci_bus_resume()
1929 portsc |= PORT_LINK_STROBE | next_state; in xhci_bus_resume()
1941 portsc &= ~(PORT_RWC_BITS | PORT_CEC | PORT_WAKE_BITS); in xhci_bus_resume()
1942 writel(portsc, ports[port_index]->addr); in xhci_bus_resume()