Home
last modified time | relevance | path

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

/linux-4.4.14/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 dwc2_writel(hprt0, hsotg->regs + HPRT0); in dwc2_hcd_start()
382 u32 hprt0 = dwc2_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()
1417 u32 hprt0; in dwc2_wakeup_detected() local
1425 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_wakeup_detected()
1426 dev_dbg(hsotg->dev, "Resume: HPRT0=%0x\n", hprt0); in dwc2_wakeup_detected()
1427 hprt0 &= ~HPRT0_RES; in dwc2_wakeup_detected()
[all …]
Dcore_intr.c83 u32 hprt0 = dwc2_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 dwc2_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 = dwc2_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()
370 if (hprt0 & HPRT0_ENACHG) { in dwc2_port_intr()
373 hprt0, !!(hprt0 & HPRT0_ENA)); in dwc2_port_intr()
375 if (hprt0 & HPRT0_ENA) in dwc2_port_intr()
[all …]
Dhcd.h398 u32 hprt0 = dwc2_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.c81 hr->hprt0 = dwc2_read_hprt0(hsotg); in dwc2_backup_host_registers()
117 dwc2_writel(hr->hprt0, hsotg->regs + HPRT0); in dwc2_restore_host_registers()
1126 u32 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_core_host_init() local
1129 !!(hprt0 & HPRT0_PWR)); in dwc2_core_host_init()
1130 if (!(hprt0 & HPRT0_PWR)) { in dwc2_core_host_init()
1131 hprt0 |= HPRT0_PWR; in dwc2_core_host_init()
1132 dwc2_writel(hprt0, hsotg->regs + HPRT0); in dwc2_core_host_init()
2098 u32 hprt0; in dwc2_calc_frame_interval() local
2102 hprt0 = dwc2_readl(hsotg->regs + HPRT0); in dwc2_calc_frame_interval()
2126 if ((hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT == HPRT0_SPD_HIGH_SPEED) in dwc2_calc_frame_interval()
Dcore.h558 u32 hprt0; member