Lines Matching refs:dwc3_reg
37 struct dwc3 *dwc3_reg; member
70 static int keystone_xhci_core_init(struct dwc3 *dwc3_reg) in keystone_xhci_core_init() argument
74 ret = dwc3_core_init(dwc3_reg); in keystone_xhci_core_init()
81 dwc3_set_mode(dwc3_reg, DWC3_GCTL_PRTCAP_HOST); in keystone_xhci_core_init()
128 keystone.dwc3_reg = (struct dwc3 *)(CONFIG_USB_HOST_XHCI_BASE + in xhci_hcd_init()
131 keystone_xhci_core_init(keystone.dwc3_reg); in xhci_hcd_init()
159 struct dwc3 *dwc3_reg = keystone.dwc3_reg; in keystone_xhci_phy_suspend() local
166 writel(val, &dwc3_reg->g_ctl); in keystone_xhci_phy_suspend()
169 val = readl(&dwc3_reg->g_usb2phycfg[0]); in keystone_xhci_phy_suspend()
173 writel(val, &dwc3_reg->g_usb2phycfg[0]); in keystone_xhci_phy_suspend()
176 val = readl(&dwc3_reg->g_usb3pipectl[0]); in keystone_xhci_phy_suspend()
183 writel(val, &dwc3_reg->g_usb3pipectl[0]); in keystone_xhci_phy_suspend()
193 writel(0x00020001, &dwc3_reg->d_cfg); in keystone_xhci_phy_suspend()
195 writel((u32)&event_q, &dwc3_reg->g_evnt_buf[0].g_evntadrlo); in keystone_xhci_phy_suspend()
196 writel(0, &dwc3_reg->g_evnt_buf[0].g_evntadrhi); in keystone_xhci_phy_suspend()
197 writel(0x4, &dwc3_reg->g_evnt_buf[0].g_evntsiz); in keystone_xhci_phy_suspend()
199 writel(DWC3_DCTL_RUN_STOP, &dwc3_reg->d_ctl); in keystone_xhci_phy_suspend()