Home
last modified time | relevance | path

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

/linux-6.15/drivers/usb/musb/
H A Dmusb_host.c204 struct musb_hw_ep *hw_ep = qh->hw_ep; in musb_start_urb() local
270 if (!hw_ep->tx_channel) in musb_start_urb()
271 musb_h_tx_start(hw_ep); in musb_start_urb()
634 if (musb_dma_inventra(hw_ep->musb) || musb_dma_ux500(hw_ep->musb)) in musb_tx_dma_program()
637 else if (is_cppi_enabled(hw_ep->musb) || tusb_dma_omap(hw_ep->musb)) in musb_tx_dma_program()
706 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 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 …]
H 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 …]
H 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 …]
H 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 …]
H A Dmusb_core.c449 return hw_ep->musb->io.read_fifo(hw_ep, len, dst); in musb_read_fifo()
454 return hw_ep->musb->io.write_fifo(hw_ep, len, src); in musb_write_fifo()
1411 if (hw_ep->epnum == 1) in fifo_setup()
1412 musb->bulk_ep = hw_ep; in fifo_setup()
1435 hw_ep->tx_double_buffered = hw_ep->rx_double_buffered; in fifo_setup()
1575 musb->bulk_ep = hw_ep; in ep_config_from_hw()
1675 hw_ep->fifo_sync_va = in musb_core_init()
1687 hw_ep->rx_reinit = 1; in musb_core_init()
1688 hw_ep->tx_reinit = 1; in musb_core_init()
1698 if (hw_ep->max_packet_sz_rx && !hw_ep->is_shared_fifo) { in musb_core_init()
[all …]
H A Dmusb_gadget.c531 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()
802 if (hw_ep->is_shared_fifo) in musb_g_rx()
803 musb_ep = &hw_ep->ep_in; in musb_g_rx()
914 struct musb_hw_ep *hw_ep; in musb_gadget_enable() local
927 hw_ep = musb_ep->hw_ep; in musb_gadget_enable()
928 regs = hw_ep->regs; in musb_gadget_enable()
1702 ep->hw_ep = hw_ep; in init_peripheral_ep()
1745 struct musb_hw_ep *hw_ep; in musb_g_init_endpoints() local
[all …]
H 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);
H A Dcppi_dma.h80 struct musb_hw_ep *hw_ep; member
127 struct musb_hw_ep *hw_ep; member
H A Dtusb6010.c225 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 Dmediatek.c305 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 Dmusb_gadget.h77 struct musb_hw_ep *hw_ep; member
H A Dmusb_host.h19 struct musb_hw_ep *hw_ep; /* current binding */ member
H 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()
H A Dmusb_trace.h318 __string(name, dev_name(ch->hw_ep->musb->controller))
329 __entry->hwep = ch->hw_ep->epnum;
H 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()