Lines Matching refs:hprt0
200 u32 hprt0; in dwc2_hcd_start() local
208 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_start()
209 hprt0 |= HPRT0_RST; in dwc2_hcd_start()
210 dwc2_writel(hprt0, hsotg->regs + HPRT0); in dwc2_hcd_start()
382 u32 hprt0 = dwc2_readl(hsotg->regs + HPRT0); in dwc2_hcd_urb_enqueue() local
383 u32 prtspd = (hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT; in dwc2_hcd_urb_enqueue()
1417 u32 hprt0; in dwc2_wakeup_detected() local
1425 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_wakeup_detected()
1426 dev_dbg(hsotg->dev, "Resume: HPRT0=%0x\n", hprt0); in dwc2_wakeup_detected()
1427 hprt0 &= ~HPRT0_RES; in dwc2_wakeup_detected()
1428 dwc2_writel(hprt0, hsotg->regs + HPRT0); in dwc2_wakeup_detected()
1450 u32 hprt0; in dwc2_port_suspend() local
1465 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_port_suspend()
1466 hprt0 |= HPRT0_SUSP; in dwc2_port_suspend()
1467 dwc2_writel(hprt0, hsotg->regs + HPRT0); in dwc2_port_suspend()
1501 u32 hprt0; in dwc2_port_resume() local
1519 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_port_resume()
1520 hprt0 |= HPRT0_RES; in dwc2_port_resume()
1521 hprt0 &= ~HPRT0_SUSP; in dwc2_port_resume()
1522 dwc2_writel(hprt0, hsotg->regs + HPRT0); in dwc2_port_resume()
1528 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_port_resume()
1529 hprt0 &= ~(HPRT0_RES | HPRT0_SUSP); in dwc2_port_resume()
1530 dwc2_writel(hprt0, hsotg->regs + HPRT0); in dwc2_port_resume()
1541 u32 hprt0; in dwc2_hcd_hub_control() local
1572 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
1573 hprt0 |= HPRT0_ENA; in dwc2_hcd_hub_control()
1574 dwc2_writel(hprt0, hsotg->regs + HPRT0); in dwc2_hcd_hub_control()
1588 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
1589 hprt0 &= ~HPRT0_PWR; in dwc2_hcd_hub_control()
1590 dwc2_writel(hprt0, hsotg->regs + HPRT0); in dwc2_hcd_hub_control()
1711 hprt0 = dwc2_readl(hsotg->regs + HPRT0); in dwc2_hcd_hub_control()
1712 dev_vdbg(hsotg->dev, " HPRT0: 0x%08x\n", hprt0); in dwc2_hcd_hub_control()
1714 if (hprt0 & HPRT0_CONNSTS) in dwc2_hcd_hub_control()
1716 if (hprt0 & HPRT0_ENA) in dwc2_hcd_hub_control()
1718 if (hprt0 & HPRT0_SUSP) in dwc2_hcd_hub_control()
1720 if (hprt0 & HPRT0_OVRCURRACT) in dwc2_hcd_hub_control()
1722 if (hprt0 & HPRT0_RST) in dwc2_hcd_hub_control()
1724 if (hprt0 & HPRT0_PWR) in dwc2_hcd_hub_control()
1727 speed = (hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT; in dwc2_hcd_hub_control()
1733 if (hprt0 & HPRT0_TSTCTL_MASK) in dwc2_hcd_hub_control()
1774 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
1775 hprt0 |= HPRT0_PWR; in dwc2_hcd_hub_control()
1776 dwc2_writel(hprt0, hsotg->regs + HPRT0); in dwc2_hcd_hub_control()
1780 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
1789 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
1791 hprt0 &= ~HPRT0_SUSP; in dwc2_hcd_hub_control()
1799 hprt0 |= HPRT0_PWR | HPRT0_RST; in dwc2_hcd_hub_control()
1801 "In host mode, hprt0=%08x\n", hprt0); in dwc2_hcd_hub_control()
1802 dwc2_writel(hprt0, hsotg->regs + HPRT0); in dwc2_hcd_hub_control()
1807 hprt0 &= ~HPRT0_RST; in dwc2_hcd_hub_control()
1808 dwc2_writel(hprt0, hsotg->regs + HPRT0); in dwc2_hcd_hub_control()
1819 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
1822 hprt0 &= ~HPRT0_TSTCTL_MASK; in dwc2_hcd_hub_control()
1823 hprt0 |= (windex >> 8) << HPRT0_TSTCTL_SHIFT; in dwc2_hcd_hub_control()
1824 dwc2_writel(hprt0, hsotg->regs + HPRT0); in dwc2_hcd_hub_control()
2301 u32 hprt0; in dwc2_hcd_reset_func() local
2304 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_reset_func()
2305 hprt0 &= ~HPRT0_RST; in dwc2_hcd_reset_func()
2306 dwc2_writel(hprt0, hsotg->regs + HPRT0); in dwc2_hcd_reset_func()
2384 u32 hprt0; in _dwc2_hcd_suspend() local
2402 hprt0 = dwc2_read_hprt0(hsotg); in _dwc2_hcd_suspend()
2403 hprt0 |= HPRT0_SUSP; in _dwc2_hcd_suspend()
2404 hprt0 &= ~HPRT0_PWR; in _dwc2_hcd_suspend()
2405 dwc2_writel(hprt0, hsotg->regs + HPRT0); in _dwc2_hcd_suspend()