Lines Matching refs:sys_write32

256 	sys_write32(USB_DWC2_GRSTCTL_RXFFLSH, grstctl_reg);  in dwc2_flush_rx_fifo()
269 sys_write32(grstctl, grstctl_reg); in dwc2_flush_tx_fifo()
306 sys_write32(dieptxf, (mem_addr_t)&base->dieptxf[f_idx]); in dwc2_set_txf()
462 sys_write32((is_periodic ? usb_dwc2_set_dieptsizn_mc(1 + addnl) : 0) | in dwc2_tx_fifo_write()
475 sys_write32((uint32_t)buf->data, in dwc2_tx_fifo_write()
504 sys_write32(diepctl, diepctl_reg); in dwc2_tx_fifo_write()
507 sys_write32(USB_DWC2_DIEPINT_INEPNAKEFF, diepint_reg); in dwc2_tx_fifo_write()
528 sys_write32(val, UDC_DWC2_EP_FIFO(base, ep_idx)); in dwc2_tx_fifo_write()
627 sys_write32(doeptsiz, doeptsiz_reg); in dwc2_prep_rx()
637 sys_write32((uint32_t)buf->data, in dwc2_prep_rx()
643 sys_write32(doepctl, doepctl_reg); in dwc2_prep_rx()
918 sys_write32(backup->glpmcfg, (mem_addr_t)&base->glpmcfg); in dwc2_restore_essential_registers()
919 sys_write32(backup->gi2cctl, (mem_addr_t)&base->gi2cctl); in dwc2_restore_essential_registers()
920 sys_write32(pcgcctl, (mem_addr_t)&base->pcgcctl); in dwc2_restore_essential_registers()
922 sys_write32(backup->gahbcfg | USB_DWC2_GAHBCFG_GLBINTRMASK, in dwc2_restore_essential_registers()
925 sys_write32(0xFFFFFFFFUL, (mem_addr_t)&base->gintsts); in dwc2_restore_essential_registers()
926 sys_write32(USB_DWC2_GINTSTS_RSTRDONEINT, (mem_addr_t)&base->gintmsk); in dwc2_restore_essential_registers()
928 sys_write32(backup->gusbcfg, (mem_addr_t)&base->gusbcfg); in dwc2_restore_essential_registers()
929 sys_write32(backup->dcfg, (mem_addr_t)&base->dcfg); in dwc2_restore_essential_registers()
932 sys_write32(backup->dcfg, (mem_addr_t)&base->dcfg); in dwc2_restore_essential_registers()
938 sys_write32(pcgcctl, (mem_addr_t)&base->pcgcctl); in dwc2_restore_essential_registers()
942 sys_write32(pcgcctl, (mem_addr_t)&base->pcgcctl); in dwc2_restore_essential_registers()
952 sys_write32(backup->gotgctl, (mem_addr_t)&base->gotgctl); in dwc2_restore_device_registers()
953 sys_write32(backup->gahbcfg, (mem_addr_t)&base->gahbcfg); in dwc2_restore_device_registers()
954 sys_write32(backup->gusbcfg, (mem_addr_t)&base->gusbcfg); in dwc2_restore_device_registers()
955 sys_write32(backup->gintmsk, (mem_addr_t)&base->gintmsk); in dwc2_restore_device_registers()
956 sys_write32(backup->grxfsiz, (mem_addr_t)&base->grxfsiz); in dwc2_restore_device_registers()
957 sys_write32(backup->gnptxfsiz, (mem_addr_t)&base->gnptxfsiz); in dwc2_restore_device_registers()
958 sys_write32(backup->gdfifocfg, (mem_addr_t)&base->gdfifocfg); in dwc2_restore_device_registers()
961 sys_write32(backup->dieptxf[i - 1], (mem_addr_t)&base->dieptxf[i - 1]); in dwc2_restore_device_registers()
965 sys_write32(backup->dctl, (mem_addr_t)&base->dctl); in dwc2_restore_device_registers()
968 sys_write32(backup->diepmsk, (mem_addr_t)&base->diepmsk); in dwc2_restore_device_registers()
969 sys_write32(backup->doepmsk, (mem_addr_t)&base->doepmsk); in dwc2_restore_device_registers()
970 sys_write32(backup->daintmsk, (mem_addr_t)&base->daintmsk); in dwc2_restore_device_registers()
976 sys_write32(backup->dieptsiz[i], (mem_addr_t)&base->in_ep[i].dieptsiz); in dwc2_restore_device_registers()
977 sys_write32(backup->diepdma[i], (mem_addr_t)&base->in_ep[i].diepdma); in dwc2_restore_device_registers()
978 sys_write32(backup->diepctl[i], (mem_addr_t)&base->in_ep[i].diepctl); in dwc2_restore_device_registers()
982 sys_write32(backup->doeptsiz[i], (mem_addr_t)&base->out_ep[i].doeptsiz); in dwc2_restore_device_registers()
983 sys_write32(backup->doepdma[i], (mem_addr_t)&base->out_ep[i].doepdma); in dwc2_restore_device_registers()
984 sys_write32(backup->doepctl[i], (mem_addr_t)&base->out_ep[i].doepctl); in dwc2_restore_device_registers()
1084 sys_write32(0xFFFFFFFFUL, (mem_addr_t)&base->gintsts); in dwc2_exit_hibernation()
1097 sys_write32(priv->backup.gusbcfg, (mem_addr_t)&base->gusbcfg); in dwc2_exit_hibernation()
1098 sys_write32(priv->backup.dcfg, (mem_addr_t)&base->dcfg); in dwc2_exit_hibernation()
1099 sys_write32(priv->backup.dctl, (mem_addr_t)&base->dctl); in dwc2_exit_hibernation()
1108 sys_write32(USB_DWC2_DCTL_RMTWKUPSIG | priv->backup.dctl, in dwc2_exit_hibernation()
1113 sys_write32(0xFFFFFFFFUL, (mem_addr_t)&base->gintsts); in dwc2_exit_hibernation()
1269 sys_write32(dxepctl0, dxepctl0_reg); in dwc2_ep_control_enable()
1341 sys_write32(dxepctl, dxepctl_reg); in udc_dwc2_ep_activate()
1399 sys_write32(dxepctl, dxepctl_reg); in udc_dwc2_ep_disable()
1432 sys_write32(dctl, dctl_reg); in udc_dwc2_ep_disable()
1449 sys_write32(dxepctl, dxepctl_reg); in udc_dwc2_ep_disable()
1456 sys_write32(USB_DWC2_DOEPINT_EPDISBLD | USB_DWC2_DOEPINT_XFERCOMPL, doepint_reg); in udc_dwc2_ep_disable()
1459 sys_write32(dctl, dctl_reg); in udc_dwc2_ep_disable()
1470 sys_write32(dxepctl, dxepctl_reg); in udc_dwc2_ep_disable()
1475 sys_write32(dxepctl, dxepctl_reg); in udc_dwc2_ep_disable()
1480 sys_write32(USB_DWC2_DIEPINT_EPDISBLD | USB_DWC2_DIEPINT_XFERCOMPL, diepint_reg); in udc_dwc2_ep_disable()
1524 sys_write32(dxepctl, dxepctl_reg); in udc_dwc2_ep_deactivate()
1564 sys_write32(dxepctl, dxepctl_reg); in udc_dwc2_ep_clear_halt()
1643 sys_write32(dcfg, dcfg_reg); in udc_dwc2_set_address()
1671 sys_write32(dctl, dctl_reg); in udc_dwc2_test_mode()
1727 sys_write32(USB_DWC2_GRSTCTL_CSFTRST, grstctl_reg); in dwc2_core_soft_reset()
1785 sys_write32(gusbcfg, gusbcfg_reg); in udc_dwc2_init_controller()
1860 sys_write32(gahbcfg, gahbcfg_reg); in udc_dwc2_init_controller()
1903 sys_write32(gusbcfg, gusbcfg_reg); in udc_dwc2_init_controller()
1904 sys_write32(dcfg, dcfg_reg); in udc_dwc2_init_controller()
1914 sys_write32(USB_DWC2_DEPCTL_SNAK, doepctl_reg); in udc_dwc2_init_controller()
1956 sys_write32(usb_dwc2_set_grxfsiz(priv->rxfifo_depth), grxfsiz_reg); in udc_dwc2_init_controller()
1963 sys_write32(gnptxfsiz, (mem_addr_t)&base->gnptxfsiz); in udc_dwc2_init_controller()
1985 sys_write32(USB_DWC2_GINTSTS_OEPINT | USB_DWC2_GINTSTS_IEPINT | in udc_dwc2_init_controller()
2235 sys_write32(USB_DWC2_DEPCTL_SNAK, doepctl_reg); in dwc2_on_bus_reset()
2244 sys_write32(doepmsk, (mem_addr_t)&base->doepmsk); in dwc2_on_bus_reset()
2389 sys_write32(status, diepint_reg); in dwc2_handle_iepint()
2402 sys_write32(USB_DWC2_GINTSTS_IEPINT, (mem_addr_t)&base->gintsts); in dwc2_handle_iepint()
2500 sys_write32(status, doepint_reg); in dwc2_handle_oepint()
2511 sys_write32(USB_DWC2_DOEPINT_STUPPKTRCVD, doepint_reg); in dwc2_handle_oepint()
2544 sys_write32(USB_DWC2_GINTSTS_OEPINT, (mem_addr_t)&base->gintsts); in dwc2_handle_oepint()
2598 sys_write32(USB_DWC2_GINTSTS_INCOMPISOIN, gintsts_reg); in dwc2_handle_incompisoin()
2649 sys_write32(USB_DWC2_GINTSTS_INCOMPISOOUT, gintsts_reg); in dwc2_handle_incompisoout()
2666 sys_write32(gpwrdn, (mem_addr_t)&base->gpwrdn); in udc_dwc2_isr_handler()
2699 sys_write32(USB_DWC2_GINTSTS_SOF, gintsts_reg); in udc_dwc2_isr_handler()
2708 sys_write32(USB_DWC2_GINTSTS_USBRST, gintsts_reg); in udc_dwc2_isr_handler()
2717 sys_write32(USB_DWC2_GINTSTS_ENUMDONE, gintsts_reg); in udc_dwc2_isr_handler()
2724 sys_write32(USB_DWC2_GINTSTS_WKUPINT, gintsts_reg); in udc_dwc2_isr_handler()
2756 sys_write32(USB_DWC2_GINTSTS_USBSUSP, gintsts_reg); in udc_dwc2_isr_handler()