Home
last modified time | relevance | path

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

/linux/drivers/usb/musb/
H A Dmusb_host.c204 struct musb_hw_ep *hw_ep = qh->hw_ep; in musb_start_urb() local
205 int epnum = hw_ep->epnum; in musb_start_urb()
235 musb_ep_set_qh(hw_ep, is_in, qh); in musb_start_urb()
268 hw_ep->tx_channel ? "dma" : "pio"); in musb_start_urb()
270 if (!hw_ep->tx_channel) in musb_start_urb()
271 musb_h_tx_start(hw_ep); in musb_start_urb()
273 musb_h_tx_dma_start(hw_ep); in musb_start_urb()
298 struct musb_hw_ep *hw_ep, int is_in) in musb_advance_schedule() argument
300 struct musb_qh *qh = musb_ep_get_qh(hw_ep, is_i in musb_advance_schedule()
391 musb_h_flush_rxfifo(struct musb_hw_ep * hw_ep,u16 csr) musb_h_flush_rxfifo() argument
422 struct musb_hw_ep *hw_ep = musb->endpoints + epnum; musb_host_packet_rx() local
573 musb_tx_dma_set_mode_mentor(struct musb_hw_ep * hw_ep,struct musb_qh * qh,u32 * length,u8 * mode) musb_tx_dma_set_mode_mentor() argument
611 musb_tx_dma_set_mode_cppi_tusb(struct musb_hw_ep * hw_ep,struct urb * urb,u8 * mode) musb_tx_dma_set_mode_cppi_tusb() argument
627 musb_tx_dma_program(struct dma_controller * dma,struct musb_hw_ep * hw_ep,struct musb_qh * qh,struct urb * urb,u32 offset,u32 length) musb_tx_dma_program() argument
678 struct musb_hw_ep *hw_ep = musb->endpoints + epnum; musb_ep_program() local
983 struct musb_hw_ep *hw_ep = musb->control_ep; musb_h_ep0_continue() local
1060 struct musb_hw_ep *hw_ep = musb->control_ep; musb_h_ep0_irq() local
1202 struct musb_hw_ep *hw_ep = musb->endpoints + epnum; musb_host_tx() local
1465 musb_rx_dma_iso_cppi41(struct dma_controller * dma,struct musb_hw_ep * hw_ep,struct musb_qh * qh,struct urb * urb,size_t len) musb_rx_dma_iso_cppi41() argument
1490 musb_rx_dma_iso_cppi41(struct dma_controller * dma,struct musb_hw_ep * hw_ep,struct musb_qh * qh,struct urb * urb,size_t len) musb_rx_dma_iso_cppi41() argument
1536 musb_rx_dma_inventra_cppi41(struct dma_controller * dma,struct musb_hw_ep * hw_ep,struct musb_qh * qh,struct urb * urb,size_t len) musb_rx_dma_inventra_cppi41() argument
1606 musb_rx_dma_in_inventra_cppi41(struct dma_controller * dma,struct musb_hw_ep * hw_ep,struct musb_qh * qh,struct urb * urb,size_t len,u8 iso_err) musb_rx_dma_in_inventra_cppi41() argument
1706 musb_rx_dma_inventra_cppi41(struct dma_controller * dma,struct musb_hw_ep * hw_ep,struct musb_qh * qh,struct urb * urb,size_t len) musb_rx_dma_inventra_cppi41() argument
1715 musb_rx_dma_in_inventra_cppi41(struct dma_controller * dma,struct musb_hw_ep * hw_ep,struct musb_qh * qh,struct urb * urb,size_t len,u8 iso_err) musb_rx_dma_in_inventra_cppi41() argument
1732 struct musb_hw_ep *hw_ep = musb->endpoints + epnum; musb_host_rx() local
2001 struct musb_hw_ep *hw_ep = NULL; musb_schedule() local
[all...]
H A Dmusb_cppi41.c64 csr = musb_readw(cppi41_channel->hw_ep->regs, MUSB_RXCSR); in save_rx_toggle()
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()
82 musb_ep_select(musb->mregs, hw_ep->epnum); in update_rx_toggle()
83 csr = musb_readw(hw_ep->regs, MUSB_RXCSR); in update_rx_toggle()
93 musb_writew(cppi41_channel->hw_ep->regs, MUSB_RXCSR, csr); in update_rx_toggle()
100 static bool musb_is_tx_fifo_empty(struct musb_hw_ep *hw_ep) in musb_is_tx_fifo_empty() argument
102 u8 epnum = hw_ep->epnum; in musb_is_tx_fifo_empty()
103 struct musb *musb = hw_ep in musb_is_tx_fifo_empty()
119 struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; cppi41_trans_done() local
201 struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; cppi41_recheck_tx_req() local
225 struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; cppi41_dma_callback() local
483 cppi41_dma_channel_allocate(struct dma_controller * c,struct musb_hw_ep * hw_ep,u8 is_tx) cppi41_dma_channel_allocate() argument
[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()
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
423 tusb_omap_dma_allocate(struct dma_controller * c,struct musb_hw_ep * hw_ep,u8 tx) tusb_omap_dma_allocate() argument
[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()
59 dev_dbg(musb->controller, "DMA rx transfer done on hw_ep=%d\n", 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 in ux500_configure_channel()
129 ux500_dma_channel_allocate(struct dma_controller * c,struct musb_hw_ep * hw_ep,u8 is_tx) ux500_dma_channel_allocate() argument
[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()
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 in musb_read_fifosize()
[all...]
H A Dmusb_core.c281 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, u1 argument
452 musb_write_fifo(struct musb_hw_ep * hw_ep,u16 len,const u8 * src) musb_write_fifo() argument
1380 fifo_setup(struct musb * musb,struct musb_hw_ep * hw_ep,const struct musb_fifo_cfg * cfg,u16 offset) fifo_setup() argument
1459 struct musb_hw_ep *hw_ep = musb->endpoints; ep_config_from_table() local
1547 struct musb_hw_ep *hw_ep; ep_config_from_hw() local
1666 struct musb_hw_ep *hw_ep = musb->endpoints + i; musb_core_init() 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 in tusb_read_fifo()
[all...]
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
23 u8 mux; /* qh multiplexed to hw_ep */
34 u8 is_ready; /* safe to modify hw_ep */
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_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()