Lines Matching refs:portsc
284 u32 portsc;
301 portsc = readl(rhub->ports[i]->addr);
305 if (portsc & PORT_DEV_REMOVE)
338 u32 portsc;
358 portsc = readl(rhub->ports[i]->addr);
359 if (portsc & PORT_DEV_REMOVE)
430 * xhci_port_state_to_neutral() - Clean up read portsc value back into writeable
431 * @state: u32 port value read from portsc register to be cleanup up
440 * Return: u32 value that can be written back to portsc register without
584 u32 portsc;
600 portsc = readl(port->addr);
601 portsc = xhci_port_state_to_neutral(portsc);
604 writel(portsc | PORT_PE, port->addr);
606 portsc = readl(port->addr);
607 xhci_dbg(xhci, "disable port %d-%d, portsc: 0x%x\n",
608 hcd->self.busnum, port->hcd_portnum + 1, portsc);
658 xhci_dbg(xhci, "clear port%d %s change, portsc: 0x%x\n",
686 xhci_dbg(xhci, "set port power %d-%d %s, portsc: 0x%x\n",
791 u32 portsc;
793 portsc = readl(port->addr);
794 temp = xhci_port_state_to_neutral(portsc);
799 xhci_dbg(xhci, "Set port %d-%d link state, portsc: 0x%x, write 0x%x",
801 portsc, temp);
927 u32 portsc,
941 if ((portsc & PORT_RESET) || !(portsc & PORT_PE)) {
1034 u32 portsc)
1045 link_state = portsc & PORT_PLS_MASK;
1057 if (portsc & PORT_PLC && (link_state != XDEV_RESUME))
1059 if (portsc & PORT_WRC)
1061 if (portsc & PORT_CEC)
1065 if (portsc & PORT_POWER)
1080 xhci_hub_report_usb3_link_state(xhci, status, portsc);
1081 xhci_del_comp_mod_timer(xhci, portsc, portnum);
1085 u32 portsc, unsigned long *flags)
1093 link_state = portsc & PORT_PLS_MASK;
1097 if (portsc & PORT_POWER) {
1112 err = xhci_handle_usb2_port_link_resume(port, portsc,
1853 u32 portsc;
1855 portsc = readl(port->addr);
1858 if (portsc & (PORT_CONNECT | PORT_CAS))
1861 if (((portsc & PORT_PLS_MASK) != XDEV_POLLING) &&
1862 ((portsc & PORT_PLS_MASK) != XDEV_COMP_MODE))
1866 portsc &= ~(PORT_RWC_BITS | PORT_CEC | PORT_WAKE_BITS);
1867 portsc |= PORT_WR;
1868 writel(portsc, port->addr);
1883 u32 temp, portsc;
1914 portsc = readl(ports[port_index]->addr);
1927 switch (portsc & PORT_PLS_MASK) {
1929 portsc = xhci_port_state_to_neutral(portsc);
1930 portsc &= ~PORT_PLS_MASK;
1931 portsc |= PORT_LINK_STROBE | next_state;
1943 portsc &= ~(PORT_RWC_BITS | PORT_CEC | PORT_WAKE_BITS);
1944 writel(portsc, ports[port_index]->addr);