Home
last modified time | relevance | path

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

/openbmc/u-boot/drivers/usb/host/
H A Ddwc2.c239 uint32_t hprt0 = 0; in dwc_otg_core_host_init() local
305 hprt0 = readl(&regs->hprt0); in dwc_otg_core_host_init()
306 hprt0 &= ~(DWC2_HPRT0_PRTENA | DWC2_HPRT0_PRTCONNDET); in dwc_otg_core_host_init()
307 hprt0 &= ~(DWC2_HPRT0_PRTENCHNG | DWC2_HPRT0_PRTOVRCURRCHNG); in dwc_otg_core_host_init()
308 if (!(hprt0 & DWC2_HPRT0_PRTPWR)) { in dwc_otg_core_host_init()
309 hprt0 |= DWC2_HPRT0_PRTPWR; in dwc_otg_core_host_init()
310 writel(hprt0, &regs->hprt0); in dwc_otg_core_host_init()
526 uint32_t hprt0 = 0; in dwc_otg_submit_rh_msg_in_status() local
547 hprt0 = readl(&regs->hprt0); in dwc_otg_submit_rh_msg_in_status()
548 if (hprt0 & DWC2_HPRT0_PRTCONNSTS) in dwc_otg_submit_rh_msg_in_status()
[all …]
H A Ddwc2.h60 u32 hprt0; /* 0x440 */ member
/openbmc/linux/drivers/usb/dwc2/
H A Dhcd.c329 u32 hprt0; in dwc2_calc_frame_interval() local
333 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_calc_frame_interval()
357 if ((hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT == HPRT0_SPD_HIGH_SPEED) in dwc2_calc_frame_interval()
1646 u32 hprt0; in dwc2_hcd_start() local
1654 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_start()
1655 hprt0 |= HPRT0_RST; in dwc2_hcd_start()
1656 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_start()
1743 u32 hprt0; in dwc2_hcd_disconnect() local
1796 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_hcd_disconnect()
1797 if (!(hprt0 & HPRT0_CONNDET) && (hprt0 & HPRT0_CONNSTS)) in dwc2_hcd_disconnect()
[all …]
H A Dcore_intr.c54 u32 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_handle_usb_port_intr() local
56 if (hprt0 & HPRT0_ENACHG) { in dwc2_handle_usb_port_intr()
57 hprt0 &= ~HPRT0_ENA; in dwc2_handle_usb_port_intr()
58 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_handle_usb_port_intr()
280 u32 hprt0; in dwc2_handle_session_req_intr() local
312 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_handle_session_req_intr()
313 hprt0 |= HPRT0_PWR; in dwc2_handle_session_req_intr()
314 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_handle_session_req_intr()
H A Dhcd_intr.c233 static void dwc2_hprt0_enable(struct dwc2_hsotg *hsotg, u32 hprt0, in dwc2_hprt0_enable() argument
261 prtspd = (hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT; in dwc2_hprt0_enable()
327 u32 hprt0; in dwc2_port_intr() local
332 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_port_intr()
333 hprt0_modify = hprt0; in dwc2_port_intr()
346 if (hprt0 & HPRT0_CONNDET) { in dwc2_port_intr()
351 hprt0); in dwc2_port_intr()
364 if (hprt0 & HPRT0_ENACHG) { in dwc2_port_intr()
368 hprt0, !!(hprt0 & HPRT0_ENA)); in dwc2_port_intr()
369 if (hprt0 & HPRT0_ENA) { in dwc2_port_intr()
[all …]
H A Dhcd.h464 u32 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_read_hprt0() local
466 hprt0 &= ~(HPRT0_ENA | HPRT0_CONNDET | HPRT0_ENACHG | HPRT0_OVRCURRCHG); in dwc2_read_hprt0()
467 return hprt0; in dwc2_read_hprt0()
H A Dcore.h755 u32 hprt0; member
/openbmc/qemu/hw/usb/
H A Dhcd-dwc2.c189 if (!(s->hprt0 & HPRT0_ENA)) { in dwc2_find_device()
426 s->hprt0 &= ~HPRT0_SPD_MASK; in dwc2_attach()
430 s->hprt0 |= HPRT0_SPD_LOW_SPEED << HPRT0_SPD_SHIFT; in dwc2_attach()
433 s->hprt0 |= HPRT0_SPD_FULL_SPEED << HPRT0_SPD_SHIFT; in dwc2_attach()
436 s->hprt0 |= HPRT0_SPD_HIGH_SPEED << HPRT0_SPD_SHIFT; in dwc2_attach()
458 s->hprt0 |= HPRT0_CONNDET | HPRT0_CONNSTS; in dwc2_attach()
473 s->hprt0 &= ~(HPRT0_SPD_MASK | HPRT0_SUSP | HPRT0_ENA | HPRT0_CONNSTS); in dwc2_detach()
474 s->hprt0 |= HPRT0_CONNDET | HPRT0_ENACHG; in dwc2_detach()
492 if (s->hprt0 & HPRT0_SUSP) { in dwc2_wakeup()
493 s->hprt0 |= HPRT0_RES; in dwc2_wakeup()
[all …]
H A Dhcd-dwc2.h129 uint32_t hprt0; /* 440 */ member