Lines Matching refs:dwc2_writel
55 dwc2_writel(dwc2_readl(ptr) | val, ptr); in __orr32()
60 dwc2_writel(dwc2_readl(ptr) & ~val, ptr); in __bic32()
113 dwc2_writel(new_gsintmsk, hsotg->regs + GINTMSK); in dwc2_hsotg_en_gsint()
130 dwc2_writel(new_gsintmsk, hsotg->regs + GINTMSK); in dwc2_hsotg_disable_gsint()
160 dwc2_writel(daint, hsotg->regs + DAINTMSK); in dwc2_hsotg_ctrl_epint()
180 dwc2_writel(hsotg->g_rx_fifo_sz, hsotg->regs + GRXFSIZ); in dwc2_hsotg_init_fifo()
181 dwc2_writel((hsotg->g_rx_fifo_sz << FIFOSIZE_STARTADDR_SHIFT) | in dwc2_hsotg_init_fifo()
209 dwc2_writel(val, hsotg->regs + DPTXFSIZN(ep)); in dwc2_hsotg_init_fifo()
217 dwc2_writel(GRSTCTL_TXFNUM(0x10) | GRSTCTL_TXFFLSH | in dwc2_hsotg_init_fifo()
617 dwc2_writel(epsize, hsotg->regs + epsize_reg); in dwc2_hsotg_start_req()
628 dwc2_writel(ureq->dma, hsotg->regs + dma_reg); in dwc2_hsotg_start_req()
644 dwc2_writel(ctrl, hsotg->regs + epctrl_reg); in dwc2_hsotg_start_req()
666 dwc2_writel(DIEPMSK_INTKNTXFEMPMSK, in dwc2_hsotg_start_req()
914 dwc2_writel(dctl, hsotg->regs + DCTL); in dwc2_hsotg_set_test_mode()
1176 dwc2_writel(ctrl, hsotg->regs + reg); in dwc2_hsotg_stall_ep0()
1229 dwc2_writel(dcfg, hsotg->regs + DCFG); in dwc2_hsotg_process_control()
1347 dwc2_writel(DXEPTSIZ_MC(1) | DXEPTSIZ_PKTCNT(1) | in dwc2_hsotg_program_zlp()
1355 dwc2_writel(ctrl, hsotg->regs + epctl_reg); in dwc2_hsotg_program_zlp()
1522 dwc2_writel(ctrl, hsotg->regs + epctl_reg); in dwc2_hsotg_change_ep_iso_parity()
1774 dwc2_writel(reg, regs + DIEPCTL(ep)); in dwc2_hsotg_set_ep_maxpacket()
1779 dwc2_writel(reg, regs + DOEPCTL(ep)); in dwc2_hsotg_set_ep_maxpacket()
1798 dwc2_writel(GRSTCTL_TXFNUM(idx) | GRSTCTL_TXFFLSH, in dwc2_hsotg_txfifo_flush()
1961 dwc2_writel(ints, hsotg->regs + epint_reg); in dwc2_hsotg_epint()
2018 dwc2_writel(dctl, hsotg->regs + DCTL); in dwc2_hsotg_epint()
2260 dwc2_writel(GRSTCTL_CSFTRST, hsotg->regs + GRSTCTL); in dwc2_hsotg_corereset()
2320 dwc2_writel(hsotg->phyif | GUSBCFG_TOUTCAL(7) | in dwc2_hsotg_core_init_disconnected()
2328 dwc2_writel(DCFG_EPMISCNT(1) | DCFG_DEVSPD_HS, hsotg->regs + DCFG); in dwc2_hsotg_core_init_disconnected()
2331 dwc2_writel(0xffffffff, hsotg->regs + GOTGINT); in dwc2_hsotg_core_init_disconnected()
2334 dwc2_writel(0xffffffff, hsotg->regs + GINTSTS); in dwc2_hsotg_core_init_disconnected()
2345 dwc2_writel(intmsk, hsotg->regs + GINTMSK); in dwc2_hsotg_core_init_disconnected()
2348 dwc2_writel(GAHBCFG_GLBL_INTR_EN | GAHBCFG_DMA_EN | in dwc2_hsotg_core_init_disconnected()
2352 dwc2_writel(((hsotg->dedicated_fifos) ? in dwc2_hsotg_core_init_disconnected()
2363 dwc2_writel(((hsotg->dedicated_fifos && !using_dma(hsotg)) ? in dwc2_hsotg_core_init_disconnected()
2374 dwc2_writel((using_dma(hsotg) ? (DIEPMSK_XFERCOMPLMSK | in dwc2_hsotg_core_init_disconnected()
2380 dwc2_writel(0, hsotg->regs + DAINTMSK); in dwc2_hsotg_core_init_disconnected()
2415 dwc2_writel(DXEPTSIZ_MC(1) | DXEPTSIZ_PKTCNT(1) | in dwc2_hsotg_core_init_disconnected()
2418 dwc2_writel(dwc2_hsotg_ep0_mps(hsotg->eps_out[0]->ep.maxpacket) | in dwc2_hsotg_core_init_disconnected()
2424 dwc2_writel(dwc2_hsotg_ep0_mps(hsotg->eps_out[0]->ep.maxpacket) | in dwc2_hsotg_core_init_disconnected()
2482 dwc2_writel(GINTSTS_RESETDET, hsotg->regs + GINTSTS); in dwc2_hsotg_irq()
2500 dwc2_writel(GINTSTS_USBRST, hsotg->regs + GINTSTS); in dwc2_hsotg_irq()
2510 dwc2_writel(GINTSTS_ENUMDONE, hsotg->regs + GINTSTS); in dwc2_hsotg_irq()
2576 dwc2_writel(GINTSTS_ERLYSUSP, hsotg->regs + GINTSTS); in dwc2_hsotg_irq()
2588 dwc2_writel(DCTL_CGOUTNAK, hsotg->regs + DCTL); in dwc2_hsotg_irq()
2596 dwc2_writel(DCTL_CGNPINNAK, hsotg->regs + DCTL); in dwc2_hsotg_irq()
2615 dwc2_writel(GINTSTS_INCOMPL_SOIN, hsotg->regs + GINTSTS); in dwc2_hsotg_irq()
2632 dwc2_writel(GINTSTS_INCOMPL_SOOUT, hsotg->regs + GINTSTS); in dwc2_hsotg_irq()
2802 dwc2_writel(epctrl, hsotg->regs + epctrl_reg); in dwc2_hsotg_ep_enable()
2849 dwc2_writel(ctrl, hsotg->regs + epctrl_reg); in dwc2_hsotg_ep_disable()
2914 dwc2_writel(GINTSTS_GINNAKEFF, hsotg->regs + GINTSTS); in dwc2_hsotg_ep_stop_xfr()
2935 dwc2_writel(GRSTCTL_TXFNUM(hs_ep->fifo_index) | in dwc2_hsotg_ep_stop_xfr()
3022 dwc2_writel(epctl, hs->regs + epreg); in dwc2_hsotg_ep_sethalt()
3037 dwc2_writel(epctl, hs->regs + epreg); in dwc2_hsotg_ep_sethalt()
3084 dwc2_writel(DIEPMSK_TIMEOUTMSK | DIEPMSK_AHBERRMSK | in dwc2_hsotg_init()
3088 dwc2_writel(DOEPMSK_SETUPMSK | DOEPMSK_AHBERRMSK | in dwc2_hsotg_init()
3092 dwc2_writel(0, hsotg->regs + DAINTMSK); in dwc2_hsotg_init()
3107 dwc2_writel(hsotg->phyif | GUSBCFG_TOUTCAL(7) | in dwc2_hsotg_init()
3386 dwc2_writel(next, hsotg->regs + DIEPCTL(epnum)); in dwc2_hsotg_initep()
3388 dwc2_writel(next, hsotg->regs + DOEPCTL(epnum)); in dwc2_hsotg_initep()