Home
last modified time | relevance | path

Searched refs:hw_ep (Results 1 – 18 of 18) sorted by relevance

/linux/drivers/usb/musb/
A Dmusb_host.c203 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()
627 if (musb_dma_inventra(hw_ep->musb) || musb_dma_ux500(hw_ep->musb)) in musb_tx_dma_program()
630 else if (is_cppi_enabled(hw_ep->musb) || tusb_dma_omap(hw_ep->musb)) in musb_tx_dma_program()
699 dma_channel = is_out ? hw_ep->tx_channel : hw_ep->rx_channel; in musb_ep_program()
836 if (hw_ep->rx_reinit) { in musb_ep_program()
850 hw_ep->epnum, csr); in musb_ep_program()
1910 musb_dbg(hw_ep->musb, in musb_host_rx()
2022 epnum++, hw_ep++) { in musb_schedule()
[all …]
A Dmusb_cppi41.c72 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 …]
A Dtusb6010_omap.c35 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 …]
A Dux500_dma.c33 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 …]
A Dmusb_core.c448 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()
1415 if (hw_ep->epnum == 1) in fifo_setup()
1439 hw_ep->tx_double_buffered = hw_ep->rx_double_buffered; in fifo_setup()
1691 hw_ep->rx_reinit = 1; in musb_core_init()
1702 if (hw_ep->max_packet_sz_rx && !hw_ep->is_shared_fifo) { in musb_core_init()
1710 if (!(hw_ep->max_packet_sz_tx || hw_ep->max_packet_sz_rx)) in musb_core_init()
2690 if (!hw_ep) in musb_save_context()
2693 epio = hw_ep->regs; in musb_save_context()
2771 if (!hw_ep) in musb_restore_context()
[all …]
A Dmusb_core.h175 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 …]
A Dmusb_gadget.c530 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()
798 if (hw_ep->is_shared_fifo) in musb_g_rx()
799 musb_ep = &hw_ep->ep_in; in musb_g_rx()
910 struct musb_hw_ep *hw_ep; in musb_gadget_enable() local
923 hw_ep = musb_ep->hw_ep; in musb_gadget_enable()
924 regs = hw_ep->regs; in musb_gadget_enable()
1700 ep->hw_ep = hw_ep; in init_peripheral_ep()
1743 struct musb_hw_ep *hw_ep; in musb_g_init_endpoints() local
[all …]
A Dcppi_dma.c318 if (cppi_ch->hw_ep) in cppi_channel_allocate()
321 cppi_ch->hw_ep = ep; in cppi_channel_allocate()
339 if (!c->hw_ep) in cppi_channel_release()
346 c->hw_ep = NULL; in cppi_channel_release()
366 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()
1146 struct musb_hw_ep *hw_ep = NULL; in cppi_interrupt() local
1244 hw_ep = tx_ch->hw_ep; in cppi_interrupt()
1281 hw_ep = rx_ch->hw_ep; in cppi_interrupt()
[all …]
A Dmusb_io.h32 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);
A Dtusb6010.c220 static void tusb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *buf) in tusb_write_fifo() argument
222 struct musb *musb = hw_ep->musb; in tusb_write_fifo()
223 void __iomem *ep_conf = hw_ep->conf; in tusb_write_fifo()
224 void __iomem *fifo = hw_ep->fifo; in tusb_write_fifo()
225 u8 epnum = hw_ep->epnum; in tusb_write_fifo()
270 static void tusb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *buf) in tusb_read_fifo() argument
272 struct musb *musb = hw_ep->musb; in tusb_read_fifo()
273 void __iomem *ep_conf = hw_ep->conf; in tusb_read_fifo()
274 void __iomem *fifo = hw_ep->fifo; in tusb_read_fifo()
275 u8 epnum = hw_ep->epnum; in tusb_read_fifo()
A Dcppi_dma.h80 struct musb_hw_ep *hw_ep; member
130 struct musb_hw_ep *hw_ep; member
A Dmediatek.c356 struct musb *musb = qh->hw_ep->musb; in mtk_musb_get_toggle()
357 u8 epnum = qh->hw_ep->epnum; in mtk_musb_get_toggle()
366 struct musb *musb = qh->hw_ep->musb; in mtk_musb_set_toggle()
367 u8 epnum = qh->hw_ep->epnum; in mtk_musb_set_toggle()
A Dmusb_trace.h318 __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;
A Dmusb_gadget.h77 struct musb_hw_ep *hw_ep; member
A Dmusb_host.h19 struct musb_hw_ep *hw_ep; /* current binding */ member
A Dmusbhsdma.c99 struct musb_hw_ep *hw_ep, u8 transmit) in dma_channel_allocate() argument
113 musb_channel->epnum = hw_ep->epnum; in dma_channel_allocate()
A Dam35x.c389 static void am35x_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) in am35x_read_fifo() argument
391 void __iomem *fifo = hw_ep->fifo; in am35x_read_fifo()
A Dmusb_dsps.c623 static void dsps_read_fifo32(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) in dsps_read_fifo32() argument
625 void __iomem *fifo = hw_ep->fifo; in dsps_read_fifo32()

Completed in 47 milliseconds