Lines Matching defs:hprt0
216 u32 hprt0;
224 hprt0 = dwc2_read_hprt0(hsotg);
225 hprt0 |= HPRT0_RST;
226 DWC2_WRITE_4(hsotg, HPRT0, hprt0);
313 u32 hprt0;
338 DWC2_WRITE_4(hsotg, HPRT0, 0);
368 hprt0 = DWC2_READ_4(hsotg, HPRT0);
369 if (!(hprt0 & HPRT0_CONNDET) && (hprt0 & HPRT0_CONNSTS))
414 DWC2_WRITE_4(hsotg, HPRT0, 0);
438 u32 hprt0 = DWC2_READ_4(hsotg, HPRT0);
439 u32 prtspd = (hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT;
1437 u32 hprt0;
1445 hprt0 = dwc2_read_hprt0(hsotg);
1446 dev_dbg(hsotg->dev, "Resume: HPRT0=%0x\n", hprt0);
1447 hprt0 &= ~HPRT0_RES;
1448 DWC2_WRITE_4(hsotg, HPRT0, hprt0);
1449 dev_dbg(hsotg->dev, "Clear Resume: HPRT0=%0x\n",
1450 DWC2_READ_4(hsotg, HPRT0));
1463 u32 hprt0;
1478 hprt0 = dwc2_read_hprt0(hsotg);
1479 hprt0 |= HPRT0_SUSP;
1480 DWC2_WRITE_4(hsotg, HPRT0, hprt0);
1514 u32 hprt0;
1532 hprt0 = dwc2_read_hprt0(hsotg);
1533 hprt0 |= HPRT0_RES;
1534 hprt0 &= ~HPRT0_SUSP;
1535 DWC2_WRITE_4(hsotg, HPRT0, hprt0);
1541 hprt0 = dwc2_read_hprt0(hsotg);
1542 hprt0 &= ~(HPRT0_RES | HPRT0_SUSP);
1543 DWC2_WRITE_4(hsotg, HPRT0, hprt0);
1556 u32 hprt0;
1587 hprt0 = dwc2_read_hprt0(hsotg);
1588 hprt0 |= HPRT0_ENA;
1589 DWC2_WRITE_4(hsotg, HPRT0, hprt0);
1602 hprt0 = dwc2_read_hprt0(hsotg);
1603 hprt0 &= ~HPRT0_PWR;
1604 DWC2_WRITE_4(hsotg, HPRT0, hprt0);
1728 hprt0 = DWC2_READ_4(hsotg, HPRT0);
1729 dev_vdbg(hsotg->dev, " HPRT0: 0x%08x\n", hprt0);
1731 if (hprt0 & HPRT0_CONNSTS)
1733 if (hprt0 & HPRT0_ENA)
1735 if (hprt0 & HPRT0_SUSP)
1737 if (hprt0 & HPRT0_OVRCURRACT)
1739 if (hprt0 & HPRT0_RST)
1741 if (hprt0 & HPRT0_PWR)
1744 speed = (hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT;
1750 if (hprt0 & HPRT0_TSTCTL_MASK)
1813 hprt0 = dwc2_read_hprt0(hsotg);
1814 hprt0 |= HPRT0_PWR;
1815 DWC2_WRITE_4(hsotg, HPRT0, hprt0);
1819 hprt0 = dwc2_read_hprt0(hsotg);
1828 hprt0 = dwc2_read_hprt0(hsotg);
1830 hprt0 &= ~HPRT0_SUSP;
1838 hprt0 |= HPRT0_PWR | HPRT0_RST;
1840 "In host mode, hprt0=%08x\n", hprt0);
1841 DWC2_WRITE_4(hsotg, HPRT0, hprt0);
1846 hprt0 &= ~HPRT0_RST;
1847 DWC2_WRITE_4(hsotg, HPRT0, hprt0);
1858 hprt0 = dwc2_read_hprt0(hsotg);
1861 hprt0 &= ~HPRT0_TSTCTL_MASK;
1862 hprt0 |= (windex >> 8) << HPRT0_TSTCTL_SHIFT;
1863 DWC2_WRITE_4(hsotg, HPRT0, hprt0);
2187 u32 hprt0;
2193 hprt0 = dwc2_read_hprt0(hsotg);
2194 hprt0 &= ~HPRT0_RST;
2195 DWC2_WRITE_4(hsotg, HPRT0, hprt0);