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()
1680 u32 hprt0; in dwc2_hcd_start() local
1688 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_start()
1689 hprt0 |= HPRT0_RST; in dwc2_hcd_start()
1690 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_start()
1777 u32 hprt0; in dwc2_hcd_disconnect() local
1830 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_hcd_disconnect()
1831 if (!(hprt0 & HPRT0_CONNDET) && (hprt0 & HPRT0_CONNSTS)) in dwc2_hcd_disconnect()
1898 u32 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_hcd_urb_enqueue() local
1899 u32 prtspd = (hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT; in dwc2_hcd_urb_enqueue()
2285 u32 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_core_host_init() local
2288 !!(hprt0 & HPRT0_PWR)); in dwc2_core_host_init()
2289 if (!(hprt0 & HPRT0_PWR)) { in dwc2_core_host_init()
2290 hprt0 |= HPRT0_PWR; in dwc2_core_host_init()
2291 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_core_host_init()
3250 u32 hprt0; in dwc2_wakeup_detected() local
3258 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_wakeup_detected()
3259 dev_dbg(hsotg->dev, "Resume: HPRT0=%0x\n", hprt0); in dwc2_wakeup_detected()
3260 hprt0 &= ~HPRT0_RES; in dwc2_wakeup_detected()
3261 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_wakeup_detected()
3283 u32 hprt0; in dwc2_port_suspend() local
3298 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_port_suspend()
3299 hprt0 |= HPRT0_SUSP; in dwc2_port_suspend()
3300 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_port_suspend()
3334 u32 hprt0; in dwc2_port_resume() local
3352 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_port_resume()
3353 hprt0 |= HPRT0_RES; in dwc2_port_resume()
3354 hprt0 &= ~HPRT0_SUSP; in dwc2_port_resume()
3355 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_port_resume()
3361 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_port_resume()
3362 hprt0 &= ~(HPRT0_RES | HPRT0_SUSP); in dwc2_port_resume()
3363 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_port_resume()
3374 u32 hprt0; in dwc2_hcd_hub_control() local
3406 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3407 hprt0 |= HPRT0_ENA; in dwc2_hcd_hub_control()
3408 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3426 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3427 pwr = hprt0 & HPRT0_PWR; in dwc2_hcd_hub_control()
3428 hprt0 &= ~HPRT0_PWR; in dwc2_hcd_hub_control()
3429 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3552 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_hcd_hub_control()
3553 dev_vdbg(hsotg->dev, " HPRT0: 0x%08x\n", hprt0); in dwc2_hcd_hub_control()
3555 if (hprt0 & HPRT0_CONNSTS) in dwc2_hcd_hub_control()
3557 if (hprt0 & HPRT0_ENA) in dwc2_hcd_hub_control()
3559 if (hprt0 & HPRT0_SUSP) in dwc2_hcd_hub_control()
3561 if (hprt0 & HPRT0_OVRCURRACT) in dwc2_hcd_hub_control()
3563 if (hprt0 & HPRT0_RST) in dwc2_hcd_hub_control()
3565 if (hprt0 & HPRT0_PWR) in dwc2_hcd_hub_control()
3568 speed = (hprt0 & HPRT0_SPD_MASK) >> HPRT0_SPD_SHIFT; in dwc2_hcd_hub_control()
3574 if (hprt0 & HPRT0_TSTCTL_MASK) in dwc2_hcd_hub_control()
3640 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3641 pwr = hprt0 & HPRT0_PWR; in dwc2_hcd_hub_control()
3642 hprt0 |= HPRT0_PWR; in dwc2_hcd_hub_control()
3643 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3652 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3661 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3662 pwr = hprt0 & HPRT0_PWR; in dwc2_hcd_hub_control()
3664 hprt0 &= ~HPRT0_SUSP; in dwc2_hcd_hub_control()
3672 hprt0 |= HPRT0_PWR | HPRT0_RST; in dwc2_hcd_hub_control()
3674 "In host mode, hprt0=%08x\n", hprt0); in dwc2_hcd_hub_control()
3675 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3682 hprt0 &= ~HPRT0_RST; in dwc2_hcd_hub_control()
3683 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
3694 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_hub_control()
3697 hprt0 &= ~HPRT0_TSTCTL_MASK; in dwc2_hcd_hub_control()
3698 hprt0 |= (windex >> 8) << HPRT0_TSTCTL_SHIFT; in dwc2_hcd_hub_control()
3699 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_hub_control()
4188 u32 hprt0; in dwc2_hcd_reset_func() local
4194 hprt0 = dwc2_read_hprt0(hsotg); in dwc2_hcd_reset_func()
4195 hprt0 &= ~HPRT0_RST; in dwc2_hcd_reset_func()
4196 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_hcd_reset_func()
4229 u32 hprt0; in _dwc2_hcd_start() local
4246 hprt0 = dwc2_read_hprt0(hsotg); in _dwc2_hcd_start()
4248 if (hprt0 & HPRT0_PWR) { in _dwc2_hcd_start()
4277 u32 hprt0; in _dwc2_hcd_stop() local
4286 hprt0 = dwc2_read_hprt0(hsotg); in _dwc2_hcd_stop()
4296 if (hprt0 & HPRT0_PWR) in _dwc2_hcd_stop()
4307 u32 hprt0; in _dwc2_hcd_suspend() local
4332 hprt0 = dwc2_read_hprt0(hsotg); in _dwc2_hcd_suspend()
4333 if (hprt0 & HPRT0_CONNSTS) { in _dwc2_hcd_suspend()
4334 hprt0 |= HPRT0_SUSP; in _dwc2_hcd_suspend()
4336 hprt0 &= ~HPRT0_PWR; in _dwc2_hcd_suspend()
4337 dwc2_writel(hsotg, hprt0, HPRT0); in _dwc2_hcd_suspend()
5320 hr->hprt0 = dwc2_read_hprt0(hsotg); in dwc2_backup_host_registers()
5357 dwc2_writel(hsotg, hr->hprt0, HPRT0); in dwc2_restore_host_registers()
5374 u32 hprt0; in dwc2_host_enter_hibernation() local
5394 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_host_enter_hibernation()
5395 hprt0 |= HPRT0_SUSP; in dwc2_host_enter_hibernation()
5396 hprt0 &= ~HPRT0_ENA; in dwc2_host_enter_hibernation()
5397 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_enter_hibernation()
5484 u32 hprt0; in dwc2_host_exit_hibernation() local
5525 hprt0 = hr->hprt0; in dwc2_host_exit_hibernation()
5526 hprt0 |= HPRT0_PWR; in dwc2_host_exit_hibernation()
5527 hprt0 &= ~HPRT0_ENA; in dwc2_host_exit_hibernation()
5528 hprt0 &= ~HPRT0_SUSP; in dwc2_host_exit_hibernation()
5529 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
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()
5537 hprt0 |= HPRT0_RST; in dwc2_host_exit_hibernation()
5538 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5542 hprt0 &= ~HPRT0_RST; in dwc2_host_exit_hibernation()
5543 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5545 hprt0 |= HPRT0_RES; in dwc2_host_exit_hibernation()
5546 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5550 hprt0 &= ~HPRT0_RES; in dwc2_host_exit_hibernation()
5551 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5554 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_host_exit_hibernation()
5555 hprt0 |= HPRT0_CONNDET; in dwc2_host_exit_hibernation()
5556 hprt0 |= HPRT0_ENACHG; in dwc2_host_exit_hibernation()
5557 hprt0 &= ~HPRT0_ENA; in dwc2_host_exit_hibernation()
5558 dwc2_writel(hsotg, hprt0, HPRT0); in dwc2_host_exit_hibernation()
5560 hprt0 = dwc2_readl(hsotg, HPRT0); in dwc2_host_exit_hibernation()