Searched refs:hprt0 (Results 1 – 9 of 9) sorted by relevance
/openbmc/u-boot/drivers/usb/host/ |
H A D | dwc2.c | 239 uint32_t hprt0 = 0; in dwc_otg_core_host_init() local 305 hprt0 = readl(®s->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, ®s->hprt0); in dwc_otg_core_host_init() 526 uint32_t hprt0 = 0; in dwc_otg_submit_rh_msg_in_status() local 547 hprt0 = readl(®s->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 D | dwc2.h | 60 u32 hprt0; /* 0x440 */ member
|
/openbmc/linux/drivers/usb/dwc2/ |
H A D | hcd.c | 329 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 D | core_intr.c | 54 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 D | hcd_intr.c | 233 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 D | hcd.h | 464 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 D | core.h | 755 u32 hprt0; member
|
/openbmc/qemu/hw/usb/ |
H A D | hcd-dwc2.c | 189 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 D | hcd-dwc2.h | 129 uint32_t hprt0; /* 440 */ member
|