| /linux/drivers/usb/musb/ |
| H A D | tusb6010_omap.c | 35 struct musb_hw_ep *hw_ep; member 104 struct musb_hw_ep *hw_ep = chdat->hw_ep; in tusb_omap_dma_cb() local 105 void __iomem *ep_conf = hw_ep->conf; in tusb_omap_dma_cb() 143 musb_write_fifo(hw_ep, pio, buf); in tusb_omap_dma_cb() 148 musb_read_fifo(hw_ep, pio, buf); in tusb_omap_dma_cb() 171 csr = musb_readw(hw_ep->regs, MUSB_TXCSR); in tusb_omap_dma_cb() 174 musb_writew(hw_ep->regs, MUSB_TXCSR, csr); in tusb_omap_dma_cb() 188 struct musb_hw_ep *hw_ep = chdat->hw_ep; in tusb_omap_dma_program() local 190 void __iomem *ep_conf = hw_ep->conf; in tusb_omap_dma_program() 191 dma_addr_t fifo_addr = hw_ep->fifo_sync; in tusb_omap_dma_program() [all …]
|
| H A D | ux500_dma.c | 33 struct musb_hw_ep *hw_ep; member 55 struct musb_hw_ep *hw_ep = ux500_channel->hw_ep; in ux500_dma_callback() local 56 struct musb *musb = hw_ep->musb; in ux500_dma_callback() 60 hw_ep->epnum); in ux500_dma_callback() 65 musb_dma_completion(musb, hw_ep->epnum, ux500_channel->is_tx); in ux500_dma_callback() 75 struct musb_hw_ep *hw_ep = ux500_channel->hw_ep; in ux500_configure_channel() local 83 dma_addr_t usb_fifo_addr = (musb->io.fifo_offset(hw_ep->epnum) + in ux500_configure_channel() 129 struct musb_hw_ep *hw_ep, u8 is_tx) in ux500_dma_channel_allocate() argument 135 u8 ch_num = hw_ep->epnum - 1; in ux500_dma_channel_allocate() 154 ux500_channel->hw_ep = hw_ep; in ux500_dma_channel_allocate() [all …]
|
| H A D | musb_core.c | 281 void __iomem *epio = qh->hw_ep->regs; in musb_default_get_toggle() 314 static void musb_default_write_fifo(struct musb_hw_ep *hw_ep, u16 len, in musb_default_write_fifo() argument 317 struct musb *musb = hw_ep->musb; in musb_default_write_fifo() 318 void __iomem *fifo = hw_ep->fifo; in musb_default_write_fifo() 326 'T', hw_ep->epnum, fifo, len, src); in musb_default_write_fifo() 359 static void musb_default_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) in musb_default_read_fifo() argument 361 struct musb *musb = hw_ep->musb; in musb_default_read_fifo() 362 void __iomem *fifo = hw_ep->fifo; in musb_default_read_fifo() 368 'R', hw_ep->epnum, fifo, len, dst); in musb_default_read_fifo() 447 void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) in musb_read_fifo() argument [all …]
|
| H A D | musb_core.h | 175 void (*read_fifo)(struct musb_hw_ep *hw_ep, u16 len, u8 *buf); 176 void (*write_fifo)(struct musb_hw_ep *hw_ep, u16 len, const u8 *buf); 241 static inline struct musb_request *next_in_request(struct musb_hw_ep *hw_ep) in next_in_request() argument 243 return next_request(&hw_ep->ep_in); in next_in_request() 246 static inline struct musb_request *next_out_request(struct musb_hw_ep *hw_ep) in next_out_request() argument 248 return next_request(&hw_ep->ep_out); in next_out_request() 453 struct musb_hw_ep *hw_ep, u8 epnum) in musb_read_fifosize() argument 467 hw_ep->max_packet_sz_tx = 1 << (reg & 0x0f); in musb_read_fifosize() 471 hw_ep->max_packet_sz_rx = hw_ep->max_packet_sz_tx; in musb_read_fifosize() 472 hw_ep->is_shared_fifo = true; in musb_read_fifosize() [all …]
|
| H A D | musb_gadget.c | 212 return ep->hw_ep->max_packet_sz_tx; in max_ep_writesize() 386 musb_write_fifo(musb_ep->hw_ep, fifo_count, in txstate() 528 struct musb_hw_ep *hw_ep = &musb->endpoints[epnum]; in rxstate() local 531 if (hw_ep->is_shared_fifo) in rxstate() 532 musb_ep = &hw_ep->ep_in; in rxstate() 534 musb_ep = &hw_ep->ep_out; in rxstate() 655 musb_ep->hw_ep->rx_double_buffered) in rxstate() 767 musb_read_fifo(musb_ep->hw_ep, fifo_count, (u8 *) in rxstate() 800 struct musb_hw_ep *hw_ep = &musb->endpoints[epnum]; in musb_g_rx() local 802 if (hw_ep->is_shared_fifo) in musb_g_rx() [all …]
|
| H A D | musb_io.h | 32 void (*read_fifo)(struct musb_hw_ep *hw_ep, u16 len, u8 *buf); 33 void (*write_fifo)(struct musb_hw_ep *hw_ep, u16 len, const u8 *buf);
|
| H A D | cppi_dma.h | 80 struct musb_hw_ep *hw_ep; member 127 struct musb_hw_ep *hw_ep; member
|
| H A D | tusb6010.c | 225 static void tusb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *buf) in tusb_write_fifo() argument 227 struct musb *musb = hw_ep->musb; in tusb_write_fifo() 228 void __iomem *ep_conf = hw_ep->conf; in tusb_write_fifo() 229 void __iomem *fifo = hw_ep->fifo; in tusb_write_fifo() 230 u8 epnum = hw_ep->epnum; in tusb_write_fifo() 275 static void tusb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *buf) in tusb_read_fifo() argument 277 struct musb *musb = hw_ep->musb; in tusb_read_fifo() 278 void __iomem *ep_conf = hw_ep->conf; in tusb_read_fifo() 279 void __iomem *fifo = hw_ep->fifo; in tusb_read_fifo() 280 u8 epnum = hw_ep->epnum; in tusb_read_fifo()
|
| H A D | musb_gadget.h | 77 struct musb_hw_ep *hw_ep; member
|
| H A D | musb_host.h | 19 struct musb_hw_ep *hw_ep; /* current binding */ member
|
| H A D | musbhsdma.c | 99 struct musb_hw_ep *hw_ep, u8 transmit) in dma_channel_allocate() argument 113 musb_channel->epnum = hw_ep->epnum; in dma_channel_allocate()
|
| H A D | musb_dsps.c | 622 static void dsps_read_fifo32(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) in dsps_read_fifo32() argument 624 void __iomem *fifo = hw_ep->fifo; in dsps_read_fifo32()
|