Lines Matching defs:hprt0
249 static void dwc2_hprt0_enable(struct dwc2_hsotg *hsotg, u32 hprt0,
279 prtspd = (hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT;
330 DWC2_WRITE_4(hsotg, HPRT0, *hprt0_modify);
348 u32 hprt0;
353 hprt0 = DWC2_READ_4(hsotg, HPRT0);
354 hprt0_modify = hprt0;
357 * Clear appropriate bits in HPRT0 to clear the interrupt bit in
367 if (hprt0 & HPRT0_CONNDET) {
368 DWC2_WRITE_4(hsotg, HPRT0, hprt0_modify | HPRT0_CONNDET);
371 "--Port Interrupt HPRT0=0x%08x Port Connect Detected--\n",
372 hprt0);
385 if (hprt0 & HPRT0_ENACHG) {
386 DWC2_WRITE_4(hsotg, HPRT0, hprt0_modify | HPRT0_ENACHG);
388 " --Port Interrupt HPRT0=0x%08x Port Enable Changed (now %d)--\n",
389 hprt0, !!(hprt0 & HPRT0_ENA));
390 if (hprt0 & HPRT0_ENA) {
392 dwc2_hprt0_enable(hsotg, hprt0, &hprt0_modify);
408 if (hprt0 & HPRT0_OVRCURRCHG) {
409 DWC2_WRITE_4(hsotg, HPRT0, hprt0_modify | HPRT0_OVRCURRCHG);
411 " --Port Interrupt HPRT0=0x%08x Port Overcurrent Changed--\n",
412 hprt0);