Lines Matching refs:portsc
495 u32 ctrl, portsc, cmd; in _dbgp_external_startup() local
509 portsc = readl(&ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup()
510 if (!(portsc & PORT_CONNECT) && try_hard_once) { in _dbgp_external_startup()
518 portsc = readl(&ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup()
519 portsc |= PORT_TEST_PKT; in _dbgp_external_startup()
520 writel(portsc, &ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup()
546 portsc = readl(&ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup()
547 portsc &= ~PORT_PE; in _dbgp_external_startup()
548 writel(portsc, &ehci_regs->port_status[dbg_port - 1]); in _dbgp_external_startup()
610 u32 portsc; in ehci_reset_port() local
616 portsc = readl(&ehci_regs->port_status[port - 1]); in ehci_reset_port()
617 portsc &= ~PORT_PE; in ehci_reset_port()
618 portsc |= PORT_RESET; in ehci_reset_port()
619 writel(portsc, &ehci_regs->port_status[port - 1]); in ehci_reset_port()
625 portsc = readl(&ehci_regs->port_status[port - 1]); in ehci_reset_port()
626 if (!(portsc & PORT_RESET)) in ehci_reset_port()
629 if (portsc & PORT_RESET) { in ehci_reset_port()
632 writel(portsc & ~(PORT_RWC_BITS | PORT_RESET), in ehci_reset_port()
636 portsc = readl(&ehci_regs->port_status[port-1]); in ehci_reset_port()
637 } while ((portsc & PORT_RESET) && (--loop > 0)); in ehci_reset_port()
641 if (!(portsc & PORT_CONNECT)) in ehci_reset_port()
645 if ((portsc & PORT_CSC)) in ehci_reset_port()
649 if (!(portsc & PORT_RESET) && (portsc & PORT_PE)) in ehci_reset_port()
753 u32 ctrl, portsc, hcs_params; in ehci_setup() local
776 portsc = readl(&ehci_regs->port_status[i-1]); in ehci_setup()
777 dbgp_printk("portstatus%d: %08x\n", i, portsc); in ehci_setup()