Lines Matching refs:GRSTCTL
426 greset = dwc2_readl(hsotg, GRSTCTL); in dwc2_core_reset()
428 dwc2_writel(hsotg, greset, GRSTCTL); in dwc2_core_reset()
432 if (dwc2_hsotg_wait_bit_clear(hsotg, GRSTCTL, in dwc2_core_reset()
439 if (dwc2_hsotg_wait_bit_set(hsotg, GRSTCTL, in dwc2_core_reset()
445 greset = dwc2_readl(hsotg, GRSTCTL); in dwc2_core_reset()
448 dwc2_writel(hsotg, greset, GRSTCTL); in dwc2_core_reset()
468 if (dwc2_hsotg_wait_bit_set(hsotg, GRSTCTL, GRSTCTL_AHBIDLE, 10000)) { in dwc2_core_reset()
714 addr = hsotg->regs + GRSTCTL; in dwc2_dump_global_registers()
716 (unsigned long)addr, dwc2_readl(hsotg, GRSTCTL)); in dwc2_dump_global_registers()
794 if (dwc2_hsotg_wait_bit_set(hsotg, GRSTCTL, GRSTCTL_AHBIDLE, 10000)) in dwc2_flush_tx_fifo()
800 dwc2_writel(hsotg, greset, GRSTCTL); in dwc2_flush_tx_fifo()
802 if (dwc2_hsotg_wait_bit_clear(hsotg, GRSTCTL, GRSTCTL_TXFFLSH, 10000)) in dwc2_flush_tx_fifo()
822 if (dwc2_hsotg_wait_bit_set(hsotg, GRSTCTL, GRSTCTL_AHBIDLE, 10000)) in dwc2_flush_rx_fifo()
827 dwc2_writel(hsotg, greset, GRSTCTL); in dwc2_flush_rx_fifo()
830 if (dwc2_hsotg_wait_bit_clear(hsotg, GRSTCTL, GRSTCTL_RXFFLSH, 10000)) in dwc2_flush_rx_fifo()
1012 grstctl = dwc2_readl(hsotg, GRSTCTL); in dwc2_set_clock_switch_timer()
1015 dwc2_writel(hsotg, grstctl, GRSTCTL); in dwc2_set_clock_switch_timer()