Lines Matching refs:epio
162 void __iomem *epio = ep->musb->endpoints[ep->current_epnum].regs; in nuke() local
176 musb_writew(epio, MUSB_TXCSR, in nuke()
178 musb_writew(epio, MUSB_TXCSR, in nuke()
181 musb_writew(epio, MUSB_RXCSR, in nuke()
183 musb_writew(epio, MUSB_RXCSR, in nuke()
227 void __iomem *epio = musb->endpoints[epnum].regs; in txstate() local
248 csr = musb_readw(epio, MUSB_TXCSR); in txstate()
303 musb_writew(epio, MUSB_TXCSR, csr in txstate()
329 musb_writew(epio, MUSB_TXCSR, csr); in txstate()
338 musb_writew(epio, MUSB_TXCSR, (MUSB_TXCSR_P_WZC_BITS & in txstate()
342 csr = musb_readw(epio, MUSB_TXCSR); in txstate()
366 musb_writew(epio, MUSB_TXCSR, csr); in txstate()
390 musb_writew(epio, MUSB_TXCSR, csr); in txstate()
397 musb_readw(epio, MUSB_TXCSR), in txstate()
399 musb_readw(epio, MUSB_TXMAXP)); in txstate()
413 void __iomem *epio = musb->endpoints[epnum].regs; in musb_g_tx() local
420 csr = musb_readw(epio, MUSB_TXCSR); in musb_g_tx()
432 musb_writew(epio, MUSB_TXCSR, csr); in musb_g_tx()
440 musb_writew(epio, MUSB_TXCSR, csr); in musb_g_tx()
462 musb_writew(epio, MUSB_TXCSR, csr); in musb_g_tx()
464 csr = musb_readw(epio, MUSB_TXCSR); in musb_g_tx()
485 musb_writew(epio, MUSB_TXCSR, MUSB_TXCSR_MODE in musb_g_tx()
523 void __iomem *epio = musb->endpoints[epnum].regs; in rxstate() local
526 u16 csr = musb_readw(epio, MUSB_RXCSR); in rxstate()
578 musb_writew(epio, MUSB_RXCSR, csr); in rxstate()
584 fifo_count = musb_readw(epio, MUSB_RXCOUNT); in rxstate()
634 musb_writew(epio, MUSB_RXCSR, csr); in rxstate()
636 musb_writew(epio, MUSB_RXCSR, csr); in rxstate()
643 musb_writew(epio, MUSB_RXCSR, in rxstate()
645 musb_writew(epio, MUSB_RXCSR, csr); in rxstate()
657 musb_writew(epio, MUSB_RXCSR, csr); in rxstate()
704 musb_writew(epio, MUSB_RXCSR, csr); in rxstate()
712 musb_writew(epio, MUSB_RXCSR, csr); in rxstate()
760 musb_writew(epio, MUSB_RXCSR, csr); in rxstate()
777 musb_writew(epio, MUSB_RXCSR, csr); in rxstate()
797 void __iomem *epio = musb->endpoints[epnum].regs; in musb_g_rx() local
815 csr = musb_readw(epio, MUSB_RXCSR); in musb_g_rx()
824 musb_writew(epio, MUSB_RXCSR, csr); in musb_g_rx()
831 musb_writew(epio, MUSB_RXCSR, csr); in musb_g_rx()
853 musb_writew(epio, MUSB_RXCSR, in musb_g_rx()
866 musb_writew(epio, MUSB_RXCSR, csr); in musb_g_rx()
876 csr = musb_readw(epio, MUSB_RXCSR); in musb_g_rx()
1090 void __iomem *epio; in musb_gadget_disable() local
1095 epio = musb->endpoints[epnum].regs; in musb_gadget_disable()
1104 musb_writew(epio, MUSB_TXMAXP, 0); in musb_gadget_disable()
1108 musb_writew(epio, MUSB_RXMAXP, 0); in musb_gadget_disable()
1333 void __iomem *epio = musb->endpoints[epnum].regs; in musb_gadget_set_halt() local
1363 csr = musb_readw(epio, MUSB_TXCSR); in musb_gadget_set_halt()
1377 csr = musb_readw(epio, MUSB_TXCSR); in musb_gadget_set_halt()
1386 musb_writew(epio, MUSB_TXCSR, csr); in musb_gadget_set_halt()
1388 csr = musb_readw(epio, MUSB_RXCSR); in musb_gadget_set_halt()
1397 musb_writew(epio, MUSB_RXCSR, csr); in musb_gadget_set_halt()
1429 void __iomem *epio = musb_ep->hw_ep->regs; in musb_gadget_fifo_status() local
1442 retval = musb_readw(epio, MUSB_RXCOUNT); in musb_gadget_fifo_status()
1454 void __iomem *epio = musb->endpoints[epnum].regs; in musb_gadget_fifo_flush() local
1468 csr = musb_readw(epio, MUSB_TXCSR); in musb_gadget_fifo_flush()
1477 musb_writew(epio, MUSB_TXCSR, csr); in musb_gadget_fifo_flush()
1479 musb_writew(epio, MUSB_TXCSR, csr); in musb_gadget_fifo_flush()
1482 csr = musb_readw(epio, MUSB_RXCSR); in musb_gadget_fifo_flush()
1484 musb_writew(epio, MUSB_RXCSR, csr); in musb_gadget_fifo_flush()
1485 musb_writew(epio, MUSB_RXCSR, csr); in musb_gadget_fifo_flush()