Lines Matching refs:hprt0

560 	u32 hprt0;  in dwc2_calc_frame_interval()  local
564 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_calc_frame_interval()
588 if ((hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT == HPRT0_SPD_HIGH_SPEED) in dwc2_calc_frame_interval()
1879 u32 hprt0; in dwc2_hcd_start() local
1887 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_start()
1888 hprt0 |= HPRT0_RST; in dwc2_hcd_start()
1889 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_start()
1976 u32 hprt0; in dwc2_hcd_disconnect() local
2029 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_hcd_disconnect()
2030 if (!(hprt0 & HPRT0_CONNDET) && (hprt0 & HPRT0_CONNSTS)) in dwc2_hcd_disconnect()
2097 u32 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_hcd_urb_enqueue() local
2098 u32 prtspd = (hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT; in dwc2_hcd_urb_enqueue()
2478 u32 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_core_host_init() local
2481 !!(hprt0 & HPRT0_PWR)); in dwc2_core_host_init()
2482 if (!(hprt0 & HPRT0_PWR)) { in dwc2_core_host_init()
2483 hprt0 |= HPRT0_PWR; in dwc2_core_host_init()
2484 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_core_host_init()
3439 u32 hprt0; in dwc2_wakeup_detected() local
3447 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_wakeup_detected()
3448 dev_dbg(hsotg->dev, "Resume: HPRT0=%0x\n", hprt0); in dwc2_wakeup_detected()
3449 hprt0 &= ~HPRT0_RES; in dwc2_wakeup_detected()
3450 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_wakeup_detected()
3472 u32 hprt0; in dwc2_port_suspend() local
3487 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_port_suspend()
3488 hprt0 |= HPRT0_SUSP; in dwc2_port_suspend()
3489 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_port_suspend()
3523 u32 hprt0; in dwc2_port_resume() local
3541 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_port_resume()
3542 hprt0 |= HPRT0_RES; in dwc2_port_resume()
3543 hprt0 &= ~HPRT0_SUSP; in dwc2_port_resume()
3544 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_port_resume()
3550 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_port_resume()
3551 hprt0 &= ~(HPRT0_RES | HPRT0_SUSP); in dwc2_port_resume()
3552 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_port_resume()
3563 u32 hprt0; in dwc2_hcd_hub_control() local
3594 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3595 hprt0 |= HPRT0_ENA; in dwc2_hcd_hub_control()
3596 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3614 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3615 hprt0 &= ~HPRT0_PWR; in dwc2_hcd_hub_control()
3616 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3737 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_hcd_hub_control()
3738 dev_vdbg(hsotg->dev, " HPRT0: 0x%08x\n", hprt0); in dwc2_hcd_hub_control()
3740 if (hprt0 & HPRT0_CONNSTS) in dwc2_hcd_hub_control()
3742 if (hprt0 & HPRT0_ENA) in dwc2_hcd_hub_control()
3744 if (hprt0 & HPRT0_SUSP) in dwc2_hcd_hub_control()
3746 if (hprt0 & HPRT0_OVRCURRACT) in dwc2_hcd_hub_control()
3748 if (hprt0 & HPRT0_RST) in dwc2_hcd_hub_control()
3750 if (hprt0 & HPRT0_PWR) in dwc2_hcd_hub_control()
3753 speed = (hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT; in dwc2_hcd_hub_control()
3759 if (hprt0 & HPRT0_TSTCTL_MASK) in dwc2_hcd_hub_control()
3825 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3826 hprt0 |= HPRT0_PWR; in dwc2_hcd_hub_control()
3827 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3834 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3843 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3845 hprt0 &= ~HPRT0_SUSP; in dwc2_hcd_hub_control()
3853 hprt0 |= HPRT0_PWR | HPRT0_RST; in dwc2_hcd_hub_control()
3855 "In host mode, hprt0=%08x\n", hprt0); in dwc2_hcd_hub_control()
3856 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3861 hprt0 &= ~HPRT0_RST; in dwc2_hcd_hub_control()
3862 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3873 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3876 hprt0 &= ~HPRT0_TSTCTL_MASK; in dwc2_hcd_hub_control()
3877 hprt0 |= (windex >> 8) << HPRT0_TSTCTL_SHIFT; in dwc2_hcd_hub_control()
3878 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
4366 u32 hprt0; in dwc2_hcd_reset_func() local
4372 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_reset_func()
4373 hprt0 &= ~HPRT0_RST; in dwc2_hcd_reset_func()
4374 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_reset_func()
4457 u32 hprt0; in _dwc2_hcd_suspend() local
4481 hprt0 = dwc2_read_hprt0(hsotg); in _dwc2_hcd_suspend()
4482 hprt0 |= HPRT0_SUSP; in _dwc2_hcd_suspend()
4483 hprt0 &= ~HPRT0_PWR; in _dwc2_hcd_suspend()
4484 dwc2_writel(hsotg, hprt0, HPRT0); in _dwc2_hcd_suspend()
5444 hr->hprt0 = dwc2_read_hprt0(hsotg); in dwc2_backup_host_registers()
5481 dwc2_writel(hsotg, hr->hprt0, HPRT0); in dwc2_restore_host_registers()
5498 u32 hprt0; in dwc2_host_enter_hibernation() local
5518 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_host_enter_hibernation()
5519 hprt0 |= HPRT0_SUSP; in dwc2_host_enter_hibernation()
5520 hprt0 &= ~HPRT0_ENA; in dwc2_host_enter_hibernation()
5521 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_enter_hibernation()
5608 u32 hprt0; in dwc2_host_exit_hibernation() local
5649 hprt0 = hr->hprt0; in dwc2_host_exit_hibernation()
5650 hprt0 |= HPRT0_PWR; in dwc2_host_exit_hibernation()
5651 hprt0 &= ~HPRT0_ENA; in dwc2_host_exit_hibernation()
5652 hprt0 &= ~HPRT0_SUSP; in dwc2_host_exit_hibernation()
5653 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5655 hprt0 = hr->hprt0; in dwc2_host_exit_hibernation()
5656 hprt0 |= HPRT0_PWR; in dwc2_host_exit_hibernation()
5657 hprt0 &= ~HPRT0_ENA; in dwc2_host_exit_hibernation()
5658 hprt0 &= ~HPRT0_SUSP; in dwc2_host_exit_hibernation()
5661 hprt0 |= HPRT0_RST; in dwc2_host_exit_hibernation()
5662 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5666 hprt0 &= ~HPRT0_RST; in dwc2_host_exit_hibernation()
5667 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5669 hprt0 |= HPRT0_RES; in dwc2_host_exit_hibernation()
5670 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5674 hprt0 &= ~HPRT0_RES; in dwc2_host_exit_hibernation()
5675 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5678 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_host_exit_hibernation()
5679 hprt0 |= HPRT0_CONNDET; in dwc2_host_exit_hibernation()
5680 hprt0 |= HPRT0_ENACHG; in dwc2_host_exit_hibernation()
5681 hprt0 &= ~HPRT0_ENA; in dwc2_host_exit_hibernation()
5682 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5684 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_host_exit_hibernation()