• Home
  • Raw
  • Download

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()
3231 u32 hprt0; in dwc2_wakeup_detected() local
3239 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_wakeup_detected()
3240 dev_dbg(hsotg->dev, "Resume: HPRT0=%0x\n", hprt0); in dwc2_wakeup_detected()
3241 hprt0 &= ~HPRT0_RES; in dwc2_wakeup_detected()
3242 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_wakeup_detected()
3387 u32 hprt0; in dwc2_hcd_hub_control() local
3419 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3420 hprt0 |= HPRT0_ENA; in dwc2_hcd_hub_control()
3421 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3435 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3436 pwr = hprt0 & HPRT0_PWR; in dwc2_hcd_hub_control()
3437 hprt0 &= ~HPRT0_PWR; in dwc2_hcd_hub_control()
3438 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3561 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_hcd_hub_control()
3562 dev_vdbg(hsotg->dev, " HPRT0: 0x%08x\n", hprt0); in dwc2_hcd_hub_control()
3564 if (hprt0 & HPRT0_CONNSTS) in dwc2_hcd_hub_control()
3566 if (hprt0 & HPRT0_ENA) in dwc2_hcd_hub_control()
3568 if (hprt0 & HPRT0_SUSP) in dwc2_hcd_hub_control()
3570 if (hprt0 & HPRT0_OVRCURRACT) in dwc2_hcd_hub_control()
3572 if (hprt0 & HPRT0_RST) in dwc2_hcd_hub_control()
3574 if (hprt0 & HPRT0_PWR) in dwc2_hcd_hub_control()
3577 speed = (hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT; in dwc2_hcd_hub_control()
3583 if (hprt0 & HPRT0_TSTCTL_MASK) in dwc2_hcd_hub_control()
3647 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3648 pwr = hprt0 & HPRT0_PWR; in dwc2_hcd_hub_control()
3649 hprt0 |= HPRT0_PWR; in dwc2_hcd_hub_control()
3650 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3659 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3686 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3687 pwr = hprt0 & HPRT0_PWR; in dwc2_hcd_hub_control()
3689 hprt0 &= ~HPRT0_SUSP; in dwc2_hcd_hub_control()
3697 hprt0 |= HPRT0_PWR | HPRT0_RST; in dwc2_hcd_hub_control()
3699 "In host mode, hprt0=%08x\n", hprt0); in dwc2_hcd_hub_control()
3700 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3707 hprt0 &= ~HPRT0_RST; in dwc2_hcd_hub_control()
3708 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3719 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3722 hprt0 &= ~HPRT0_TSTCTL_MASK; in dwc2_hcd_hub_control()
3723 hprt0 |= (windex >> 8) << HPRT0_TSTCTL_SHIFT; in dwc2_hcd_hub_control()
3724 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
4215 u32 hprt0; in dwc2_hcd_reset_func() local
4221 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_reset_func()
4222 hprt0 &= ~HPRT0_RST; in dwc2_hcd_reset_func()
4223 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_reset_func()
4256 u32 hprt0; in _dwc2_hcd_start() local
4273 hprt0 = dwc2_read_hprt0(hsotg); in _dwc2_hcd_start()
4275 if (hprt0 & HPRT0_PWR) { in _dwc2_hcd_start()
4304 u32 hprt0; in _dwc2_hcd_stop() local
4313 hprt0 = dwc2_read_hprt0(hsotg); in _dwc2_hcd_stop()
4323 if (hprt0 & HPRT0_PWR) in _dwc2_hcd_stop()
4415 u32 hprt0; in _dwc2_hcd_resume() local
4426 hprt0 = dwc2_read_hprt0(hsotg); in _dwc2_hcd_resume()
4433 if (hprt0 & HPRT0_CONNSTS) { in _dwc2_hcd_resume()
5428 hr->hprt0 = dwc2_read_hprt0(hsotg); in dwc2_backup_host_registers()
5472 dwc2_writel(hsotg, hr->hprt0, HPRT0); in dwc2_restore_host_registers()
5489 u32 hprt0; in dwc2_host_enter_hibernation() local
5509 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_host_enter_hibernation()
5510 hprt0 |= HPRT0_SUSP; in dwc2_host_enter_hibernation()
5511 hprt0 &= ~HPRT0_ENA; in dwc2_host_enter_hibernation()
5512 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_enter_hibernation()
5599 u32 hprt0; in dwc2_host_exit_hibernation() local
5642 hprt0 = hr->hprt0; in dwc2_host_exit_hibernation()
5643 hprt0 |= HPRT0_PWR; in dwc2_host_exit_hibernation()
5644 hprt0 &= ~HPRT0_ENA; in dwc2_host_exit_hibernation()
5645 hprt0 &= ~HPRT0_SUSP; in dwc2_host_exit_hibernation()
5646 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5648 hprt0 = hr->hprt0; in dwc2_host_exit_hibernation()
5649 hprt0 |= HPRT0_PWR; in dwc2_host_exit_hibernation()
5650 hprt0 &= ~HPRT0_ENA; in dwc2_host_exit_hibernation()
5651 hprt0 &= ~HPRT0_SUSP; in dwc2_host_exit_hibernation()
5654 hprt0 |= HPRT0_RST; in dwc2_host_exit_hibernation()
5655 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5659 hprt0 &= ~HPRT0_RST; in dwc2_host_exit_hibernation()
5660 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5662 hprt0 |= HPRT0_RES; in dwc2_host_exit_hibernation()
5663 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()
5754 u32 hprt0; in dwc2_host_enter_partial_power_down() local
5760 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_host_enter_partial_power_down()
5761 hprt0 |= HPRT0_SUSP; in dwc2_host_enter_partial_power_down()
5762 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_enter_partial_power_down()
5831 u32 hprt0; in dwc2_host_exit_partial_power_down() local
5867 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_host_exit_partial_power_down()
5868 hprt0 |= HPRT0_RES; in dwc2_host_exit_partial_power_down()
5869 hprt0 &= ~HPRT0_SUSP; in dwc2_host_exit_partial_power_down()
5870 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_partial_power_down()
5875 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_host_exit_partial_power_down()
5876 hprt0 &= ~HPRT0_RES; in dwc2_host_exit_partial_power_down()
5877 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_partial_power_down()
5882 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_host_exit_partial_power_down()
5883 hprt0 |= HPRT0_PWR; in dwc2_host_exit_partial_power_down()
5884 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_partial_power_down()
5910 u32 hprt0; in dwc2_host_enter_clock_gating() local
5916 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_host_enter_clock_gating()
5917 hprt0 |= HPRT0_SUSP; in dwc2_host_enter_clock_gating()
5918 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_enter_clock_gating()
5946 u32 hprt0; in dwc2_host_exit_clock_gating() local
5964 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_host_exit_clock_gating()
5965 hprt0 |= HPRT0_RES; in dwc2_host_exit_clock_gating()
5966 hprt0 &= ~HPRT0_SUSP; in dwc2_host_exit_clock_gating()
5967 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_clock_gating()
5975 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_host_exit_clock_gating()
5976 hprt0 &= ~HPRT0_RES; in dwc2_host_exit_clock_gating()
5977 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_clock_gating()