/kernel/linux/linux-5.10/drivers/usb/musb/ |
D | musb_host.c | 203 struct musb_hw_ep *hw_ep = qh->hw_ep; in musb_start_urb() local 204 int epnum = hw_ep->epnum; in musb_start_urb() 234 musb_ep_set_qh(hw_ep, is_in, qh); in musb_start_urb() 267 hw_ep->tx_channel ? "dma" : "pio"); in musb_start_urb() 269 if (!hw_ep->tx_channel) in musb_start_urb() 270 musb_h_tx_start(hw_ep); in musb_start_urb() 272 musb_h_tx_dma_start(hw_ep); in musb_start_urb() 297 struct musb_hw_ep *hw_ep, int is_in) in musb_advance_schedule() argument 299 struct musb_qh *qh = musb_ep_get_qh(hw_ep, is_in); in musb_advance_schedule() 300 struct musb_hw_ep *ep = qh->hw_ep; in musb_advance_schedule() [all …]
|
D | musb_cppi41.c | 64 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->musb; in musb_is_tx_fifo_empty() 107 musb_ep_select(musb->mregs, hw_ep->epnum); in musb_is_tx_fifo_empty() [all …]
|
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() 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 190 void __iomem *ep_conf = hw_ep->conf; in tusb_omap_dma_program() 191 dma_addr_t fifo_addr = hw_ep->fifo_sync; in tusb_omap_dma_program() [all …]
|
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 …]
|
D | musb_core.c | 280 void __iomem *epio = qh->hw_ep->regs; in musb_default_get_toggle() 313 static void musb_default_write_fifo(struct musb_hw_ep *hw_ep, u16 len, in musb_default_write_fifo() argument 316 struct musb *musb = hw_ep->musb; in musb_default_write_fifo() 317 void __iomem *fifo = hw_ep->fifo; in musb_default_write_fifo() 325 'T', hw_ep->epnum, fifo, len, src); in musb_default_write_fifo() 358 static void musb_default_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) in musb_default_read_fifo() argument 360 struct musb *musb = hw_ep->musb; in musb_default_read_fifo() 361 void __iomem *fifo = hw_ep->fifo; in musb_default_read_fifo() 367 'R', hw_ep->epnum, fifo, len, dst); in musb_default_read_fifo() 446 void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) in musb_read_fifo() argument [all …]
|
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() 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->max_packet_sz_tx; in musb_read_fifosize() 472 hw_ep->is_shared_fifo = true; in musb_read_fifosize() [all …]
|
D | musb_gadget.c | 211 return ep->hw_ep->max_packet_sz_tx; in max_ep_writesize() 385 musb_write_fifo(musb_ep->hw_ep, fifo_count, in txstate() 527 struct musb_hw_ep *hw_ep = &musb->endpoints[epnum]; in rxstate() local 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() 654 musb_ep->hw_ep->rx_double_buffered) in rxstate() 766 musb_read_fifo(musb_ep->hw_ep, fifo_count, (u8 *) in rxstate() 799 struct musb_hw_ep *hw_ep = &musb->endpoints[epnum]; in musb_g_rx() local 801 if (hw_ep->is_shared_fifo) in musb_g_rx() [all …]
|
D | cppi_dma.c | 318 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() 1011 void __iomem *regs = rx->hw_ep->regs; in cppi_rx_scan() 1123 csr = musb_readw(rx->hw_ep->regs, MUSB_RXCSR); in cppi_rx_scan() 1130 csr = musb_readw(rx->hw_ep->regs, MUSB_RXCSR); in cppi_rx_scan() [all …]
|
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);
|
D | cppi_dma.h | 80 struct musb_hw_ep *hw_ep; member 130 struct musb_hw_ep *hw_ep; member
|
D | tusb6010.c | 220 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()
|
D | mediatek.c | 355 struct musb *musb = qh->hw_ep->musb; in mtk_musb_get_toggle() 356 u8 epnum = qh->hw_ep->epnum; in mtk_musb_get_toggle() 365 struct musb *musb = qh->hw_ep->musb; in mtk_musb_set_toggle() 366 u8 epnum = qh->hw_ep->epnum; in mtk_musb_set_toggle()
|
D | musb_trace.h | 301 __string(name, dev_name(ch->hw_ep->musb->controller)) 311 __assign_str(name, dev_name(ch->hw_ep->musb->controller)); 312 __entry->hwep = ch->hw_ep->epnum;
|
D | musb_gadget.h | 77 struct musb_hw_ep *hw_ep; member
|
D | musb_host.h | 19 struct musb_hw_ep *hw_ep; /* current binding */ member
|
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()
|
D | am35x.c | 389 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()
|
D | musb_dsps.c | 623 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()
|