Searched refs:hprt0 (Results 1 – 5 of 5) sorted by relevance
200 u32 hprt0; in dwc2_hcd_start() local208 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() local383 u32 prtspd = (hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT; in dwc2_hcd_urb_enqueue()1412 u32 hprt0; in dwc2_wakeup_detected() local1420 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()[all …]
83 u32 hprt0 = readl(hsotg->regs + HPRT0); in dwc2_handle_usb_port_intr() local85 if (hprt0 & HPRT0_ENACHG) { in dwc2_handle_usb_port_intr()86 hprt0 &= ~HPRT0_ENA; in dwc2_handle_usb_port_intr()87 writel(hprt0, hsotg->regs + HPRT0); in dwc2_handle_usb_port_intr()
236 static void dwc2_hprt0_enable(struct dwc2_hsotg *hsotg, u32 hprt0, in dwc2_hprt0_enable() argument264 prtspd = (hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT; in dwc2_hprt0_enable()330 u32 hprt0; in dwc2_port_intr() local335 hprt0 = readl(hsotg->regs + HPRT0); in dwc2_port_intr()336 hprt0_modify = hprt0; in dwc2_port_intr()349 if (hprt0 & HPRT0_CONNDET) { in dwc2_port_intr()352 hprt0); in dwc2_port_intr()367 if (hprt0 & HPRT0_ENACHG) { in dwc2_port_intr()370 hprt0, !!(hprt0 & HPRT0_ENA)); in dwc2_port_intr()372 if (hprt0 & HPRT0_ENA) in dwc2_port_intr()[all …]
398 u32 hprt0 = readl(hsotg->regs + HPRT0); in dwc2_read_hprt0() local400 hprt0 &= ~(HPRT0_ENA | HPRT0_CONNDET | HPRT0_ENACHG | HPRT0_OVRCURRCHG); in dwc2_read_hprt0()401 return hprt0; in dwc2_read_hprt0()
758 u32 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_core_host_init() local761 !!(hprt0 & HPRT0_PWR)); in dwc2_core_host_init()762 if (!(hprt0 & HPRT0_PWR)) { in dwc2_core_host_init()763 hprt0 |= HPRT0_PWR; in dwc2_core_host_init()764 writel(hprt0, hsotg->regs + HPRT0); in dwc2_core_host_init()1730 u32 hprt0; in dwc2_calc_frame_interval() local1734 hprt0 = readl(hsotg->regs + HPRT0); in dwc2_calc_frame_interval()1758 if ((hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT == HPRT0_SPD_HIGH_SPEED) in dwc2_calc_frame_interval()