Lines Matching refs:epnum

301 	u32 rst_bit = EP_RST(mep->is_in, mep->epnum);  in mtu3_ep_reset()
312 u8 epnum = mep->epnum; in mtu3_ep_stall_set() local
316 csr = mtu3_readl(mbase, MU3D_EP_TXCR0(epnum)) & TX_W1C_BITS; in mtu3_ep_stall_set()
321 mtu3_writel(mbase, MU3D_EP_TXCR0(epnum), csr); in mtu3_ep_stall_set()
323 csr = mtu3_readl(mbase, MU3D_EP_RXCR0(epnum)) & RX_W1C_BITS; in mtu3_ep_stall_set()
328 mtu3_writel(mbase, MU3D_EP_RXCR0(epnum), csr); in mtu3_ep_stall_set()
409 int epnum = mep->epnum; in mtu3_config_ep() local
449 mtu3_setbits(mbase, U3D_QIESR0, QMU_TX_DONE_INT(epnum)); in mtu3_config_ep()
451 mtu3_writel(mbase, MU3D_EP_TXCR0(epnum), csr0); in mtu3_config_ep()
452 mtu3_writel(mbase, MU3D_EP_TXCR1(epnum), csr1); in mtu3_config_ep()
453 mtu3_writel(mbase, MU3D_EP_TXCR2(epnum), csr2); in mtu3_config_ep()
456 epnum, mtu3_readl(mbase, MU3D_EP_TXCR0(epnum)), in mtu3_config_ep()
457 mtu3_readl(mbase, MU3D_EP_TXCR1(epnum)), in mtu3_config_ep()
458 mtu3_readl(mbase, MU3D_EP_TXCR2(epnum))); in mtu3_config_ep()
485 mtu3_setbits(mbase, U3D_QIESR0, QMU_RX_DONE_INT(epnum)); in mtu3_config_ep()
487 mtu3_writel(mbase, MU3D_EP_RXCR0(epnum), csr0); in mtu3_config_ep()
488 mtu3_writel(mbase, MU3D_EP_RXCR1(epnum), csr1); in mtu3_config_ep()
489 mtu3_writel(mbase, MU3D_EP_RXCR2(epnum), csr2); in mtu3_config_ep()
492 epnum, mtu3_readl(mbase, MU3D_EP_RXCR0(epnum)), in mtu3_config_ep()
493 mtu3_readl(mbase, MU3D_EP_RXCR1(epnum)), in mtu3_config_ep()
494 mtu3_readl(mbase, MU3D_EP_RXCR2(epnum))); in mtu3_config_ep()
509 int epnum = mep->epnum; in mtu3_deconfig_ep() local
512 mtu3_writel(mbase, MU3D_EP_TXCR0(epnum), 0); in mtu3_deconfig_ep()
513 mtu3_writel(mbase, MU3D_EP_TXCR1(epnum), 0); in mtu3_deconfig_ep()
514 mtu3_writel(mbase, MU3D_EP_TXCR2(epnum), 0); in mtu3_deconfig_ep()
515 mtu3_setbits(mbase, U3D_QIECR0, QMU_TX_DONE_INT(epnum)); in mtu3_deconfig_ep()
517 mtu3_writel(mbase, MU3D_EP_RXCR0(epnum), 0); in mtu3_deconfig_ep()
518 mtu3_writel(mbase, MU3D_EP_RXCR1(epnum), 0); in mtu3_deconfig_ep()
519 mtu3_writel(mbase, MU3D_EP_RXCR2(epnum), 0); in mtu3_deconfig_ep()
520 mtu3_setbits(mbase, U3D_QIECR0, QMU_RX_DONE_INT(epnum)); in mtu3_deconfig_ep()
626 mtu->ep0->epnum = 0; in mtu3_mem_alloc()