Home
last modified time | relevance | path

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

/linux-2.6.39/drivers/usb/musb/
Dmusb_host.c213 struct musb_hw_ep *hw_ep = qh->hw_ep; in musb_start_urb() local
216 int epnum = hw_ep->epnum; in musb_start_urb()
255 musb_ep_set_qh(hw_ep, is_in, qh); in musb_start_urb()
290 hw_ep->tx_channel ? "dma" : "pio"); in musb_start_urb()
292 if (!hw_ep->tx_channel) in musb_start_urb()
293 musb_h_tx_start(hw_ep); in musb_start_urb()
295 musb_h_tx_dma_start(hw_ep); in musb_start_urb()
337 void __iomem *epio = qh->hw_ep->regs; in musb_save_toggle()
361 struct musb_hw_ep *hw_ep, int is_in) in musb_advance_schedule() argument
363 struct musb_qh *qh = musb_ep_get_qh(hw_ep, is_in); in musb_advance_schedule()
[all …]
Dmusb_core.h336 static inline struct musb_request *next_in_request(struct musb_hw_ep *hw_ep) in next_in_request() argument
339 return next_request(&hw_ep->ep_in); in next_in_request()
345 static inline struct musb_request *next_out_request(struct musb_hw_ep *hw_ep) in next_out_request() argument
348 return next_request(&hw_ep->ep_out); in next_out_request()
530 struct musb_hw_ep *hw_ep, u8 epnum) in musb_read_fifosize() argument
536 hw_ep->max_packet_sz_tx = 128; in musb_read_fifosize()
537 hw_ep->max_packet_sz_rx = 128; in musb_read_fifosize()
539 hw_ep->max_packet_sz_tx = 1024; in musb_read_fifosize()
540 hw_ep->max_packet_sz_rx = 1024; in musb_read_fifosize()
542 hw_ep->is_shared_fifo = false; in musb_read_fifosize()
[all …]
Dtusb6010_omap.c34 struct musb_hw_ep *hw_ep; member
130 struct musb_hw_ep *hw_ep = chdat->hw_ep; in tusb_omap_dma_cb() local
131 void __iomem *ep_conf = hw_ep->conf; in tusb_omap_dma_cb()
180 musb_write_fifo(hw_ep, pio, buf); in tusb_omap_dma_cb()
185 musb_read_fifo(hw_ep, pio, buf); in tusb_omap_dma_cb()
214 csr = musb_readw(hw_ep->regs, MUSB_TXCSR); in tusb_omap_dma_cb()
217 musb_writew(hw_ep->regs, MUSB_TXCSR, csr); in tusb_omap_dma_cb()
231 struct musb_hw_ep *hw_ep = chdat->hw_ep; in tusb_omap_dma_program() local
233 void __iomem *ep_conf = hw_ep->conf; in tusb_omap_dma_program()
234 dma_addr_t fifo = hw_ep->fifo_sync; in tusb_omap_dma_program()
[all …]
Dmusb_gadget.c272 return ep->hw_ep->max_packet_sz_tx; in max_ep_writesize()
463 musb_write_fifo(musb_ep->hw_ep, fifo_count, in txstate()
632 struct musb_hw_ep *hw_ep = &musb->endpoints[epnum]; in rxstate() local
634 if (hw_ep->is_shared_fifo) in rxstate()
635 musb_ep = &hw_ep->ep_in; in rxstate()
637 musb_ep = &hw_ep->ep_out; in rxstate()
726 musb_ep->hw_ep->rx_double_buffered) in rxstate()
799 musb_read_fifo(musb_ep->hw_ep, fifo_count, (u8 *) in rxstate()
831 struct musb_hw_ep *hw_ep = &musb->endpoints[epnum]; in musb_g_rx() local
833 if (hw_ep->is_shared_fifo) in musb_g_rx()
[all …]
Dmusb_core.c222 void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *src) in musb_write_fifo() argument
224 void __iomem *fifo = hw_ep->fifo; in musb_write_fifo()
229 'T', hw_ep->epnum, fifo, len, src); in musb_write_fifo()
263 void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) in musb_read_fifo() argument
265 void __iomem *fifo = hw_ep->fifo; in musb_read_fifo()
268 'R', hw_ep->epnum, fifo, len, dst); in musb_read_fifo()
1186 fifo_setup(struct musb *musb, struct musb_hw_ep *hw_ep, in fifo_setup() argument
1212 musb_writeb(mbase, MUSB_INDEX, hw_ep->epnum); in fifo_setup()
1218 if (hw_ep->epnum == 1) in fifo_setup()
1219 musb->bulk_ep = hw_ep; in fifo_setup()
[all …]
Dblackfin.c36 void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *src) in musb_write_fifo() argument
38 void __iomem *fifo = hw_ep->fifo; in musb_write_fifo()
39 void __iomem *epio = hw_ep->regs; in musb_write_fifo()
40 u8 epnum = hw_ep->epnum; in musb_write_fifo()
47 hw_ep->epnum, fifo, len, src, epio); in musb_write_fifo()
99 void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) in musb_read_fifo() argument
101 void __iomem *fifo = hw_ep->fifo; in musb_read_fifo()
102 u8 epnum = hw_ep->epnum; in musb_read_fifo()
158 'R', hw_ep->epnum, fifo, len, dst); in musb_read_fifo()
Dcppi_dma.c320 if (cppi_ch->hw_ep) in cppi_channel_allocate()
323 cppi_ch->hw_ep = ep; in cppi_channel_allocate()
341 if (!c->hw_ep) in cppi_channel_release()
347 c->hw_ep = NULL; in cppi_channel_release()
367 musb_readw(c->hw_ep->regs, MUSB_RXCSR), in cppi_dump_rx()
395 musb_readw(c->hw_ep->regs, MUSB_TXCSR), in cppi_dump_tx()
503 void __iomem *regs = rx->hw_ep->regs; in cppi_autoreq_update()
1024 void __iomem *regs = rx->hw_ep->regs; in cppi_rx_scan()
1135 csr = musb_readw(rx->hw_ep->regs, MUSB_RXCSR); in cppi_rx_scan()
1142 csr = musb_readw(rx->hw_ep->regs, MUSB_RXCSR); in cppi_rx_scan()
[all …]
Dtusb6010.c173 void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *buf) in musb_write_fifo() argument
175 void __iomem *ep_conf = hw_ep->conf; in musb_write_fifo()
176 void __iomem *fifo = hw_ep->fifo; in musb_write_fifo()
177 u8 epnum = hw_ep->epnum; in musb_write_fifo()
222 void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *buf) in musb_read_fifo() argument
224 void __iomem *ep_conf = hw_ep->conf; in musb_read_fifo()
225 void __iomem *fifo = hw_ep->fifo; in musb_read_fifo()
226 u8 epnum = hw_ep->epnum; in musb_read_fifo()
Dmusb_host.h52 struct musb_hw_ep *hw_ep; /* current binding */ member
Dmusb_gadget.h73 struct musb_hw_ep *hw_ep; member
Dcppi_dma.h86 struct musb_hw_ep *hw_ep; member
Dmusbhsdma.c75 struct musb_hw_ep *hw_ep, u8 transmit) in dma_channel_allocate() argument
89 musb_channel->epnum = hw_ep->epnum; in dma_channel_allocate()
Dam35x.c415 void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) in musb_read_fifo() argument
417 void __iomem *fifo = hw_ep->fifo; in musb_read_fifo()