/drivers/usb/musb/ |
H A D | musb_cppi41.c | 28 struct musb_hw_ep *hw_ep; member in struct:cppi41_dma_channel 69 csr = musb_readw(cppi41_channel->hw_ep->regs, MUSB_RXCSR); 77 struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; local 78 struct musb *musb = hw_ep->musb; 87 musb_ep_select(musb->mregs, hw_ep->epnum); 88 csr = musb_readw(hw_ep->regs, MUSB_RXCSR); 98 musb_writew(cppi41_channel->hw_ep->regs, MUSB_RXCSR, csr); 106 static bool musb_is_tx_fifo_empty(struct musb_hw_ep *hw_ep) argument 108 u8 epnum = hw_ep 124 struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; local 203 struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; local 227 struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; local 431 cppi41_dma_channel_allocate(struct dma_controller *c, struct musb_hw_ep *hw_ep, u8 is_tx) argument [all...] |
H A D | musb_host.c | 217 struct musb_hw_ep *hw_ep = qh->hw_ep; local 220 int epnum = hw_ep->epnum; 247 dev_dbg(musb->controller, "qh %p urb %p dev%d ep%d%s%s, hw_ep %d, %p/%d\n", 259 musb_ep_set_qh(hw_ep, is_in, qh); 293 hw_ep->tx_channel ? "dma" : "pio"); 295 if (!hw_ep->tx_channel) 296 musb_h_tx_start(hw_ep); 298 musb_h_tx_dma_start(hw_ep); 326 void __iomem *epio = qh->hw_ep 349 musb_advance_schedule(struct musb *musb, struct urb *urb, struct musb_hw_ep *hw_ep, int is_in) argument 434 musb_h_flush_rxfifo(struct musb_hw_ep *hw_ep, u16 csr) argument 465 struct musb_hw_ep *hw_ep = musb->endpoints + epnum; local 620 musb_tx_dma_program(struct dma_controller *dma, struct musb_hw_ep *hw_ep, struct musb_qh *qh, struct urb *urb, u32 offset, u32 length) argument 704 struct musb_hw_ep *hw_ep = musb->endpoints + epnum; local 1013 struct musb_hw_ep *hw_ep = musb->control_ep; local 1090 struct musb_hw_ep *hw_ep = musb->control_ep; local 1232 struct musb_hw_ep *hw_ep = musb->endpoints + epnum; local 1548 struct musb_hw_ep *hw_ep = musb->endpoints + epnum; local 1964 struct musb_hw_ep *hw_ep = NULL; local [all...] |
H A D | musb_core.h | 255 static inline struct musb_request *next_in_request(struct musb_hw_ep *hw_ep) argument 257 return next_request(&hw_ep->ep_in); 260 static inline struct musb_request *next_out_request(struct musb_hw_ep *hw_ep) argument 262 return next_request(&hw_ep->ep_out); 444 struct musb_hw_ep *hw_ep, u8 epnum) 450 hw_ep->max_packet_sz_tx = 128; 451 hw_ep->max_packet_sz_rx = 128; 453 hw_ep->max_packet_sz_tx = 1024; 454 hw_ep->max_packet_sz_rx = 1024; 456 hw_ep 443 musb_read_fifosize(struct musb *musb, struct musb_hw_ep *hw_ep, u8 epnum) argument 470 musb_read_fifosize(struct musb *musb, struct musb_hw_ep *hw_ep, u8 epnum) argument [all...] |
H A D | tusb6010_omap.c | 40 struct musb_hw_ep *hw_ep; member in struct:tusb_omap_dma_ch 114 struct musb_hw_ep *hw_ep = chdat->hw_ep; local 115 void __iomem *ep_conf = hw_ep->conf; 164 musb_write_fifo(hw_ep, pio, buf); 169 musb_read_fifo(hw_ep, pio, buf); 198 csr = musb_readw(hw_ep->regs, MUSB_TXCSR); 201 musb_writew(hw_ep->regs, MUSB_TXCSR, csr); 215 struct musb_hw_ep *hw_ep = chdat->hw_ep; local 486 tusb_omap_dma_allocate(struct dma_controller *c, struct musb_hw_ep *hw_ep, u8 tx) argument [all...] |
H A D | musb_core.c | 232 void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *src) argument 234 struct musb *musb = hw_ep->musb; 235 void __iomem *fifo = hw_ep->fifo; 243 'T', hw_ep->epnum, fifo, len, src); 277 void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) argument 279 struct musb *musb = hw_ep->musb; 280 void __iomem *fifo = hw_ep->fifo; 286 'R', hw_ep->epnum, fifo, len, dst); 1167 fifo_setup(struct musb *musb, struct musb_hw_ep *hw_ep, argument 1176 /* expect hw_ep ha 1246 struct musb_hw_ep *hw_ep = musb->endpoints; local 1335 struct musb_hw_ep *hw_ep; local 1457 struct musb_hw_ep *hw_ep = musb->endpoints + i; local 2136 struct musb_hw_ep *hw_ep; local 2217 struct musb_hw_ep *hw_ep; local [all...] |
H A D | ux500_dma.c | 45 struct musb_hw_ep *hw_ep; member in struct:ux500_dma_channel 67 struct musb_hw_ep *hw_ep = ux500_channel->hw_ep; local 68 struct musb *musb = hw_ep->musb; 71 dev_dbg(musb->controller, "DMA rx transfer done on hw_ep=%d\n", 72 hw_ep->epnum); 77 musb_dma_completion(musb, hw_ep->epnum, ux500_channel->is_tx); 87 struct musb_hw_ep *hw_ep = ux500_channel->hw_ep; local 94 dma_addr_t usb_fifo_addr = (MUSB_FIFO_OFFSET(hw_ep 141 ux500_dma_channel_allocate(struct dma_controller *c, struct musb_hw_ep *hw_ep, u8 is_tx) argument [all...] |
H A D | musb_gadget.c | 244 return ep->hw_ep->max_packet_sz_tx; 299 dev_dbg(musb->controller, "hw_ep%d, maxpacket %d, fifo count %d, txcsr %03x\n", 421 musb_write_fifo(musb_ep->hw_ep, fifo_count, 569 struct musb_hw_ep *hw_ep = &musb->endpoints[epnum]; local 572 if (hw_ep->is_shared_fifo) 573 musb_ep = &hw_ep->ep_in; 575 musb_ep = &hw_ep->ep_out; 694 musb_ep->hw_ep->rx_double_buffered) 806 musb_read_fifo(musb_ep->hw_ep, fifo_count, (u8 *) 839 struct musb_hw_ep *hw_ep local 957 struct musb_hw_ep *hw_ep; local 1713 struct musb_hw_ep *hw_ep = musb->endpoints + epnum; local 1750 struct musb_hw_ep *hw_ep; local 1887 struct musb_hw_ep *hw_ep; local [all...] |
H A D | blackfin.c | 39 void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *src) argument 41 struct musb *musb = hw_ep->musb; 42 void __iomem *fifo = hw_ep->fifo; 43 void __iomem *epio = hw_ep->regs; 44 u8 epnum = hw_ep->epnum; 51 hw_ep->epnum, fifo, len, src, epio); 103 void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) argument 105 struct musb *musb = hw_ep->musb; 106 void __iomem *fifo = hw_ep->fifo; 107 u8 epnum = hw_ep [all...] |
H A D | cppi_dma.c | 316 if (cppi_ch->hw_ep) 319 cppi_ch->hw_ep = ep; 337 if (!c->hw_ep) 344 c->hw_ep = NULL; 365 musb_readw(c->hw_ep->regs, MUSB_RXCSR), 394 musb_readw(c->hw_ep->regs, MUSB_TXCSR), 496 void __iomem *regs = rx->hw_ep->regs; 1012 void __iomem *regs = rx->hw_ep->regs; 1124 csr = musb_readw(rx->hw_ep->regs, MUSB_RXCSR); 1131 csr = musb_readw(rx->hw_ep 1147 struct musb_hw_ep *hw_ep = NULL; local [all...] |
H A D | cppi_dma.h | 86 struct musb_hw_ep *hw_ep; member in struct:cppi_channel
|
H A D | tusb6010.c | 176 void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *buf) argument 178 struct musb *musb = hw_ep->musb; 179 void __iomem *ep_conf = hw_ep->conf; 180 void __iomem *fifo = hw_ep->fifo; 181 u8 epnum = hw_ep->epnum; 226 void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *buf) argument 228 struct musb *musb = hw_ep->musb; 229 void __iomem *ep_conf = hw_ep->conf; 230 void __iomem *fifo = hw_ep->fifo; 231 u8 epnum = hw_ep [all...] |
H A D | musb_gadget.h | 105 struct musb_hw_ep *hw_ep; member in struct:musb_ep
|
H A D | musb_host.h | 44 struct musb_hw_ep *hw_ep; /* current binding */ member in struct:musb_qh 48 u8 mux; /* qh multiplexed to hw_ep */ 59 u8 is_ready; /* safe to modify hw_ep */
|
H A D | musbhsdma.c | 65 struct musb_hw_ep *hw_ep, u8 transmit) 79 musb_channel->epnum = hw_ep->epnum; 64 dma_channel_allocate(struct dma_controller *c, struct musb_hw_ep *hw_ep, u8 transmit) argument
|
H A D | am35x.c | 411 void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) argument 413 void __iomem *fifo = hw_ep->fifo;
|