/linux-4.1.27/drivers/usb/musb/ |
D | musb_cppi41.c | 28 struct musb_hw_ep *hw_ep; member 69 csr = musb_readw(cppi41_channel->hw_ep->regs, MUSB_RXCSR); in save_rx_toggle() 77 struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; in update_rx_toggle() local 78 struct musb *musb = hw_ep->musb; in update_rx_toggle() 87 musb_ep_select(musb->mregs, hw_ep->epnum); in update_rx_toggle() 88 csr = musb_readw(hw_ep->regs, MUSB_RXCSR); in update_rx_toggle() 98 musb_writew(cppi41_channel->hw_ep->regs, MUSB_RXCSR, csr); in update_rx_toggle() 106 static bool musb_is_tx_fifo_empty(struct musb_hw_ep *hw_ep) in musb_is_tx_fifo_empty() argument 108 u8 epnum = hw_ep->epnum; in musb_is_tx_fifo_empty() 109 struct musb *musb = hw_ep->musb; in musb_is_tx_fifo_empty() [all …]
|
D | musb_host.c | 217 struct musb_hw_ep *hw_ep = qh->hw_ep; in musb_start_urb() local 220 int epnum = hw_ep->epnum; in musb_start_urb() 259 musb_ep_set_qh(hw_ep, is_in, qh); in musb_start_urb() 293 hw_ep->tx_channel ? "dma" : "pio"); in musb_start_urb() 295 if (!hw_ep->tx_channel) in musb_start_urb() 296 musb_h_tx_start(hw_ep); in musb_start_urb() 298 musb_h_tx_dma_start(hw_ep); in musb_start_urb() 326 void __iomem *epio = qh->hw_ep->regs; in musb_save_toggle() 350 struct musb_hw_ep *hw_ep, int is_in) in musb_advance_schedule() argument 352 struct musb_qh *qh = musb_ep_get_qh(hw_ep, is_in); in musb_advance_schedule() [all …]
|
D | musb_core.h | 196 void (*read_fifo)(struct musb_hw_ep *hw_ep, u16 len, u8 *buf); 197 void (*write_fifo)(struct musb_hw_ep *hw_ep, u16 len, const u8 *buf); 258 static inline struct musb_request *next_in_request(struct musb_hw_ep *hw_ep) in next_in_request() argument 260 return next_request(&hw_ep->ep_in); in next_in_request() 263 static inline struct musb_request *next_out_request(struct musb_hw_ep *hw_ep) in next_out_request() argument 265 return next_request(&hw_ep->ep_out); in next_out_request() 447 struct musb_hw_ep *hw_ep, u8 epnum) in musb_read_fifosize() argument 453 hw_ep->max_packet_sz_tx = 128; in musb_read_fifosize() 454 hw_ep->max_packet_sz_rx = 128; in musb_read_fifosize() 456 hw_ep->max_packet_sz_tx = 1024; in musb_read_fifosize() [all …]
|
D | tusb6010_omap.c | 40 struct musb_hw_ep *hw_ep; member 114 struct musb_hw_ep *hw_ep = chdat->hw_ep; in tusb_omap_dma_cb() local 115 void __iomem *ep_conf = hw_ep->conf; in tusb_omap_dma_cb() 164 musb_write_fifo(hw_ep, pio, buf); in tusb_omap_dma_cb() 169 musb_read_fifo(hw_ep, pio, buf); in tusb_omap_dma_cb() 198 csr = musb_readw(hw_ep->regs, MUSB_TXCSR); in tusb_omap_dma_cb() 201 musb_writew(hw_ep->regs, MUSB_TXCSR, csr); in tusb_omap_dma_cb() 215 struct musb_hw_ep *hw_ep = chdat->hw_ep; in tusb_omap_dma_program() local 217 void __iomem *ep_conf = hw_ep->conf; in tusb_omap_dma_program() 218 dma_addr_t fifo = hw_ep->fifo_sync; in tusb_omap_dma_program() [all …]
|
D | ux500_dma.c | 45 struct musb_hw_ep *hw_ep; member 67 struct musb_hw_ep *hw_ep = ux500_channel->hw_ep; in ux500_dma_callback() local 68 struct musb *musb = hw_ep->musb; in ux500_dma_callback() 72 hw_ep->epnum); in ux500_dma_callback() 77 musb_dma_completion(musb, hw_ep->epnum, ux500_channel->is_tx); in ux500_dma_callback() 87 struct musb_hw_ep *hw_ep = ux500_channel->hw_ep; in ux500_configure_channel() local 95 dma_addr_t usb_fifo_addr = (musb->io.fifo_offset(hw_ep->epnum) + in ux500_configure_channel() 141 struct musb_hw_ep *hw_ep, u8 is_tx) in ux500_dma_channel_allocate() argument 147 u8 ch_num = hw_ep->epnum - 1; in ux500_dma_channel_allocate() 166 ux500_channel->hw_ep = hw_ep; in ux500_dma_channel_allocate() [all …]
|
D | musb_core.c | 287 static void musb_default_write_fifo(struct musb_hw_ep *hw_ep, u16 len, in musb_default_write_fifo() argument 290 struct musb *musb = hw_ep->musb; in musb_default_write_fifo() 291 void __iomem *fifo = hw_ep->fifo; in musb_default_write_fifo() 299 'T', hw_ep->epnum, fifo, len, src); in musb_default_write_fifo() 332 static void musb_default_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) in musb_default_read_fifo() argument 334 struct musb *musb = hw_ep->musb; in musb_default_read_fifo() 335 void __iomem *fifo = hw_ep->fifo; in musb_default_read_fifo() 341 'R', hw_ep->epnum, fifo, len, dst); in musb_default_read_fifo() 395 void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) in musb_read_fifo() argument 397 return hw_ep->musb->io.read_fifo(hw_ep, len, dst); in musb_read_fifo() [all …]
|
D | musb_gadget.c | 244 return ep->hw_ep->max_packet_sz_tx; in max_ep_writesize() 421 musb_write_fifo(musb_ep->hw_ep, fifo_count, in txstate() 569 struct musb_hw_ep *hw_ep = &musb->endpoints[epnum]; in rxstate() local 572 if (hw_ep->is_shared_fifo) in rxstate() 573 musb_ep = &hw_ep->ep_in; in rxstate() 575 musb_ep = &hw_ep->ep_out; in rxstate() 694 musb_ep->hw_ep->rx_double_buffered) in rxstate() 806 musb_read_fifo(musb_ep->hw_ep, fifo_count, (u8 *) in rxstate() 839 struct musb_hw_ep *hw_ep = &musb->endpoints[epnum]; in musb_g_rx() local 841 if (hw_ep->is_shared_fifo) in musb_g_rx() [all …]
|
D | blackfin.c | 74 static void bfin_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *src) in bfin_write_fifo() argument 76 struct musb *musb = hw_ep->musb; in bfin_write_fifo() 77 void __iomem *fifo = hw_ep->fifo; in bfin_write_fifo() 78 void __iomem *epio = hw_ep->regs; in bfin_write_fifo() 79 u8 epnum = hw_ep->epnum; in bfin_write_fifo() 86 hw_ep->epnum, fifo, len, src, epio); in bfin_write_fifo() 138 static void bfin_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) in bfin_read_fifo() argument 140 struct musb *musb = hw_ep->musb; in bfin_read_fifo() 141 void __iomem *fifo = hw_ep->fifo; in bfin_read_fifo() 142 u8 epnum = hw_ep->epnum; in bfin_read_fifo() [all …]
|
D | cppi_dma.c | 316 if (cppi_ch->hw_ep) in cppi_channel_allocate() 319 cppi_ch->hw_ep = ep; in cppi_channel_allocate() 337 if (!c->hw_ep) in cppi_channel_release() 344 c->hw_ep = NULL; in cppi_channel_release() 365 musb_readw(c->hw_ep->regs, MUSB_RXCSR), in cppi_dump_rx() 394 musb_readw(c->hw_ep->regs, MUSB_TXCSR), in cppi_dump_tx() 496 void __iomem *regs = rx->hw_ep->regs; in cppi_autoreq_update() 1012 void __iomem *regs = rx->hw_ep->regs; in cppi_rx_scan() 1124 csr = musb_readw(rx->hw_ep->regs, MUSB_RXCSR); in cppi_rx_scan() 1131 csr = musb_readw(rx->hw_ep->regs, MUSB_RXCSR); in cppi_rx_scan() [all …]
|
D | musb_io.h | 56 void (*read_fifo)(struct musb_hw_ep *hw_ep, u16 len, u8 *buf); 57 void (*write_fifo)(struct musb_hw_ep *hw_ep, u16 len, const u8 *buf);
|
D | tusb6010.c | 222 static void tusb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *buf) in tusb_write_fifo() argument 224 struct musb *musb = hw_ep->musb; in tusb_write_fifo() 225 void __iomem *ep_conf = hw_ep->conf; in tusb_write_fifo() 226 void __iomem *fifo = hw_ep->fifo; in tusb_write_fifo() 227 u8 epnum = hw_ep->epnum; in tusb_write_fifo() 272 static void tusb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *buf) in tusb_read_fifo() argument 274 struct musb *musb = hw_ep->musb; in tusb_read_fifo() 275 void __iomem *ep_conf = hw_ep->conf; in tusb_read_fifo() 276 void __iomem *fifo = hw_ep->fifo; in tusb_read_fifo() 277 u8 epnum = hw_ep->epnum; in tusb_read_fifo()
|
D | cppi_dma.h | 86 struct musb_hw_ep *hw_ep; member
|
D | musb_gadget.h | 105 struct musb_hw_ep *hw_ep; member
|
D | musb_host.h | 44 struct musb_hw_ep *hw_ep; /* current binding */ member
|
D | musbhsdma.c | 65 struct musb_hw_ep *hw_ep, u8 transmit) in dma_channel_allocate() argument 79 musb_channel->epnum = hw_ep->epnum; in dma_channel_allocate()
|
D | am35x.c | 411 static void am35x_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) in am35x_read_fifo() argument 413 void __iomem *fifo = hw_ep->fifo; in am35x_read_fifo()
|
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()
|