Lines Matching refs:mbase
156 void __iomem *mbase = mtu->mac_base; in mtu3_intr_status_clear() local
159 mtu3_writel(mbase, U3D_EPISR, ~0x0); in mtu3_intr_status_clear()
161 mtu3_writel(mbase, U3D_COMMON_USB_INTR, ~0x0); in mtu3_intr_status_clear()
163 mtu3_writel(mbase, U3D_LTSSM_INTR, ~0x0); in mtu3_intr_status_clear()
165 mtu3_writel(mbase, U3D_DEV_LINK_INTR, ~0x0); in mtu3_intr_status_clear()
167 mtu3_writel(mbase, U3D_QISAR0, ~0x0); in mtu3_intr_status_clear()
183 void __iomem *mbase = mtu->mac_base; in mtu3_intr_enable() local
188 mtu3_writel(mbase, U3D_LV1IESR, value); in mtu3_intr_enable()
192 mtu3_writel(mbase, U3D_COMMON_USB_INTR_ENABLE, value); in mtu3_intr_enable()
198 mtu3_writel(mbase, U3D_LTSSM_INTR_ENABLE, value); in mtu3_intr_enable()
204 mtu3_writel(mbase, U3D_QIESR1, value); in mtu3_intr_enable()
207 mtu3_writel(mbase, U3D_DEV_LINK_INTR_ENABLE, SSUSB_DEV_SPEED_CHG_INTR); in mtu3_intr_enable()
212 void __iomem *mbase = mtu->mac_base; in mtu3_set_speed() local
220 mtu3_clrbits(mbase, U3D_USB3_CONFIG, USB3_EN); in mtu3_set_speed()
222 mtu3_clrbits(mbase, U3D_POWER_MANAGEMENT, HS_ENABLE); in mtu3_set_speed()
225 mtu3_clrbits(mbase, U3D_USB3_CONFIG, USB3_EN); in mtu3_set_speed()
227 mtu3_setbits(mbase, U3D_POWER_MANAGEMENT, HS_ENABLE); in mtu3_set_speed()
250 void __iomem *mbase = mtu->mac_base; in mtu3_csr_init() local
254 mtu3_clrbits(mbase, U3D_LINK_POWER_CONTROL, in mtu3_csr_init()
257 mtu3_setbits(mbase, U3D_LINK_POWER_CONTROL, in mtu3_csr_init()
260 mtu3_clrbits(mbase, U3D_LTSSM_CTRL, SOFT_U3_EXIT_EN); in mtu3_csr_init()
262 mtu3_setbits(mbase, U3D_USB2_TEST_MODE, U2U3_AUTO_SWITCH); in mtu3_csr_init()
264 mtu3_setbits(mbase, U3D_U3U2_SWITCH_CTRL, SOFTCON_CLR_AUTO_EN); in mtu3_csr_init()
268 mtu3_clrbits(mbase, U3D_LINK_RESET_INFO, WTCHRP_MSK); in mtu3_csr_init()
270 mtu3_setbits(mbase, U3D_POWER_MANAGEMENT, LPM_HRWE); in mtu3_csr_init()
287 void __iomem *mbase = mtu->mac_base; in mtu3_ep_stall_set() local
292 csr = mtu3_readl(mbase, MU3D_EP_TXCR0(epnum)) & TX_W1C_BITS; in mtu3_ep_stall_set()
297 mtu3_writel(mbase, MU3D_EP_TXCR0(epnum), csr); in mtu3_ep_stall_set()
299 csr = mtu3_readl(mbase, MU3D_EP_RXCR0(epnum)) & RX_W1C_BITS; in mtu3_ep_stall_set()
304 mtu3_writel(mbase, MU3D_EP_RXCR0(epnum), csr); in mtu3_ep_stall_set()
331 void __iomem *mbase = mtu->mac_base; in mtu3_start() local
334 mtu3_readl(mbase, U3D_DEVICE_CONTROL)); in mtu3_start()
366 void __iomem *mbase = mtu->mac_base; in mtu3_config_ep() local
408 mtu3_setbits(mbase, U3D_QIESR0, QMU_TX_DONE_INT(epnum)); in mtu3_config_ep()
410 mtu3_writel(mbase, MU3D_EP_TXCR0(epnum), csr0); in mtu3_config_ep()
411 mtu3_writel(mbase, MU3D_EP_TXCR1(epnum), csr1); in mtu3_config_ep()
412 mtu3_writel(mbase, MU3D_EP_TXCR2(epnum), csr2); in mtu3_config_ep()
415 epnum, mtu3_readl(mbase, MU3D_EP_TXCR0(epnum)), in mtu3_config_ep()
416 mtu3_readl(mbase, MU3D_EP_TXCR1(epnum)), in mtu3_config_ep()
417 mtu3_readl(mbase, MU3D_EP_TXCR2(epnum))); in mtu3_config_ep()
444 mtu3_setbits(mbase, U3D_QIESR0, QMU_RX_DONE_INT(epnum)); in mtu3_config_ep()
446 mtu3_writel(mbase, MU3D_EP_RXCR0(epnum), csr0); in mtu3_config_ep()
447 mtu3_writel(mbase, MU3D_EP_RXCR1(epnum), csr1); in mtu3_config_ep()
448 mtu3_writel(mbase, MU3D_EP_RXCR2(epnum), csr2); in mtu3_config_ep()
451 epnum, mtu3_readl(mbase, MU3D_EP_RXCR0(epnum)), in mtu3_config_ep()
452 mtu3_readl(mbase, MU3D_EP_RXCR1(epnum)), in mtu3_config_ep()
453 mtu3_readl(mbase, MU3D_EP_RXCR2(epnum))); in mtu3_config_ep()
467 void __iomem *mbase = mtu->mac_base; in mtu3_deconfig_ep() local
471 mtu3_writel(mbase, MU3D_EP_TXCR0(epnum), 0); in mtu3_deconfig_ep()
472 mtu3_writel(mbase, MU3D_EP_TXCR1(epnum), 0); in mtu3_deconfig_ep()
473 mtu3_writel(mbase, MU3D_EP_TXCR2(epnum), 0); in mtu3_deconfig_ep()
474 mtu3_setbits(mbase, U3D_QIECR0, QMU_TX_DONE_INT(epnum)); in mtu3_deconfig_ep()
476 mtu3_writel(mbase, MU3D_EP_RXCR0(epnum), 0); in mtu3_deconfig_ep()
477 mtu3_writel(mbase, MU3D_EP_RXCR1(epnum), 0); in mtu3_deconfig_ep()
478 mtu3_writel(mbase, MU3D_EP_RXCR2(epnum), 0); in mtu3_deconfig_ep()
479 mtu3_setbits(mbase, U3D_QIECR0, QMU_RX_DONE_INT(epnum)); in mtu3_deconfig_ep()
558 void __iomem *mbase = mtu->mac_base; in mtu3_mem_alloc() local
565 cap_epinfo = mtu3_readl(mbase, U3D_CAP_EPINFO); in mtu3_mem_alloc()
570 mtu3_readl(mbase, U3D_CAP_EPNTXFFSZ), in_ep_num, in mtu3_mem_alloc()
571 mtu3_readl(mbase, U3D_CAP_EPNRXFFSZ), out_ep_num); in mtu3_mem_alloc()
612 void __iomem *mbase = mtu->mac_base; in mtu3_regs_init() local
620 mtu3_writel(mbase, U3D_DEVICE_CONF, 0); in mtu3_regs_init()
622 mtu3_clrbits(mbase, U3D_MISC_CTRL, VBUS_FRC_EN | VBUS_ON); in mtu3_regs_init()
625 mtu3_writel(mbase, U3D_QFCR, ~0x0); in mtu3_regs_init()
630 void __iomem *mbase = mtu->mac_base; in mtu3_link_isr() local
636 link = mtu3_readl(mbase, U3D_DEV_LINK_INTR); in mtu3_link_isr()
637 link &= mtu3_readl(mbase, U3D_DEV_LINK_INTR_ENABLE); in mtu3_link_isr()
638 mtu3_writel(mbase, U3D_DEV_LINK_INTR, link); /* W1C */ in mtu3_link_isr()
644 speed = SSUSB_DEV_SPEED(mtu3_readl(mbase, U3D_DEVICE_CONF)); in mtu3_link_isr()
650 mtu3_writel(mbase, U3D_USB20_LPM_PARAMETER, LPM_BESLDCK(0xf) in mtu3_link_isr()
652 mtu3_setbits(mbase, U3D_POWER_MANAGEMENT, in mtu3_link_isr()
658 mtu3_writel(mbase, U3D_USB20_LPM_PARAMETER, LPM_BESLDCK(0xf) in mtu3_link_isr()
660 mtu3_setbits(mbase, U3D_POWER_MANAGEMENT, in mtu3_link_isr()
693 void __iomem *mbase = mtu->mac_base; in mtu3_u3_ltssm_isr() local
696 ltssm = mtu3_readl(mbase, U3D_LTSSM_INTR); in mtu3_u3_ltssm_isr()
697 ltssm &= mtu3_readl(mbase, U3D_LTSSM_INTR_ENABLE); in mtu3_u3_ltssm_isr()
698 mtu3_writel(mbase, U3D_LTSSM_INTR, ltssm); /* W1C */ in mtu3_u3_ltssm_isr()
724 void __iomem *mbase = mtu->mac_base; in mtu3_u2_common_isr() local
727 u2comm = mtu3_readl(mbase, U3D_COMMON_USB_INTR); in mtu3_u2_common_isr()
728 u2comm &= mtu3_readl(mbase, U3D_COMMON_USB_INTR_ENABLE); in mtu3_u2_common_isr()
729 mtu3_writel(mbase, U3D_COMMON_USB_INTR, u2comm); /* W1C */ in mtu3_u2_common_isr()