Home
last modified time | relevance | path

Searched refs:hprt0 (Results 1 – 5 of 5) sorted by relevance

/linux-4.1.27/drivers/usb/dwc2/
Dhcd.c200 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()
[all …]
Dcore_intr.c83 u32 hprt0 = readl(hsotg->regs + HPRT0); in dwc2_handle_usb_port_intr() local
85 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()
Dhcd_intr.c236 static void dwc2_hprt0_enable(struct dwc2_hsotg *hsotg, u32 hprt0, in dwc2_hprt0_enable() argument
264 prtspd = (hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT; in dwc2_hprt0_enable()
330 u32 hprt0; in dwc2_port_intr() local
335 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 …]
Dhcd.h398 u32 hprt0 = readl(hsotg->regs + HPRT0); in dwc2_read_hprt0() local
400 hprt0 &= ~(HPRT0_ENA | HPRT0_CONNDET | HPRT0_ENACHG | HPRT0_OVRCURRCHG); in dwc2_read_hprt0()
401 return hprt0; in dwc2_read_hprt0()
Dcore.c758 u32 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_core_host_init() local
761 !!(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() local
1734 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()