Lines Matching refs:hprt0

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()
1864 u32 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_hcd_urb_enqueue() local
1865 u32 prtspd = (hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT; in dwc2_hcd_urb_enqueue()
2251 u32 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_core_host_init() local
2254 !!(hprt0 & HPRT0_PWR)); in dwc2_core_host_init()
2255 if (!(hprt0 & HPRT0_PWR)) { in dwc2_core_host_init()
2256 hprt0 |= HPRT0_PWR; in dwc2_core_host_init()
2257 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_core_host_init()
3225 u32 hprt0; in dwc2_wakeup_detected() local
3233 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_wakeup_detected()
3234 dev_dbg(hsotg->dev, "Resume: HPRT0=%0x\n", hprt0); in dwc2_wakeup_detected()
3235 hprt0 &= ~HPRT0_RES; in dwc2_wakeup_detected()
3236 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_wakeup_detected()
3381 u32 hprt0; in dwc2_hcd_hub_control() local
3413 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3414 hprt0 |= HPRT0_ENA; in dwc2_hcd_hub_control()
3415 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3429 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3430 pwr = hprt0 & HPRT0_PWR; in dwc2_hcd_hub_control()
3431 hprt0 &= ~HPRT0_PWR; in dwc2_hcd_hub_control()
3432 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3555 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_hcd_hub_control()
3556 dev_vdbg(hsotg->dev, " HPRT0: 0x%08x\n", hprt0); in dwc2_hcd_hub_control()
3558 if (hprt0 & HPRT0_CONNSTS) in dwc2_hcd_hub_control()
3560 if (hprt0 & HPRT0_ENA) in dwc2_hcd_hub_control()
3562 if (hprt0 & HPRT0_SUSP) in dwc2_hcd_hub_control()
3564 if (hprt0 & HPRT0_OVRCURRACT) in dwc2_hcd_hub_control()
3566 if (hprt0 & HPRT0_RST) in dwc2_hcd_hub_control()
3568 if (hprt0 & HPRT0_PWR) in dwc2_hcd_hub_control()
3571 speed = (hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT; in dwc2_hcd_hub_control()
3577 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()
3680 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3681 pwr = hprt0 & HPRT0_PWR; in dwc2_hcd_hub_control()
3683 hprt0 &= ~HPRT0_SUSP; in dwc2_hcd_hub_control()
3691 hprt0 |= HPRT0_PWR | HPRT0_RST; in dwc2_hcd_hub_control()
3693 "In host mode, hprt0=%08x\n", hprt0); in dwc2_hcd_hub_control()
3694 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3701 hprt0 &= ~HPRT0_RST; in dwc2_hcd_hub_control()
3702 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3713 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3716 hprt0 &= ~HPRT0_TSTCTL_MASK; in dwc2_hcd_hub_control()
3717 hprt0 |= (windex >> 8) << HPRT0_TSTCTL_SHIFT; in dwc2_hcd_hub_control()
3718 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
4207 u32 hprt0; in dwc2_hcd_reset_func() local
4213 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_reset_func()
4214 hprt0 &= ~HPRT0_RST; in dwc2_hcd_reset_func()
4215 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_reset_func()
4248 u32 hprt0; in _dwc2_hcd_start() local
4265 hprt0 = dwc2_read_hprt0(hsotg); in _dwc2_hcd_start()
4267 if (hprt0 & HPRT0_PWR) { in _dwc2_hcd_start()
4296 u32 hprt0; in _dwc2_hcd_stop() local
4305 hprt0 = dwc2_read_hprt0(hsotg); in _dwc2_hcd_stop()
4315 if (hprt0 & HPRT0_PWR) in _dwc2_hcd_stop()
4407 u32 hprt0; in _dwc2_hcd_resume() local
4418 hprt0 = dwc2_read_hprt0(hsotg); in _dwc2_hcd_resume()
4425 if (hprt0 & HPRT0_CONNSTS) { in _dwc2_hcd_resume()
5413 hr->hprt0 = dwc2_read_hprt0(hsotg); in dwc2_backup_host_registers()
5450 dwc2_writel(hsotg, hr->hprt0, HPRT0); in dwc2_restore_host_registers()
5467 u32 hprt0; in dwc2_host_enter_hibernation() local
5487 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_host_enter_hibernation()
5488 hprt0 |= HPRT0_SUSP; in dwc2_host_enter_hibernation()
5489 hprt0 &= ~HPRT0_ENA; in dwc2_host_enter_hibernation()
5490 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_enter_hibernation()
5577 u32 hprt0; in dwc2_host_exit_hibernation() local
5618 hprt0 = hr->hprt0; in dwc2_host_exit_hibernation()
5619 hprt0 |= HPRT0_PWR; in dwc2_host_exit_hibernation()
5620 hprt0 &= ~HPRT0_ENA; in dwc2_host_exit_hibernation()
5621 hprt0 &= ~HPRT0_SUSP; in dwc2_host_exit_hibernation()
5622 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5624 hprt0 = hr->hprt0; in dwc2_host_exit_hibernation()
5625 hprt0 |= HPRT0_PWR; in dwc2_host_exit_hibernation()
5626 hprt0 &= ~HPRT0_ENA; in dwc2_host_exit_hibernation()
5627 hprt0 &= ~HPRT0_SUSP; in dwc2_host_exit_hibernation()
5630 hprt0 |= HPRT0_RST; in dwc2_host_exit_hibernation()
5631 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5635 hprt0 &= ~HPRT0_RST; in dwc2_host_exit_hibernation()
5636 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5638 hprt0 |= HPRT0_RES; in dwc2_host_exit_hibernation()
5639 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5643 hprt0 &= ~HPRT0_RES; in dwc2_host_exit_hibernation()
5644 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5647 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_host_exit_hibernation()
5648 hprt0 |= HPRT0_CONNDET; in dwc2_host_exit_hibernation()
5649 hprt0 |= HPRT0_ENACHG; in dwc2_host_exit_hibernation()
5650 hprt0 &= ~HPRT0_ENA; in dwc2_host_exit_hibernation()
5651 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5653 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_host_exit_hibernation()
5723 u32 hprt0; in dwc2_host_enter_partial_power_down() local
5729 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_host_enter_partial_power_down()
5730 hprt0 |= HPRT0_SUSP; in dwc2_host_enter_partial_power_down()
5731 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_enter_partial_power_down()
5800 u32 hprt0; in dwc2_host_exit_partial_power_down() local
5836 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_host_exit_partial_power_down()
5837 hprt0 |= HPRT0_RES; in dwc2_host_exit_partial_power_down()
5838 hprt0 &= ~HPRT0_SUSP; in dwc2_host_exit_partial_power_down()
5839 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_partial_power_down()
5844 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_host_exit_partial_power_down()
5845 hprt0 &= ~HPRT0_RES; in dwc2_host_exit_partial_power_down()
5846 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_partial_power_down()
5851 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_host_exit_partial_power_down()
5852 hprt0 |= HPRT0_PWR; in dwc2_host_exit_partial_power_down()
5853 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_partial_power_down()
5879 u32 hprt0; in dwc2_host_enter_clock_gating() local
5885 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_host_enter_clock_gating()
5886 hprt0 |= HPRT0_SUSP; in dwc2_host_enter_clock_gating()
5887 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_enter_clock_gating()
5915 u32 hprt0; in dwc2_host_exit_clock_gating() local
5933 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_host_exit_clock_gating()
5934 hprt0 |= HPRT0_RES; in dwc2_host_exit_clock_gating()
5935 hprt0 &= ~HPRT0_SUSP; in dwc2_host_exit_clock_gating()
5936 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_clock_gating()
5944 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_host_exit_clock_gating()
5945 hprt0 &= ~HPRT0_RES; in dwc2_host_exit_clock_gating()
5946 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_clock_gating()