Lines Matching refs:hprt0
364 u32 hprt0; in dwc2_calc_frame_interval() local
368 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_calc_frame_interval()
392 if ((hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT == HPRT0_SPD_HIGH_SPEED) in dwc2_calc_frame_interval()
1681 u32 hprt0; in dwc2_hcd_start() local
1689 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_start()
1690 hprt0 |= HPRT0_RST; in dwc2_hcd_start()
1691 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_start()
1778 u32 hprt0; in dwc2_hcd_disconnect() local
1831 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_hcd_disconnect()
1832 if (!(hprt0 & HPRT0_CONNDET) && (hprt0 & HPRT0_CONNSTS)) in dwc2_hcd_disconnect()
1899 u32 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_hcd_urb_enqueue() local
1900 u32 prtspd = (hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT; in dwc2_hcd_urb_enqueue()
2286 u32 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_core_host_init() local
2289 !!(hprt0 & HPRT0_PWR)); in dwc2_core_host_init()
2290 if (!(hprt0 & HPRT0_PWR)) { in dwc2_core_host_init()
2291 hprt0 |= HPRT0_PWR; in dwc2_core_host_init()
2292 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_core_host_init()
3251 u32 hprt0; in dwc2_wakeup_detected() local
3259 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_wakeup_detected()
3260 dev_dbg(hsotg->dev, "Resume: HPRT0=%0x\n", hprt0); in dwc2_wakeup_detected()
3261 hprt0 &= ~HPRT0_RES; in dwc2_wakeup_detected()
3262 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_wakeup_detected()
3284 u32 hprt0; in dwc2_port_suspend() local
3299 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_port_suspend()
3300 hprt0 |= HPRT0_SUSP; in dwc2_port_suspend()
3301 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_port_suspend()
3335 u32 hprt0; in dwc2_port_resume() local
3353 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_port_resume()
3354 hprt0 |= HPRT0_RES; in dwc2_port_resume()
3355 hprt0 &= ~HPRT0_SUSP; in dwc2_port_resume()
3356 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_port_resume()
3362 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_port_resume()
3363 hprt0 &= ~(HPRT0_RES | HPRT0_SUSP); in dwc2_port_resume()
3364 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_port_resume()
3375 u32 hprt0; in dwc2_hcd_hub_control() local
3407 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3408 hprt0 |= HPRT0_ENA; in dwc2_hcd_hub_control()
3409 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3427 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3428 pwr = hprt0 & HPRT0_PWR; in dwc2_hcd_hub_control()
3429 hprt0 &= ~HPRT0_PWR; in dwc2_hcd_hub_control()
3430 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3553 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_hcd_hub_control()
3554 dev_vdbg(hsotg->dev, " HPRT0: 0x%08x\n", hprt0); in dwc2_hcd_hub_control()
3556 if (hprt0 & HPRT0_CONNSTS) in dwc2_hcd_hub_control()
3558 if (hprt0 & HPRT0_ENA) in dwc2_hcd_hub_control()
3560 if (hprt0 & HPRT0_SUSP) in dwc2_hcd_hub_control()
3562 if (hprt0 & HPRT0_OVRCURRACT) in dwc2_hcd_hub_control()
3564 if (hprt0 & HPRT0_RST) in dwc2_hcd_hub_control()
3566 if (hprt0 & HPRT0_PWR) in dwc2_hcd_hub_control()
3569 speed = (hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT; in dwc2_hcd_hub_control()
3575 if (hprt0 & HPRT0_TSTCTL_MASK) in dwc2_hcd_hub_control()
3641 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3642 pwr = hprt0 & HPRT0_PWR; in dwc2_hcd_hub_control()
3643 hprt0 |= HPRT0_PWR; in dwc2_hcd_hub_control()
3644 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3653 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3662 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3663 pwr = hprt0 & HPRT0_PWR; in dwc2_hcd_hub_control()
3665 hprt0 &= ~HPRT0_SUSP; in dwc2_hcd_hub_control()
3673 hprt0 |= HPRT0_PWR | HPRT0_RST; in dwc2_hcd_hub_control()
3675 "In host mode, hprt0=%08x\n", hprt0); in dwc2_hcd_hub_control()
3676 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3683 hprt0 &= ~HPRT0_RST; in dwc2_hcd_hub_control()
3684 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3695 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3698 hprt0 &= ~HPRT0_TSTCTL_MASK; in dwc2_hcd_hub_control()
3699 hprt0 |= (windex >> 8) << HPRT0_TSTCTL_SHIFT; in dwc2_hcd_hub_control()
3700 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
4189 u32 hprt0; in dwc2_hcd_reset_func() local
4195 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_reset_func()
4196 hprt0 &= ~HPRT0_RST; in dwc2_hcd_reset_func()
4197 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_reset_func()
4230 u32 hprt0; in _dwc2_hcd_start() local
4247 hprt0 = dwc2_read_hprt0(hsotg); in _dwc2_hcd_start()
4249 if (hprt0 & HPRT0_PWR) { in _dwc2_hcd_start()
4278 u32 hprt0; in _dwc2_hcd_stop() local
4287 hprt0 = dwc2_read_hprt0(hsotg); in _dwc2_hcd_stop()
4297 if (hprt0 & HPRT0_PWR) in _dwc2_hcd_stop()
4308 u32 hprt0; in _dwc2_hcd_suspend() local
4334 hprt0 = dwc2_read_hprt0(hsotg); in _dwc2_hcd_suspend()
4335 if (hprt0 & HPRT0_CONNSTS) { in _dwc2_hcd_suspend()
4336 hprt0 |= HPRT0_SUSP; in _dwc2_hcd_suspend()
4338 hprt0 &= ~HPRT0_PWR; in _dwc2_hcd_suspend()
4339 dwc2_writel(hsotg, hprt0, HPRT0); in _dwc2_hcd_suspend()
5326 hr->hprt0 = dwc2_read_hprt0(hsotg); in dwc2_backup_host_registers()
5363 dwc2_writel(hsotg, hr->hprt0, HPRT0); in dwc2_restore_host_registers()
5380 u32 hprt0; in dwc2_host_enter_hibernation() local
5400 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_host_enter_hibernation()
5401 hprt0 |= HPRT0_SUSP; in dwc2_host_enter_hibernation()
5402 hprt0 &= ~HPRT0_ENA; in dwc2_host_enter_hibernation()
5403 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_enter_hibernation()
5490 u32 hprt0; in dwc2_host_exit_hibernation() local
5531 hprt0 = hr->hprt0; in dwc2_host_exit_hibernation()
5532 hprt0 |= HPRT0_PWR; in dwc2_host_exit_hibernation()
5533 hprt0 &= ~HPRT0_ENA; in dwc2_host_exit_hibernation()
5534 hprt0 &= ~HPRT0_SUSP; in dwc2_host_exit_hibernation()
5535 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5537 hprt0 = hr->hprt0; in dwc2_host_exit_hibernation()
5538 hprt0 |= HPRT0_PWR; in dwc2_host_exit_hibernation()
5539 hprt0 &= ~HPRT0_ENA; in dwc2_host_exit_hibernation()
5540 hprt0 &= ~HPRT0_SUSP; in dwc2_host_exit_hibernation()
5543 hprt0 |= HPRT0_RST; in dwc2_host_exit_hibernation()
5544 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5548 hprt0 &= ~HPRT0_RST; in dwc2_host_exit_hibernation()
5549 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5551 hprt0 |= HPRT0_RES; in dwc2_host_exit_hibernation()
5552 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5556 hprt0 &= ~HPRT0_RES; in dwc2_host_exit_hibernation()
5557 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5560 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_host_exit_hibernation()
5561 hprt0 |= HPRT0_CONNDET; in dwc2_host_exit_hibernation()
5562 hprt0 |= HPRT0_ENACHG; in dwc2_host_exit_hibernation()
5563 hprt0 &= ~HPRT0_ENA; in dwc2_host_exit_hibernation()
5564 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5566 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_host_exit_hibernation()