/openbmc/linux/drivers/usb/musb/ |
H A D | musb_host.c | 203 struct musb_hw_ep *hw_ep = qh->hw_ep; in musb_start_urb() local 269 if (!hw_ep->tx_channel) in musb_start_urb() 270 musb_h_tx_start(hw_ep); in musb_start_urb() 633 if (musb_dma_inventra(hw_ep->musb) || musb_dma_ux500(hw_ep->musb)) in musb_tx_dma_program() 636 else if (is_cppi_enabled(hw_ep->musb) || tusb_dma_omap(hw_ep->musb)) in musb_tx_dma_program() 705 dma_channel = is_out ? hw_ep->tx_channel : hw_ep->rx_channel; in musb_ep_program() 842 if (hw_ep->rx_reinit) { in musb_ep_program() 856 hw_ep->epnum, csr); in musb_ep_program() 1916 musb_dbg(hw_ep->musb, in musb_host_rx() 2028 epnum++, hw_ep++) { in musb_schedule() [all …]
|
H A D | musb_cppi41.c | 72 struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; in update_rx_toggle() local 73 struct musb *musb = hw_ep->musb; in update_rx_toggle() 102 u8 epnum = hw_ep->epnum; in musb_is_tx_fifo_empty() 103 struct musb *musb = hw_ep->musb; in musb_is_tx_fifo_empty() 119 struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; in cppi41_trans_done() local 201 struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; in cppi41_recheck_tx_req() local 225 struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; in cppi41_dma_callback() local 259 type = hw_ep->out_qh->type; in cppi41_dma_callback() 261 type = hw_ep->ep_in.type; in cppi41_dma_callback() 488 u8 ch_num = hw_ep->epnum - 1; in cppi41_dma_channel_allocate() [all …]
|
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() 188 struct musb_hw_ep *hw_ep = chdat->hw_ep; in tusb_omap_dma_program() local 282 fifo_addr = hw_ep->fifo_async; in tusb_omap_dma_program() 423 struct musb_hw_ep *hw_ep, in tusb_omap_dma_allocate() argument 437 if (hw_ep->epnum == 0) { in tusb_omap_dma_allocate() 457 chdat->hw_ep = hw_ep; in tusb_omap_dma_allocate() [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.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() 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() 475 hw_ep->max_packet_sz_rx = 1 << ((reg & 0xf0) >> 4); in musb_read_fifosize() [all …]
|
H A D | musb_core.c | 448 return hw_ep->musb->io.read_fifo(hw_ep, len, dst); in musb_read_fifo() 453 return hw_ep->musb->io.write_fifo(hw_ep, len, src); in musb_write_fifo() 1410 if (hw_ep->epnum == 1) in fifo_setup() 1411 musb->bulk_ep = hw_ep; in fifo_setup() 1434 hw_ep->tx_double_buffered = hw_ep->rx_double_buffered; in fifo_setup() 1574 musb->bulk_ep = hw_ep; in ep_config_from_hw() 1674 hw_ep->fifo_sync_va = in musb_core_init() 1686 hw_ep->rx_reinit = 1; in musb_core_init() 1687 hw_ep->tx_reinit = 1; in musb_core_init() 1697 if (hw_ep->max_packet_sz_rx && !hw_ep->is_shared_fifo) { in musb_core_init() [all …]
|
H A D | musb_gadget.c | 530 if (hw_ep->is_shared_fifo) in rxstate() 531 musb_ep = &hw_ep->ep_in; in rxstate() 533 musb_ep = &hw_ep->ep_out; in rxstate() 801 if (hw_ep->is_shared_fifo) in musb_g_rx() 802 musb_ep = &hw_ep->ep_in; in musb_g_rx() 913 struct musb_hw_ep *hw_ep; in musb_gadget_enable() local 926 hw_ep = musb_ep->hw_ep; in musb_gadget_enable() 927 regs = hw_ep->regs; in musb_gadget_enable() 1703 ep->hw_ep = hw_ep; in init_peripheral_ep() 1746 struct musb_hw_ep *hw_ep; in musb_g_init_endpoints() local [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 | mediatek.c | 305 struct musb *musb = qh->hw_ep->musb; in mtk_musb_get_toggle() 306 u8 epnum = qh->hw_ep->epnum; in mtk_musb_get_toggle() 315 struct musb *musb = qh->hw_ep->musb; in mtk_musb_set_toggle() 316 u8 epnum = qh->hw_ep->epnum; in mtk_musb_set_toggle()
|
H A D | musb_trace.h | 318 __string(name, dev_name(ch->hw_ep->musb->controller)) 328 __assign_str(name, dev_name(ch->hw_ep->musb->controller)); 329 __entry->hwep = ch->hw_ep->epnum;
|
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()
|
/openbmc/u-boot/drivers/usb/musb-new/ |
H A D | musb_host.c | 196 struct musb_hw_ep *hw_ep = qh->hw_ep; in musb_start_urb() local 199 int epnum = hw_ep->epnum; in musb_start_urb() 285 if (!hw_ep->tx_channel) in musb_start_urb() 286 musb_h_tx_start(hw_ep); in musb_start_urb() 668 hw_ep->tx_channel = NULL; in musb_tx_dma_program() 708 dma_channel = is_out ? hw_ep->tx_channel : hw_ep->rx_channel; in musb_ep_program() 824 if (hw_ep->rx_reinit) { in musb_ep_program() 843 hw_ep->epnum, csr); in musb_ep_program() 1817 epnum++, hw_ep++) { in musb_schedule() 1860 hw_ep = musb->bulk_ep; in musb_schedule() [all …]
|
H A D | musb_core.c | 1214 if (hw_ep->epnum == 1) in fifo_setup() 1238 hw_ep->tx_double_buffered = hw_ep->rx_double_buffered; in fifo_setup() 1480 hw_ep->fifo_sync_va = in musb_core_init() 1491 hw_ep->rx_reinit = 1; in musb_core_init() 1492 hw_ep->tx_reinit = 1; in musb_core_init() 1503 if (hw_ep->max_packet_sz_rx && !hw_ep->is_shared_fifo) { in musb_core_init() 1512 if (!(hw_ep->max_packet_sz_tx || hw_ep->max_packet_sz_rx)) in musb_core_init() 2246 if (!hw_ep) in musb_save_context() 2249 epio = hw_ep->regs; in musb_save_context() 2322 if (!hw_ep) in musb_restore_context() [all …]
|
H A D | musb_gadget.c | 646 if (hw_ep->is_shared_fifo) in rxstate() 647 musb_ep = &hw_ep->ep_in; in rxstate() 649 musb_ep = &hw_ep->ep_out; in rxstate() 916 musb_ep = &hw_ep->ep_in; in musb_g_rx() 1031 struct musb_hw_ep *hw_ep; in musb_gadget_enable() local 1044 hw_ep = musb_ep->hw_ep; in musb_gadget_enable() 1045 regs = hw_ep->regs; in musb_gadget_enable() 1831 ep->hw_ep = hw_ep; in init_peripheral_ep() 1862 struct musb_hw_ep *hw_ep; in musb_g_init_endpoints() local 1870 epnum++, hw_ep++) { in musb_g_init_endpoints() [all …]
|
H A D | musb_core.h | 280 static inline struct musb_request *next_in_request(struct musb_hw_ep *hw_ep) in next_in_request() argument 282 return next_request(&hw_ep->ep_in); in next_in_request() 285 static inline struct musb_request *next_out_request(struct musb_hw_ep *hw_ep) in next_out_request() argument 287 return next_request(&hw_ep->ep_out); in next_out_request() 461 struct musb_hw_ep *hw_ep, u8 epnum) in musb_read_fifosize() argument 475 hw_ep->max_packet_sz_tx = 1 << (reg & 0x0f); in musb_read_fifosize() 479 hw_ep->max_packet_sz_rx = hw_ep->max_packet_sz_tx; in musb_read_fifosize() 480 hw_ep->is_shared_fifo = true; in musb_read_fifosize() 483 hw_ep->max_packet_sz_rx = 1 << ((reg & 0xf0) >> 4); in musb_read_fifosize() 484 hw_ep->is_shared_fifo = false; in musb_read_fifosize()
|
H A D | musb_gadget.h | 54 struct musb_hw_ep *hw_ep; member
|
H A D | musb_host.h | 30 struct musb_hw_ep *hw_ep; /* current binding */ member
|
H A D | pic32.c | 158 void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) in musb_read_fifo() argument 160 void __iomem *fifo = hw_ep->fifo; in musb_read_fifo()
|
H A D | am35x.c | 452 void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) in musb_read_fifo() argument 454 void __iomem *fifo = hw_ep->fifo; in musb_read_fifo()
|