Lines Matching refs:dwc2_writel
111 dwc2_writel(hr->hcfg, hsotg->regs + HCFG); in dwc2_restore_host_registers()
112 dwc2_writel(hr->haintmsk, hsotg->regs + HAINTMSK); in dwc2_restore_host_registers()
115 dwc2_writel(hr->hcintmsk[i], hsotg->regs + HCINTMSK(i)); in dwc2_restore_host_registers()
117 dwc2_writel(hr->hprt0, hsotg->regs + HPRT0); in dwc2_restore_host_registers()
118 dwc2_writel(hr->hfir, hsotg->regs + HFIR); in dwc2_restore_host_registers()
209 dwc2_writel(dr->dcfg, hsotg->regs + DCFG); in dwc2_restore_device_registers()
210 dwc2_writel(dr->dctl, hsotg->regs + DCTL); in dwc2_restore_device_registers()
211 dwc2_writel(dr->daintmsk, hsotg->regs + DAINTMSK); in dwc2_restore_device_registers()
212 dwc2_writel(dr->diepmsk, hsotg->regs + DIEPMSK); in dwc2_restore_device_registers()
213 dwc2_writel(dr->doepmsk, hsotg->regs + DOEPMSK); in dwc2_restore_device_registers()
217 dwc2_writel(dr->diepctl[i], hsotg->regs + DIEPCTL(i)); in dwc2_restore_device_registers()
218 dwc2_writel(dr->dieptsiz[i], hsotg->regs + DIEPTSIZ(i)); in dwc2_restore_device_registers()
219 dwc2_writel(dr->diepdma[i], hsotg->regs + DIEPDMA(i)); in dwc2_restore_device_registers()
222 dwc2_writel(dr->doepctl[i], hsotg->regs + DOEPCTL(i)); in dwc2_restore_device_registers()
223 dwc2_writel(dr->doeptsiz[i], hsotg->regs + DOEPTSIZ(i)); in dwc2_restore_device_registers()
224 dwc2_writel(dr->doepdma[i], hsotg->regs + DOEPDMA(i)); in dwc2_restore_device_registers()
230 dwc2_writel(dctl, hsotg->regs + DCTL); in dwc2_restore_device_registers()
295 dwc2_writel(0xffffffff, hsotg->regs + GINTSTS); in dwc2_restore_global_registers()
296 dwc2_writel(gr->gotgctl, hsotg->regs + GOTGCTL); in dwc2_restore_global_registers()
297 dwc2_writel(gr->gintmsk, hsotg->regs + GINTMSK); in dwc2_restore_global_registers()
298 dwc2_writel(gr->gusbcfg, hsotg->regs + GUSBCFG); in dwc2_restore_global_registers()
299 dwc2_writel(gr->gahbcfg, hsotg->regs + GAHBCFG); in dwc2_restore_global_registers()
300 dwc2_writel(gr->grxfsiz, hsotg->regs + GRXFSIZ); in dwc2_restore_global_registers()
301 dwc2_writel(gr->gnptxfsiz, hsotg->regs + GNPTXFSIZ); in dwc2_restore_global_registers()
302 dwc2_writel(gr->hptxfsiz, hsotg->regs + HPTXFSIZ); in dwc2_restore_global_registers()
303 dwc2_writel(gr->gdfifocfg, hsotg->regs + GDFIFOCFG); in dwc2_restore_global_registers()
305 dwc2_writel(gr->dtxfsiz[i], hsotg->regs + DPTXFSIZN(i)); in dwc2_restore_global_registers()
326 dwc2_writel(pcgcctl, hsotg->regs + PCGCTL); in dwc2_exit_hibernation()
330 dwc2_writel(pcgcctl, hsotg->regs + PCGCTL); in dwc2_exit_hibernation()
334 dwc2_writel(pcgcctl, hsotg->regs + PCGCTL); in dwc2_exit_hibernation()
405 dwc2_writel(0xffffffff, hsotg->regs + GINTSTS); in dwc2_enter_hibernation()
411 dwc2_writel(pcgcctl, hsotg->regs + PCGCTL); in dwc2_enter_hibernation()
415 dwc2_writel(pcgcctl, hsotg->regs + PCGCTL); in dwc2_enter_hibernation()
419 dwc2_writel(pcgcctl, hsotg->regs + PCGCTL); in dwc2_enter_hibernation()
435 dwc2_writel(0xffffffff, hsotg->regs + GOTGINT); in dwc2_enable_common_interrupts()
438 dwc2_writel(0xffffffff, hsotg->regs + GINTSTS); in dwc2_enable_common_interrupts()
451 dwc2_writel(intmsk, hsotg->regs + GINTMSK); in dwc2_enable_common_interrupts()
477 dwc2_writel(hcfg, hsotg->regs + HCFG); in dwc2_init_fs_ls_pclk_sel()
507 dwc2_writel(greset, hsotg->regs + GRSTCTL); in dwc2_core_reset()
523 dwc2_writel(gusbcfg, hsotg->regs + GUSBCFG); in dwc2_core_reset()
528 dwc2_writel(gusbcfg, hsotg->regs + GUSBCFG); in dwc2_core_reset()
533 dwc2_writel(gusbcfg, hsotg->regs + GUSBCFG); in dwc2_core_reset()
558 dwc2_writel(usbcfg, hsotg->regs + GUSBCFG); in dwc2_fs_phy_init()
583 dwc2_writel(usbcfg, hsotg->regs + GUSBCFG); in dwc2_fs_phy_init()
590 dwc2_writel(i2cctl, hsotg->regs + GI2CCTL); in dwc2_fs_phy_init()
592 dwc2_writel(i2cctl, hsotg->regs + GI2CCTL); in dwc2_fs_phy_init()
634 dwc2_writel(usbcfg, hsotg->regs + GUSBCFG); in dwc2_hs_phy_init()
672 dwc2_writel(usbcfg, hsotg->regs + GUSBCFG); in dwc2_phy_init()
677 dwc2_writel(usbcfg, hsotg->regs + GUSBCFG); in dwc2_phy_init()
724 dwc2_writel(ahbcfg, hsotg->regs + GAHBCFG); in dwc2_gahbcfg_init()
761 dwc2_writel(usbcfg, hsotg->regs + GUSBCFG); in dwc2_gusbcfg_init()
792 dwc2_writel(usbcfg, hsotg->regs + GUSBCFG); in dwc2_core_init()
822 dwc2_writel(otgctl, hsotg->regs + GOTGCTL); in dwc2_core_init()
858 dwc2_writel(0, hsotg->regs + GINTMSK); in dwc2_enable_host_interrupts()
859 dwc2_writel(0, hsotg->regs + HAINTMSK); in dwc2_enable_host_interrupts()
867 dwc2_writel(intmsk, hsotg->regs + GINTMSK); in dwc2_enable_host_interrupts()
882 dwc2_writel(intmsk, hsotg->regs + GINTMSK); in dwc2_disable_host_interrupts()
967 dwc2_writel(grxfsiz, hsotg->regs + GRXFSIZ); in dwc2_config_fifos()
978 dwc2_writel(nptxfsiz, hsotg->regs + GNPTXFSIZ); in dwc2_config_fifos()
990 dwc2_writel(hptxfsiz, hsotg->regs + HPTXFSIZ); in dwc2_config_fifos()
1007 dwc2_writel(dfifocfg, hsotg->regs + GDFIFOCFG); in dwc2_config_fifos()
1028 dwc2_writel(0, hsotg->regs + PCGCTL); in dwc2_core_host_init()
1035 dwc2_writel(hcfg, hsotg->regs + HCFG); in dwc2_core_host_init()
1046 dwc2_writel(hfir, hsotg->regs + HFIR); in dwc2_core_host_init()
1064 dwc2_writel(hcfg, hsotg->regs + HCFG); in dwc2_core_host_init()
1075 dwc2_writel(otgctl, hsotg->regs + GOTGCTL); in dwc2_core_host_init()
1084 dwc2_writel(otgctl, hsotg->regs + GOTGCTL); in dwc2_core_host_init()
1097 dwc2_writel(hcchar, hsotg->regs + HCCHAR(i)); in dwc2_core_host_init()
1107 dwc2_writel(hcchar, hsotg->regs + HCCHAR(i)); in dwc2_core_host_init()
1132 dwc2_writel(hprt0, hsotg->regs + HPRT0); in dwc2_core_host_init()
1212 dwc2_writel(hcintmsk, hsotg->regs + HCINTMSK(chan->hc_num)); in dwc2_hc_enable_slave_ints()
1249 dwc2_writel(hcintmsk, hsotg->regs + HCINTMSK(chan->hc_num)); in dwc2_hc_enable_dma_ints()
1272 dwc2_writel(intmsk, hsotg->regs + HAINTMSK); in dwc2_hc_enable_ints()
1279 dwc2_writel(intmsk, hsotg->regs + GINTMSK); in dwc2_hc_enable_ints()
1308 dwc2_writel(hcintmsk, hsotg->regs + HCINT(hc_num)); in dwc2_hc_init()
1325 dwc2_writel(hcchar, hsotg->regs + HCCHAR(hc_num)); in dwc2_hc_init()
1379 dwc2_writel(hcsplt, hsotg->regs + HCSPLT(hc_num)); in dwc2_hc_init()
1431 dwc2_writel(hcintmsk, hsotg->regs + HCINTMSK(chan->hc_num)); in dwc2_hc_halt()
1438 dwc2_writel(~hcintmsk, hsotg->regs + HCINT(chan->hc_num)); in dwc2_hc_halt()
1519 dwc2_writel(hcchar, hsotg->regs + HCCHAR(chan->hc_num)); in dwc2_hc_halt()
1566 dwc2_writel(0, hsotg->regs + HCINTMSK(chan->hc_num)); in dwc2_hc_cleanup()
1569 dwc2_writel(hcintmsk, hsotg->regs + HCINT(chan->hc_num)); in dwc2_hc_cleanup()
1655 dwc2_writel(*data_buf, data_fifo); in dwc2_hc_write_packet()
1661 dwc2_writel(data, data_fifo); in dwc2_hc_write_packet()
1814 dwc2_writel(hctsiz, hsotg->regs + HCTSIZ(chan->hc_num)); in dwc2_hc_start_transfer()
1842 dwc2_writel((u32)dma_addr, hsotg->regs + HCDMA(chan->hc_num)); in dwc2_hc_start_transfer()
1853 dwc2_writel(hcsplt, hsotg->regs + HCSPLT(chan->hc_num)); in dwc2_hc_start_transfer()
1876 dwc2_writel(hcchar, hsotg->regs + HCCHAR(chan->hc_num)); in dwc2_hc_start_transfer()
1935 dwc2_writel(hctsiz, hsotg->regs + HCTSIZ(chan->hc_num)); in dwc2_hc_start_transfer_ddma()
1941 dwc2_writel(hc_dma, hsotg->regs + HCDMA(chan->hc_num)); in dwc2_hc_start_transfer_ddma()
1965 dwc2_writel(hcchar, hsotg->regs + HCCHAR(chan->hc_num)); in dwc2_hc_start_transfer_ddma()
2030 dwc2_writel(hcchar, hsotg->regs + HCCHAR(chan->hc_num)); in dwc2_hc_continue_transfer()
2077 dwc2_writel(hctsiz, hsotg->regs + HCTSIZ(chan->hc_num)); in dwc2_hc_do_ping()
2082 dwc2_writel(hcchar, hsotg->regs + HCCHAR(chan->hc_num)); in dwc2_hc_do_ping()
2341 dwc2_writel(greset, hsotg->regs + GRSTCTL); in dwc2_flush_tx_fifo()
2372 dwc2_writel(greset, hsotg->regs + GRSTCTL); in dwc2_flush_rx_fifo()
3100 dwc2_writel(gusbcfg, hsotg->regs + GUSBCFG); in dwc2_get_hwparams()
3109 dwc2_writel(gusbcfg, hsotg->regs + GUSBCFG); in dwc2_get_hwparams()
3261 dwc2_writel(ahbcfg, hsotg->regs + GAHBCFG); in dwc2_enable_global_interrupts()
3275 dwc2_writel(ahbcfg, hsotg->regs + GAHBCFG); in dwc2_disable_global_interrupts()