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()
1683 u32 hprt0; in dwc2_hcd_start() local
1691 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_start()
1692 hprt0 |= HPRT0_RST; in dwc2_hcd_start()
1693 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_start()
1780 u32 hprt0; in dwc2_hcd_disconnect() local
1832 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_hcd_disconnect()
1834 if (!force && !(hprt0 & HPRT0_CONNDET) && in dwc2_hcd_disconnect()
1835 (hprt0 & HPRT0_CONNSTS)) in dwc2_hcd_disconnect()
1903 u32 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_hcd_urb_enqueue() local
1904 u32 prtspd = (hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT; in dwc2_hcd_urb_enqueue()
2290 u32 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_core_host_init() local
2293 !!(hprt0 & HPRT0_PWR)); in dwc2_core_host_init()
2294 if (!(hprt0 & HPRT0_PWR)) { in dwc2_core_host_init()
2295 hprt0 |= HPRT0_PWR; in dwc2_core_host_init()
2296 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_core_host_init()
3273 u32 hprt0; in dwc2_wakeup_detected() local
3281 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_wakeup_detected()
3282 dev_dbg(hsotg->dev, "Resume: HPRT0=%0x\n", hprt0); in dwc2_wakeup_detected()
3283 hprt0 &= ~HPRT0_RES; in dwc2_wakeup_detected()
3284 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_wakeup_detected()
3306 u32 hprt0; in dwc2_port_suspend() local
3321 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_port_suspend()
3322 hprt0 |= HPRT0_SUSP; in dwc2_port_suspend()
3323 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_port_suspend()
3357 u32 hprt0; in dwc2_port_resume() local
3375 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_port_resume()
3376 hprt0 |= HPRT0_RES; in dwc2_port_resume()
3377 hprt0 &= ~HPRT0_SUSP; in dwc2_port_resume()
3378 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_port_resume()
3384 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_port_resume()
3385 hprt0 &= ~(HPRT0_RES | HPRT0_SUSP); in dwc2_port_resume()
3386 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_port_resume()
3397 u32 hprt0; in dwc2_hcd_hub_control() local
3429 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3430 hprt0 |= HPRT0_ENA; in dwc2_hcd_hub_control()
3431 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3449 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3450 pwr = hprt0 & HPRT0_PWR; in dwc2_hcd_hub_control()
3451 hprt0 &= ~HPRT0_PWR; in dwc2_hcd_hub_control()
3452 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3575 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_hcd_hub_control()
3576 dev_vdbg(hsotg->dev, " HPRT0: 0x%08x\n", hprt0); in dwc2_hcd_hub_control()
3578 if (hprt0 & HPRT0_CONNSTS) in dwc2_hcd_hub_control()
3580 if (hprt0 & HPRT0_ENA) in dwc2_hcd_hub_control()
3582 if (hprt0 & HPRT0_SUSP) in dwc2_hcd_hub_control()
3584 if (hprt0 & HPRT0_OVRCURRACT) in dwc2_hcd_hub_control()
3586 if (hprt0 & HPRT0_RST) in dwc2_hcd_hub_control()
3588 if (hprt0 & HPRT0_PWR) in dwc2_hcd_hub_control()
3591 speed = (hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT; in dwc2_hcd_hub_control()
3597 if (hprt0 & HPRT0_TSTCTL_MASK) in dwc2_hcd_hub_control()
3663 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3664 pwr = hprt0 & HPRT0_PWR; in dwc2_hcd_hub_control()
3665 hprt0 |= HPRT0_PWR; in dwc2_hcd_hub_control()
3666 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3675 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3684 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3685 pwr = hprt0 & HPRT0_PWR; in dwc2_hcd_hub_control()
3687 hprt0 &= ~HPRT0_SUSP; in dwc2_hcd_hub_control()
3695 hprt0 |= HPRT0_PWR | HPRT0_RST; in dwc2_hcd_hub_control()
3697 "In host mode, hprt0=%08x\n", hprt0); in dwc2_hcd_hub_control()
3698 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3705 hprt0 &= ~HPRT0_RST; in dwc2_hcd_hub_control()
3706 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3717 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3720 hprt0 &= ~HPRT0_TSTCTL_MASK; in dwc2_hcd_hub_control()
3721 hprt0 |= (windex >> 8) << HPRT0_TSTCTL_SHIFT; in dwc2_hcd_hub_control()
3722 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
4211 u32 hprt0; in dwc2_hcd_reset_func() local
4217 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_reset_func()
4218 hprt0 &= ~HPRT0_RST; in dwc2_hcd_reset_func()
4219 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_reset_func()
4252 u32 hprt0; in _dwc2_hcd_start() local
4269 hprt0 = dwc2_read_hprt0(hsotg); in _dwc2_hcd_start()
4271 if (hprt0 & HPRT0_PWR) { in _dwc2_hcd_start()
4300 u32 hprt0; in _dwc2_hcd_stop() local
4309 hprt0 = dwc2_read_hprt0(hsotg); in _dwc2_hcd_stop()
4319 if (hprt0 & HPRT0_PWR) in _dwc2_hcd_stop()
4330 u32 hprt0; in _dwc2_hcd_suspend() local
4356 hprt0 = dwc2_read_hprt0(hsotg); in _dwc2_hcd_suspend()
4357 if (hprt0 & HPRT0_CONNSTS) { in _dwc2_hcd_suspend()
4358 hprt0 |= HPRT0_SUSP; in _dwc2_hcd_suspend()
4360 hprt0 &= ~HPRT0_PWR; in _dwc2_hcd_suspend()
4361 dwc2_writel(hsotg, hprt0, HPRT0); in _dwc2_hcd_suspend()
5355 hr->hprt0 = dwc2_read_hprt0(hsotg); in dwc2_backup_host_registers()
5392 dwc2_writel(hsotg, hr->hprt0, HPRT0); in dwc2_restore_host_registers()
5409 u32 hprt0; in dwc2_host_enter_hibernation() local
5429 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_host_enter_hibernation()
5430 hprt0 |= HPRT0_SUSP; in dwc2_host_enter_hibernation()
5431 hprt0 &= ~HPRT0_ENA; in dwc2_host_enter_hibernation()
5432 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_enter_hibernation()
5519 u32 hprt0; in dwc2_host_exit_hibernation() local
5560 hprt0 = hr->hprt0; in dwc2_host_exit_hibernation()
5561 hprt0 |= HPRT0_PWR; in dwc2_host_exit_hibernation()
5562 hprt0 &= ~HPRT0_ENA; in dwc2_host_exit_hibernation()
5563 hprt0 &= ~HPRT0_SUSP; in dwc2_host_exit_hibernation()
5564 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5566 hprt0 = hr->hprt0; in dwc2_host_exit_hibernation()
5567 hprt0 |= HPRT0_PWR; in dwc2_host_exit_hibernation()
5568 hprt0 &= ~HPRT0_ENA; in dwc2_host_exit_hibernation()
5569 hprt0 &= ~HPRT0_SUSP; in dwc2_host_exit_hibernation()
5572 hprt0 |= HPRT0_RST; in dwc2_host_exit_hibernation()
5573 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5577 hprt0 &= ~HPRT0_RST; in dwc2_host_exit_hibernation()
5578 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5580 hprt0 |= HPRT0_RES; in dwc2_host_exit_hibernation()
5581 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5585 hprt0 &= ~HPRT0_RES; in dwc2_host_exit_hibernation()
5586 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5589 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_host_exit_hibernation()
5590 hprt0 |= HPRT0_CONNDET; in dwc2_host_exit_hibernation()
5591 hprt0 |= HPRT0_ENACHG; in dwc2_host_exit_hibernation()
5592 hprt0 &= ~HPRT0_ENA; in dwc2_host_exit_hibernation()
5593 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5595 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_host_exit_hibernation()