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 writel(hprt0, hsotg->regs + HPRT0); in dwc2_hcd_start()
382 u32 hprt0 = 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()
1412 u32 hprt0; in dwc2_wakeup_detected() local
1420 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_wakeup_detected()
1421 dev_dbg(hsotg->dev, "Resume: HPRT0=%0x\n", hprt0); in dwc2_wakeup_detected()
1422 hprt0 &= ~HPRT0_RES; in dwc2_wakeup_detected()
1423 writel(hprt0, hsotg->regs + HPRT0); in dwc2_wakeup_detected()
1444 u32 hprt0; in dwc2_port_suspend() local
1459 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_port_suspend()
1460 hprt0 |= HPRT0_SUSP; in dwc2_port_suspend()
1461 writel(hprt0, hsotg->regs + HPRT0); in dwc2_port_suspend()
1492 u32 hprt0; in dwc2_hcd_hub_control() local
1523 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
1524 hprt0 |= HPRT0_ENA; in dwc2_hcd_hub_control()
1525 writel(hprt0, hsotg->regs + HPRT0); in dwc2_hcd_hub_control()
1534 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
1535 hprt0 |= HPRT0_RES; in dwc2_hcd_hub_control()
1536 writel(hprt0, hsotg->regs + HPRT0); in dwc2_hcd_hub_control()
1537 hprt0 &= ~HPRT0_SUSP; in dwc2_hcd_hub_control()
1540 hprt0 &= ~HPRT0_RES; in dwc2_hcd_hub_control()
1541 writel(hprt0, hsotg->regs + HPRT0); in dwc2_hcd_hub_control()
1547 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
1548 hprt0 &= ~HPRT0_PWR; in dwc2_hcd_hub_control()
1549 writel(hprt0, hsotg->regs + HPRT0); in dwc2_hcd_hub_control()
1670 hprt0 = readl(hsotg->regs + HPRT0); in dwc2_hcd_hub_control()
1671 dev_vdbg(hsotg->dev, " HPRT0: 0x%08x\n", hprt0); in dwc2_hcd_hub_control()
1673 if (hprt0 & HPRT0_CONNSTS) in dwc2_hcd_hub_control()
1675 if (hprt0 & HPRT0_ENA) in dwc2_hcd_hub_control()
1677 if (hprt0 & HPRT0_SUSP) in dwc2_hcd_hub_control()
1679 if (hprt0 & HPRT0_OVRCURRACT) in dwc2_hcd_hub_control()
1681 if (hprt0 & HPRT0_RST) in dwc2_hcd_hub_control()
1683 if (hprt0 & HPRT0_PWR) in dwc2_hcd_hub_control()
1686 speed = (hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT; in dwc2_hcd_hub_control()
1692 if (hprt0 & HPRT0_TSTCTL_MASK) in dwc2_hcd_hub_control()
1733 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
1734 hprt0 |= HPRT0_PWR; in dwc2_hcd_hub_control()
1735 writel(hprt0, hsotg->regs + HPRT0); in dwc2_hcd_hub_control()
1739 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
1748 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
1750 hprt0 &= ~HPRT0_SUSP; in dwc2_hcd_hub_control()
1758 hprt0 |= HPRT0_PWR | HPRT0_RST; in dwc2_hcd_hub_control()
1760 "In host mode, hprt0=%08x\n", hprt0); in dwc2_hcd_hub_control()
1761 writel(hprt0, hsotg->regs + HPRT0); in dwc2_hcd_hub_control()
1766 hprt0 &= ~HPRT0_RST; in dwc2_hcd_hub_control()
1767 writel(hprt0, hsotg->regs + HPRT0); in dwc2_hcd_hub_control()
2250 u32 hprt0; in dwc2_hcd_reset_func() local
2253 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_reset_func()
2254 hprt0 &= ~HPRT0_RST; in dwc2_hcd_reset_func()
2255 writel(hprt0, hsotg->regs + HPRT0); in dwc2_hcd_reset_func()