Lines Matching refs:GRSTCTL
421 greset = dwc2_readl(hsotg, GRSTCTL); in dwc2_core_reset()
423 dwc2_writel(hsotg, greset, GRSTCTL); in dwc2_core_reset()
427 if (dwc2_hsotg_wait_bit_clear(hsotg, GRSTCTL, in dwc2_core_reset()
434 if (dwc2_hsotg_wait_bit_set(hsotg, GRSTCTL, in dwc2_core_reset()
440 greset = dwc2_readl(hsotg, GRSTCTL); in dwc2_core_reset()
443 dwc2_writel(hsotg, greset, GRSTCTL); in dwc2_core_reset()
463 if (dwc2_hsotg_wait_bit_set(hsotg, GRSTCTL, GRSTCTL_AHBIDLE, 10000)) { in dwc2_core_reset()
709 addr = hsotg->regs + GRSTCTL; in dwc2_dump_global_registers()
711 (unsigned long)addr, dwc2_readl(hsotg, GRSTCTL)); in dwc2_dump_global_registers()
789 if (dwc2_hsotg_wait_bit_set(hsotg, GRSTCTL, GRSTCTL_AHBIDLE, 10000)) in dwc2_flush_tx_fifo()
795 dwc2_writel(hsotg, greset, GRSTCTL); in dwc2_flush_tx_fifo()
797 if (dwc2_hsotg_wait_bit_clear(hsotg, GRSTCTL, GRSTCTL_TXFFLSH, 10000)) in dwc2_flush_tx_fifo()
817 if (dwc2_hsotg_wait_bit_set(hsotg, GRSTCTL, GRSTCTL_AHBIDLE, 10000)) in dwc2_flush_rx_fifo()
822 dwc2_writel(hsotg, greset, GRSTCTL); in dwc2_flush_rx_fifo()
825 if (dwc2_hsotg_wait_bit_clear(hsotg, GRSTCTL, GRSTCTL_RXFFLSH, 10000)) in dwc2_flush_rx_fifo()