hw_ep 389 drivers/usb/musb/am35x.c static void am35x_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) hw_ep 391 drivers/usb/musb/am35x.c void __iomem *fifo = hw_ep->fifo; hw_ep 318 drivers/usb/musb/cppi_dma.c if (cppi_ch->hw_ep) hw_ep 321 drivers/usb/musb/cppi_dma.c cppi_ch->hw_ep = ep; hw_ep 339 drivers/usb/musb/cppi_dma.c if (!c->hw_ep) hw_ep 346 drivers/usb/musb/cppi_dma.c c->hw_ep = NULL; hw_ep 366 drivers/usb/musb/cppi_dma.c musb_readw(c->hw_ep->regs, MUSB_RXCSR), hw_ep 394 drivers/usb/musb/cppi_dma.c musb_readw(c->hw_ep->regs, MUSB_TXCSR), hw_ep 496 drivers/usb/musb/cppi_dma.c void __iomem *regs = rx->hw_ep->regs; hw_ep 1011 drivers/usb/musb/cppi_dma.c void __iomem *regs = rx->hw_ep->regs; hw_ep 1123 drivers/usb/musb/cppi_dma.c csr = musb_readw(rx->hw_ep->regs, MUSB_RXCSR); hw_ep 1130 drivers/usb/musb/cppi_dma.c csr = musb_readw(rx->hw_ep->regs, MUSB_RXCSR); hw_ep 1146 drivers/usb/musb/cppi_dma.c struct musb_hw_ep *hw_ep = NULL; hw_ep 1244 drivers/usb/musb/cppi_dma.c hw_ep = tx_ch->hw_ep; hw_ep 1281 drivers/usb/musb/cppi_dma.c hw_ep = rx_ch->hw_ep; hw_ep 1392 drivers/usb/musb/cppi_dma.c regs = cppi_ch->hw_ep->regs; hw_ep 80 drivers/usb/musb/cppi_dma.h struct musb_hw_ep *hw_ep; hw_ep 130 drivers/usb/musb/cppi_dma.h struct musb_hw_ep *hw_ep; hw_ep 280 drivers/usb/musb/musb_core.c static void musb_default_write_fifo(struct musb_hw_ep *hw_ep, u16 len, hw_ep 283 drivers/usb/musb/musb_core.c struct musb *musb = hw_ep->musb; hw_ep 284 drivers/usb/musb/musb_core.c void __iomem *fifo = hw_ep->fifo; hw_ep 292 drivers/usb/musb/musb_core.c 'T', hw_ep->epnum, fifo, len, src); hw_ep 325 drivers/usb/musb/musb_core.c static void musb_default_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) hw_ep 327 drivers/usb/musb/musb_core.c struct musb *musb = hw_ep->musb; hw_ep 328 drivers/usb/musb/musb_core.c void __iomem *fifo = hw_ep->fifo; hw_ep 334 drivers/usb/musb/musb_core.c 'R', hw_ep->epnum, fifo, len, dst); hw_ep 407 drivers/usb/musb/musb_core.c void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) hw_ep 409 drivers/usb/musb/musb_core.c return hw_ep->musb->io.read_fifo(hw_ep, len, dst); hw_ep 412 drivers/usb/musb/musb_core.c void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *src) hw_ep 414 drivers/usb/musb/musb_core.c return hw_ep->musb->io.write_fifo(hw_ep, len, src); hw_ep 1245 drivers/usb/musb/musb_core.c fifo_setup(struct musb *musb, struct musb_hw_ep *hw_ep, hw_ep 1271 drivers/usb/musb/musb_core.c musb_writeb(mbase, MUSB_INDEX, hw_ep->epnum); hw_ep 1276 drivers/usb/musb/musb_core.c if (hw_ep->epnum == 1) hw_ep 1277 drivers/usb/musb/musb_core.c musb->bulk_ep = hw_ep; hw_ep 1283 drivers/usb/musb/musb_core.c hw_ep->tx_double_buffered = !!(c_size & MUSB_FIFOSZ_DPB); hw_ep 1284 drivers/usb/musb/musb_core.c hw_ep->max_packet_sz_tx = maxpacket; hw_ep 1289 drivers/usb/musb/musb_core.c hw_ep->rx_double_buffered = !!(c_size & MUSB_FIFOSZ_DPB); hw_ep 1290 drivers/usb/musb/musb_core.c hw_ep->max_packet_sz_rx = maxpacket; hw_ep 1295 drivers/usb/musb/musb_core.c hw_ep->rx_double_buffered = !!(c_size & MUSB_FIFOSZ_DPB); hw_ep 1296 drivers/usb/musb/musb_core.c hw_ep->max_packet_sz_rx = maxpacket; hw_ep 1300 drivers/usb/musb/musb_core.c hw_ep->tx_double_buffered = hw_ep->rx_double_buffered; hw_ep 1301 drivers/usb/musb/musb_core.c hw_ep->max_packet_sz_tx = maxpacket; hw_ep 1303 drivers/usb/musb/musb_core.c hw_ep->is_shared_fifo = true; hw_ep 1310 drivers/usb/musb/musb_core.c musb->epmask |= (1 << hw_ep->epnum); hw_ep 1324 drivers/usb/musb/musb_core.c struct musb_hw_ep *hw_ep = musb->endpoints; hw_ep 1366 drivers/usb/musb/musb_core.c offset = fifo_setup(musb, hw_ep, &ep0_cfg, 0); hw_ep 1381 drivers/usb/musb/musb_core.c offset = fifo_setup(musb, hw_ep + epn, cfg++, offset); hw_ep 1412 drivers/usb/musb/musb_core.c struct musb_hw_ep *hw_ep; hw_ep 1422 drivers/usb/musb/musb_core.c hw_ep = musb->endpoints + epnum; hw_ep 1424 drivers/usb/musb/musb_core.c ret = musb_read_fifosize(musb, hw_ep, epnum); hw_ep 1431 drivers/usb/musb/musb_core.c if (hw_ep->max_packet_sz_tx < 512 hw_ep 1432 drivers/usb/musb/musb_core.c || hw_ep->max_packet_sz_rx < 512) hw_ep 1440 drivers/usb/musb/musb_core.c musb->bulk_ep = hw_ep; hw_ep 1531 drivers/usb/musb/musb_core.c struct musb_hw_ep *hw_ep = musb->endpoints + i; hw_ep 1533 drivers/usb/musb/musb_core.c hw_ep->fifo = musb->io.fifo_offset(i) + mbase; hw_ep 1536 drivers/usb/musb/musb_core.c hw_ep->fifo_async = musb->async + 0x400 + hw_ep 1538 drivers/usb/musb/musb_core.c hw_ep->fifo_sync = musb->sync + 0x400 + hw_ep 1540 drivers/usb/musb/musb_core.c hw_ep->fifo_sync_va = hw_ep 1544 drivers/usb/musb/musb_core.c hw_ep->conf = mbase - 0x400 + TUSB_EP0_CONF; hw_ep 1546 drivers/usb/musb/musb_core.c hw_ep->conf = mbase + 0x400 + hw_ep 1551 drivers/usb/musb/musb_core.c hw_ep->regs = musb->io.ep_offset(i, 0) + mbase; hw_ep 1552 drivers/usb/musb/musb_core.c hw_ep->rx_reinit = 1; hw_ep 1553 drivers/usb/musb/musb_core.c hw_ep->tx_reinit = 1; hw_ep 1555 drivers/usb/musb/musb_core.c if (hw_ep->max_packet_sz_tx) { hw_ep 1558 drivers/usb/musb/musb_core.c hw_ep->is_shared_fifo ? "shared" : "tx", hw_ep 1559 drivers/usb/musb/musb_core.c hw_ep->tx_double_buffered hw_ep 1561 drivers/usb/musb/musb_core.c hw_ep->max_packet_sz_tx); hw_ep 1563 drivers/usb/musb/musb_core.c if (hw_ep->max_packet_sz_rx && !hw_ep->is_shared_fifo) { hw_ep 1567 drivers/usb/musb/musb_core.c hw_ep->rx_double_buffered hw_ep 1569 drivers/usb/musb/musb_core.c hw_ep->max_packet_sz_rx); hw_ep 1571 drivers/usb/musb/musb_core.c if (!(hw_ep->max_packet_sz_tx || hw_ep->max_packet_sz_rx)) hw_ep 2515 drivers/usb/musb/musb_core.c struct musb_hw_ep *hw_ep; hw_ep 2517 drivers/usb/musb/musb_core.c hw_ep = &musb->endpoints[i]; hw_ep 2518 drivers/usb/musb/musb_core.c if (!hw_ep) hw_ep 2521 drivers/usb/musb/musb_core.c epio = hw_ep->regs; hw_ep 2596 drivers/usb/musb/musb_core.c struct musb_hw_ep *hw_ep; hw_ep 2598 drivers/usb/musb/musb_core.c hw_ep = &musb->endpoints[i]; hw_ep 2599 drivers/usb/musb/musb_core.c if (!hw_ep) hw_ep 2602 drivers/usb/musb/musb_core.c epio = hw_ep->regs; hw_ep 168 drivers/usb/musb/musb_core.h void (*read_fifo)(struct musb_hw_ep *hw_ep, u16 len, u8 *buf); hw_ep 169 drivers/usb/musb/musb_core.h void (*write_fifo)(struct musb_hw_ep *hw_ep, u16 len, const u8 *buf); hw_ep 232 drivers/usb/musb/musb_core.h static inline struct musb_request *next_in_request(struct musb_hw_ep *hw_ep) hw_ep 234 drivers/usb/musb/musb_core.h return next_request(&hw_ep->ep_in); hw_ep 237 drivers/usb/musb/musb_core.h static inline struct musb_request *next_out_request(struct musb_hw_ep *hw_ep) hw_ep 239 drivers/usb/musb/musb_core.h return next_request(&hw_ep->ep_out); hw_ep 444 drivers/usb/musb/musb_core.h struct musb_hw_ep *hw_ep, u8 epnum) hw_ep 458 drivers/usb/musb/musb_core.h hw_ep->max_packet_sz_tx = 1 << (reg & 0x0f); hw_ep 462 drivers/usb/musb/musb_core.h hw_ep->max_packet_sz_rx = hw_ep->max_packet_sz_tx; hw_ep 463 drivers/usb/musb/musb_core.h hw_ep->is_shared_fifo = true; hw_ep 466 drivers/usb/musb/musb_core.h hw_ep->max_packet_sz_rx = 1 << ((reg & 0xf0) >> 4); hw_ep 467 drivers/usb/musb/musb_core.h hw_ep->is_shared_fifo = false; hw_ep 64 drivers/usb/musb/musb_cppi41.c csr = musb_readw(cppi41_channel->hw_ep->regs, MUSB_RXCSR); hw_ep 72 drivers/usb/musb/musb_cppi41.c struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; hw_ep 73 drivers/usb/musb/musb_cppi41.c struct musb *musb = hw_ep->musb; hw_ep 82 drivers/usb/musb/musb_cppi41.c musb_ep_select(musb->mregs, hw_ep->epnum); hw_ep 83 drivers/usb/musb/musb_cppi41.c csr = musb_readw(hw_ep->regs, MUSB_RXCSR); hw_ep 93 drivers/usb/musb/musb_cppi41.c musb_writew(cppi41_channel->hw_ep->regs, MUSB_RXCSR, csr); hw_ep 100 drivers/usb/musb/musb_cppi41.c static bool musb_is_tx_fifo_empty(struct musb_hw_ep *hw_ep) hw_ep 102 drivers/usb/musb/musb_cppi41.c u8 epnum = hw_ep->epnum; hw_ep 103 drivers/usb/musb/musb_cppi41.c struct musb *musb = hw_ep->musb; hw_ep 107 drivers/usb/musb/musb_cppi41.c musb_ep_select(musb->mregs, hw_ep->epnum); hw_ep 119 drivers/usb/musb/musb_cppi41.c struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; hw_ep 120 drivers/usb/musb/musb_cppi41.c struct musb *musb = hw_ep->musb; hw_ep 121 drivers/usb/musb/musb_cppi41.c void __iomem *epio = hw_ep->regs; hw_ep 139 drivers/usb/musb/musb_cppi41.c musb_ep_select(musb->mregs, hw_ep->epnum); hw_ep 145 drivers/usb/musb/musb_cppi41.c musb_dma_completion(musb, hw_ep->epnum, cppi41_channel->is_tx); hw_ep 177 drivers/usb/musb/musb_cppi41.c musb_ep_select(musb->mregs, hw_ep->epnum); hw_ep 201 drivers/usb/musb/musb_cppi41.c struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; hw_ep 203 drivers/usb/musb/musb_cppi41.c empty = musb_is_tx_fifo_empty(hw_ep); hw_ep 225 drivers/usb/musb/musb_cppi41.c struct musb_hw_ep *hw_ep = cppi41_channel->hw_ep; hw_ep 227 drivers/usb/musb/musb_cppi41.c struct musb *musb = hw_ep->musb; hw_ep 259 drivers/usb/musb/musb_cppi41.c type = hw_ep->out_qh->type; hw_ep 261 drivers/usb/musb/musb_cppi41.c type = hw_ep->ep_in.type; hw_ep 274 drivers/usb/musb/musb_cppi41.c empty = musb_is_tx_fifo_empty(hw_ep); hw_ep 303 drivers/usb/musb/musb_cppi41.c empty = musb_is_tx_fifo_empty(hw_ep); hw_ep 483 drivers/usb/musb/musb_cppi41.c struct musb_hw_ep *hw_ep, u8 is_tx) hw_ep 488 drivers/usb/musb/musb_cppi41.c u8 ch_num = hw_ep->epnum - 1; hw_ep 504 drivers/usb/musb/musb_cppi41.c cppi41_channel->hw_ep = hw_ep; hw_ep 536 drivers/usb/musb/musb_cppi41.c hb_mult = cppi41_channel->hw_ep->out_qh->hb_mult; hw_ep 538 drivers/usb/musb/musb_cppi41.c hb_mult = cppi41_channel->hw_ep->in_qh->hb_mult; hw_ep 565 drivers/usb/musb/musb_cppi41.c if (cppi41_channel->hw_ep->ep_in.type != USB_ENDPOINT_XFER_BULK) hw_ep 578 drivers/usb/musb/musb_cppi41.c void __iomem *epio = cppi41_channel->hw_ep->regs; hw_ep 623 drivers/usb/musb/musb_dsps.c static void dsps_read_fifo32(struct musb_hw_ep *hw_ep, u16 len, u8 *dst) hw_ep 625 drivers/usb/musb/musb_dsps.c void __iomem *fifo = hw_ep->fifo; hw_ep 211 drivers/usb/musb/musb_gadget.c return ep->hw_ep->max_packet_sz_tx; hw_ep 385 drivers/usb/musb/musb_gadget.c musb_write_fifo(musb_ep->hw_ep, fifo_count, hw_ep 527 drivers/usb/musb/musb_gadget.c struct musb_hw_ep *hw_ep = &musb->endpoints[epnum]; hw_ep 530 drivers/usb/musb/musb_gadget.c if (hw_ep->is_shared_fifo) hw_ep 531 drivers/usb/musb/musb_gadget.c musb_ep = &hw_ep->ep_in; hw_ep 533 drivers/usb/musb/musb_gadget.c musb_ep = &hw_ep->ep_out; hw_ep 654 drivers/usb/musb/musb_gadget.c musb_ep->hw_ep->rx_double_buffered) hw_ep 763 drivers/usb/musb/musb_gadget.c musb_read_fifo(musb_ep->hw_ep, fifo_count, (u8 *) hw_ep 796 drivers/usb/musb/musb_gadget.c struct musb_hw_ep *hw_ep = &musb->endpoints[epnum]; hw_ep 798 drivers/usb/musb/musb_gadget.c if (hw_ep->is_shared_fifo) hw_ep 799 drivers/usb/musb/musb_gadget.c musb_ep = &hw_ep->ep_in; hw_ep 801 drivers/usb/musb/musb_gadget.c musb_ep = &hw_ep->ep_out; hw_ep 858 drivers/usb/musb/musb_gadget.c if ((dma->desired_mode == 0 && !hw_ep->rx_double_buffered) hw_ep 875 drivers/usb/musb/musb_gadget.c hw_ep->rx_double_buffered) hw_ep 910 drivers/usb/musb/musb_gadget.c struct musb_hw_ep *hw_ep; hw_ep 923 drivers/usb/musb/musb_gadget.c hw_ep = musb_ep->hw_ep; hw_ep 924 drivers/usb/musb/musb_gadget.c regs = hw_ep->regs; hw_ep 969 drivers/usb/musb/musb_gadget.c if (hw_ep->is_shared_fifo) hw_ep 974 drivers/usb/musb/musb_gadget.c if (tmp > hw_ep->max_packet_sz_tx) { hw_ep 989 drivers/usb/musb/musb_gadget.c musb_ep->hb_mult = (hw_ep->max_packet_sz_tx / hw_ep 1008 drivers/usb/musb/musb_gadget.c if (hw_ep->is_shared_fifo) hw_ep 1013 drivers/usb/musb/musb_gadget.c if (tmp > hw_ep->max_packet_sz_rx) { hw_ep 1031 drivers/usb/musb/musb_gadget.c if (hw_ep->is_shared_fifo) { hw_ep 1054 drivers/usb/musb/musb_gadget.c musb_ep->dma = c->channel_alloc(c, hw_ep, hw_ep 1425 drivers/usb/musb/musb_gadget.c void __iomem *epio = musb_ep->hw_ep->regs; hw_ep 1693 drivers/usb/musb/musb_gadget.c struct musb_hw_ep *hw_ep = musb->endpoints + epnum; hw_ep 1699 drivers/usb/musb/musb_gadget.c ep->hw_ep = hw_ep; hw_ep 1705 drivers/usb/musb/musb_gadget.c (!epnum || hw_ep->is_shared_fifo) ? "" : ( hw_ep 1716 drivers/usb/musb/musb_gadget.c usb_ep_set_maxpacket_limit(&ep->end_point, hw_ep->max_packet_sz_tx); hw_ep 1718 drivers/usb/musb/musb_gadget.c usb_ep_set_maxpacket_limit(&ep->end_point, hw_ep->max_packet_sz_rx); hw_ep 1726 drivers/usb/musb/musb_gadget.c if (!epnum || hw_ep->is_shared_fifo) { hw_ep 1742 drivers/usb/musb/musb_gadget.c struct musb_hw_ep *hw_ep; hw_ep 1748 drivers/usb/musb/musb_gadget.c for (epnum = 0, hw_ep = musb->endpoints; hw_ep 1750 drivers/usb/musb/musb_gadget.c epnum++, hw_ep++) { hw_ep 1751 drivers/usb/musb/musb_gadget.c if (hw_ep->is_shared_fifo /* || !epnum */) { hw_ep 1752 drivers/usb/musb/musb_gadget.c init_peripheral_ep(musb, &hw_ep->ep_in, epnum, 0); hw_ep 1755 drivers/usb/musb/musb_gadget.c if (hw_ep->max_packet_sz_tx) { hw_ep 1756 drivers/usb/musb/musb_gadget.c init_peripheral_ep(musb, &hw_ep->ep_in, hw_ep 1760 drivers/usb/musb/musb_gadget.c if (hw_ep->max_packet_sz_rx) { hw_ep 1761 drivers/usb/musb/musb_gadget.c init_peripheral_ep(musb, &hw_ep->ep_out, hw_ep 77 drivers/usb/musb/musb_gadget.h struct musb_hw_ep *hw_ep; hw_ep 203 drivers/usb/musb/musb_host.c struct musb_hw_ep *hw_ep = qh->hw_ep; hw_ep 204 drivers/usb/musb/musb_host.c int epnum = hw_ep->epnum; hw_ep 234 drivers/usb/musb/musb_host.c musb_ep_set_qh(hw_ep, is_in, qh); hw_ep 267 drivers/usb/musb/musb_host.c hw_ep->tx_channel ? "dma" : "pio"); hw_ep 269 drivers/usb/musb/musb_host.c if (!hw_ep->tx_channel) hw_ep 270 drivers/usb/musb/musb_host.c musb_h_tx_start(hw_ep); hw_ep 272 drivers/usb/musb/musb_host.c musb_h_tx_dma_start(hw_ep); hw_ep 293 drivers/usb/musb/musb_host.c void __iomem *epio = qh->hw_ep->regs; hw_ep 317 drivers/usb/musb/musb_host.c struct musb_hw_ep *hw_ep, int is_in) hw_ep 319 drivers/usb/musb/musb_host.c struct musb_qh *qh = musb_ep_get_qh(hw_ep, is_in); hw_ep 320 drivers/usb/musb/musb_host.c struct musb_hw_ep *ep = qh->hw_ep; hw_ep 397 drivers/usb/musb/musb_host.c hw_ep->epnum, is_in ? 'R' : 'T', next_urb(qh)); hw_ep 402 drivers/usb/musb/musb_host.c static u16 musb_h_flush_rxfifo(struct musb_hw_ep *hw_ep, u16 csr) hw_ep 414 drivers/usb/musb/musb_host.c musb_writew(hw_ep->regs, MUSB_RXCSR, csr); hw_ep 415 drivers/usb/musb/musb_host.c musb_writew(hw_ep->regs, MUSB_RXCSR, csr); hw_ep 418 drivers/usb/musb/musb_host.c return musb_readw(hw_ep->regs, MUSB_RXCSR); hw_ep 433 drivers/usb/musb/musb_host.c struct musb_hw_ep *hw_ep = musb->endpoints + epnum; hw_ep 434 drivers/usb/musb/musb_host.c void __iomem *epio = hw_ep->regs; hw_ep 435 drivers/usb/musb/musb_host.c struct musb_qh *qh = hw_ep->in_qh; hw_ep 500 drivers/usb/musb/musb_host.c musb_read_fifo(hw_ep, length, buf); hw_ep 505 drivers/usb/musb/musb_host.c musb_h_flush_rxfifo(hw_ep, csr); hw_ep 585 drivers/usb/musb/musb_host.c struct musb_hw_ep *hw_ep, struct musb_qh *qh, hw_ep 589 drivers/usb/musb/musb_host.c struct dma_channel *channel = hw_ep->tx_channel; hw_ep 590 drivers/usb/musb/musb_host.c void __iomem *epio = hw_ep->regs; hw_ep 612 drivers/usb/musb/musb_host.c can_bulk_split(hw_ep->musb, qh->type))) hw_ep 624 drivers/usb/musb/musb_host.c struct musb_hw_ep *hw_ep, hw_ep 631 drivers/usb/musb/musb_host.c struct dma_channel *channel = hw_ep->tx_channel; hw_ep 643 drivers/usb/musb/musb_host.c struct musb_hw_ep *hw_ep, struct musb_qh *qh, hw_ep 646 drivers/usb/musb/musb_host.c struct dma_channel *channel = hw_ep->tx_channel; hw_ep 650 drivers/usb/musb/musb_host.c if (musb_dma_inventra(hw_ep->musb) || musb_dma_ux500(hw_ep->musb)) hw_ep 651 drivers/usb/musb/musb_host.c musb_tx_dma_set_mode_mentor(dma, hw_ep, qh, urb, offset, hw_ep 653 drivers/usb/musb/musb_host.c else if (is_cppi_enabled(hw_ep->musb) || tusb_dma_omap(hw_ep->musb)) hw_ep 654 drivers/usb/musb/musb_host.c musb_tx_dma_set_mode_cppi_tusb(dma, hw_ep, qh, urb, offset, hw_ep 669 drivers/usb/musb/musb_host.c void __iomem *epio = hw_ep->regs; hw_ep 673 drivers/usb/musb/musb_host.c hw_ep->tx_channel = NULL; hw_ep 695 drivers/usb/musb/musb_host.c struct musb_hw_ep *hw_ep = musb->endpoints + epnum; hw_ep 696 drivers/usb/musb/musb_host.c void __iomem *epio = hw_ep->regs; hw_ep 697 drivers/usb/musb/musb_host.c struct musb_qh *qh = musb_ep_get_qh(hw_ep, !is_out); hw_ep 717 drivers/usb/musb/musb_host.c hw_ep->tx_channel = NULL; hw_ep 723 drivers/usb/musb/musb_host.c dma_channel = is_out ? hw_ep->tx_channel : hw_ep->rx_channel; hw_ep 726 drivers/usb/musb/musb_host.c dma_controller, hw_ep, is_out); hw_ep 728 drivers/usb/musb/musb_host.c hw_ep->tx_channel = dma_channel; hw_ep 730 drivers/usb/musb/musb_host.c hw_ep->rx_channel = dma_channel; hw_ep 757 drivers/usb/musb/musb_host.c if (!hw_ep->tx_double_buffered) hw_ep 758 drivers/usb/musb/musb_host.c musb_h_tx_flush_fifo(hw_ep); hw_ep 775 drivers/usb/musb/musb_host.c if (!hw_ep->tx_double_buffered) { hw_ep 790 drivers/usb/musb/musb_host.c musb_h_ep0_flush_fifo(hw_ep); hw_ep 806 drivers/usb/musb/musb_host.c qh->hb_mult = hw_ep->max_packet_sz_tx hw_ep 824 drivers/usb/musb/musb_host.c load_count = min((u32) hw_ep->max_packet_sz_tx, hw_ep 830 drivers/usb/musb/musb_host.c hw_ep, qh, urb, offset, len)) hw_ep 851 drivers/usb/musb/musb_host.c musb_write_fifo(hw_ep, load_count, buf); hw_ep 855 drivers/usb/musb/musb_host.c musb_write_fifo(hw_ep, load_count, buf); hw_ep 865 drivers/usb/musb/musb_host.c if (hw_ep->rx_reinit) { hw_ep 878 drivers/usb/musb/musb_host.c csr = musb_readw(hw_ep->regs, MUSB_RXCSR); hw_ep 884 drivers/usb/musb/musb_host.c hw_ep->epnum, csr); hw_ep 898 drivers/usb/musb/musb_host.c musb_writew(hw_ep->regs, MUSB_RXCSR, csr); hw_ep 899 drivers/usb/musb/musb_host.c csr = musb_readw(hw_ep->regs, MUSB_RXCSR); hw_ep 912 drivers/usb/musb/musb_host.c hw_ep->rx_channel = dma_channel = NULL; hw_ep 919 drivers/usb/musb/musb_host.c musb_writew(hw_ep->regs, MUSB_RXCSR, csr); hw_ep 920 drivers/usb/musb/musb_host.c csr = musb_readw(hw_ep->regs, MUSB_RXCSR); hw_ep 1009 drivers/usb/musb/musb_host.c struct musb_hw_ep *hw_ep = musb->control_ep; hw_ep 1010 drivers/usb/musb/musb_host.c struct musb_qh *qh = hw_ep->in_qh; hw_ep 1021 drivers/usb/musb/musb_host.c musb_read_fifo(hw_ep, fifo_count, fifo_dest); hw_ep 1060 drivers/usb/musb/musb_host.c musb_write_fifo(hw_ep, fifo_count, fifo_dest); hw_ep 1086 drivers/usb/musb/musb_host.c struct musb_hw_ep *hw_ep = musb->control_ep; hw_ep 1087 drivers/usb/musb/musb_host.c void __iomem *epio = hw_ep->regs; hw_ep 1088 drivers/usb/musb/musb_host.c struct musb_qh *qh = hw_ep->in_qh; hw_ep 1148 drivers/usb/musb/musb_host.c musb_h_ep0_flush_fifo(hw_ep); hw_ep 1162 drivers/usb/musb/musb_host.c musb_h_ep0_flush_fifo(hw_ep); hw_ep 1198 drivers/usb/musb/musb_host.c musb_advance_schedule(musb, urb, hw_ep, 1); hw_ep 1228 drivers/usb/musb/musb_host.c struct musb_hw_ep *hw_ep = musb->endpoints + epnum; hw_ep 1229 drivers/usb/musb/musb_host.c void __iomem *epio = hw_ep->regs; hw_ep 1230 drivers/usb/musb/musb_host.c struct musb_qh *qh = hw_ep->out_qh; hw_ep 1247 drivers/usb/musb/musb_host.c dma = is_dma_capable() ? hw_ep->tx_channel : NULL; hw_ep 1270 drivers/usb/musb/musb_host.c musb_bulk_nak_timeout(musb, hw_ep, 0); hw_ep 1299 drivers/usb/musb/musb_host.c musb_h_tx_flush_fifo(hw_ep); hw_ep 1435 drivers/usb/musb/musb_host.c musb_advance_schedule(musb, urb, hw_ep, USB_DIR_OUT); hw_ep 1438 drivers/usb/musb/musb_host.c if (musb_tx_dma_program(musb->dma_controller, hw_ep, qh, urb, hw_ep 1441 drivers/usb/musb/musb_host.c musb_h_tx_dma_start(hw_ep); hw_ep 1474 drivers/usb/musb/musb_host.c musb_write_fifo(hw_ep, length, qh->sg_miter.addr); hw_ep 1478 drivers/usb/musb/musb_host.c musb_write_fifo(hw_ep, length, urb->transfer_buffer + offset); hw_ep 1491 drivers/usb/musb/musb_host.c struct musb_hw_ep *hw_ep, hw_ep 1496 drivers/usb/musb/musb_host.c struct dma_channel *channel = hw_ep->rx_channel; hw_ep 1497 drivers/usb/musb/musb_host.c void __iomem *epio = hw_ep->regs; hw_ep 1509 drivers/usb/musb/musb_host.c musb_writew(hw_ep->regs, MUSB_RXCSR, val); hw_ep 1516 drivers/usb/musb/musb_host.c struct musb_hw_ep *hw_ep, hw_ep 1562 drivers/usb/musb/musb_host.c struct musb_hw_ep *hw_ep, hw_ep 1567 drivers/usb/musb/musb_host.c struct dma_channel *channel = hw_ep->rx_channel; hw_ep 1568 drivers/usb/musb/musb_host.c void __iomem *epio = hw_ep->regs; hw_ep 1591 drivers/usb/musb/musb_host.c if (musb_dma_cppi41(hw_ep->musb)) hw_ep 1592 drivers/usb/musb/musb_host.c done = musb_rx_dma_iso_cppi41(dma, hw_ep, qh, hw_ep 1632 drivers/usb/musb/musb_host.c struct musb_hw_ep *hw_ep, hw_ep 1638 drivers/usb/musb/musb_host.c struct musb *musb = hw_ep->musb; hw_ep 1639 drivers/usb/musb/musb_host.c void __iomem *epio = hw_ep->regs; hw_ep 1640 drivers/usb/musb/musb_host.c struct dma_channel *channel = hw_ep->rx_channel; hw_ep 1685 drivers/usb/musb/musb_host.c if (rx_count < hw_ep->max_packet_sz_rx) { hw_ep 1719 drivers/usb/musb/musb_host.c hw_ep->rx_channel = NULL; hw_ep 1732 drivers/usb/musb/musb_host.c struct musb_hw_ep *hw_ep, hw_ep 1741 drivers/usb/musb/musb_host.c struct musb_hw_ep *hw_ep, hw_ep 1758 drivers/usb/musb/musb_host.c struct musb_hw_ep *hw_ep = musb->endpoints + epnum; hw_ep 1760 drivers/usb/musb/musb_host.c void __iomem *epio = hw_ep->regs; hw_ep 1761 drivers/usb/musb/musb_host.c struct musb_qh *qh = hw_ep->in_qh; hw_ep 1774 drivers/usb/musb/musb_host.c dma = is_dma_capable() ? hw_ep->rx_channel : NULL; hw_ep 1788 drivers/usb/musb/musb_host.c musb_h_flush_rxfifo(hw_ep, MUSB_RXCSR_CLRDATATOG); hw_ep 1827 drivers/usb/musb/musb_host.c musb_bulk_nak_timeout(musb, hw_ep, 1); hw_ep 1855 drivers/usb/musb/musb_host.c musb_h_flush_rxfifo(hw_ep, MUSB_RXCSR_CLRDATATOG); hw_ep 1903 drivers/usb/musb/musb_host.c musb_writew(hw_ep->regs, MUSB_RXCSR, val); hw_ep 1907 drivers/usb/musb/musb_host.c done = musb_rx_dma_inventra_cppi41(c, hw_ep, qh, urb, xfer_len); hw_ep 1908 drivers/usb/musb/musb_host.c musb_dbg(hw_ep->musb, hw_ep 1936 drivers/usb/musb/musb_host.c musb_dbg(hw_ep->musb, hw_ep 1944 drivers/usb/musb/musb_host.c if (musb_rx_dma_in_inventra_cppi41(c, hw_ep, qh, urb, hw_ep 2004 drivers/usb/musb/musb_host.c musb_advance_schedule(musb, urb, hw_ep, USB_DIR_IN); hw_ep 2021 drivers/usb/musb/musb_host.c struct musb_hw_ep *hw_ep = NULL; hw_ep 2030 drivers/usb/musb/musb_host.c hw_ep = musb->control_ep; hw_ep 2046 drivers/usb/musb/musb_host.c for (epnum = 1, hw_ep = musb->endpoints + 1; hw_ep 2048 drivers/usb/musb/musb_host.c epnum++, hw_ep++) { hw_ep 2051 drivers/usb/musb/musb_host.c if (musb_ep_get_qh(hw_ep, is_in) != NULL) hw_ep 2054 drivers/usb/musb/musb_host.c if (hw_ep == musb->bulk_ep) hw_ep 2058 drivers/usb/musb/musb_host.c diff = hw_ep->max_packet_sz_rx; hw_ep 2060 drivers/usb/musb/musb_host.c diff = hw_ep->max_packet_sz_tx; hw_ep 2077 drivers/usb/musb/musb_host.c hw_ep = musb->endpoints + epnum; hw_ep 2079 drivers/usb/musb/musb_host.c txtype = (musb_readb(hw_ep->regs, MUSB_TXTYPE) hw_ep 2091 drivers/usb/musb/musb_host.c hw_ep = musb->bulk_ep; hw_ep 2118 drivers/usb/musb/musb_host.c hw_ep = musb->endpoints + best_end; hw_ep 2126 drivers/usb/musb/musb_host.c qh->hw_ep = hw_ep; hw_ep 2330 drivers/usb/musb/musb_host.c struct musb_hw_ep *ep = qh->hw_ep; hw_ep 2416 drivers/usb/musb/musb_host.c || musb_ep_get_qh(qh->hw_ep, is_in) != qh) { hw_ep 2458 drivers/usb/musb/musb_host.c if (musb_ep_get_qh(qh->hw_ep, is_in) == qh) { hw_ep 2474 drivers/usb/musb/musb_host.c musb_advance_schedule(musb, urb, qh->hw_ep, is_in); hw_ep 19 drivers/usb/musb/musb_host.h struct musb_hw_ep *hw_ep; /* current binding */ hw_ep 30 drivers/usb/musb/musb_io.h void (*read_fifo)(struct musb_hw_ep *hw_ep, u16 len, u8 *buf); hw_ep 31 drivers/usb/musb/musb_io.h void (*write_fifo)(struct musb_hw_ep *hw_ep, u16 len, const u8 *buf); hw_ep 292 drivers/usb/musb/musb_trace.h __string(name, dev_name(ch->hw_ep->musb->controller)) hw_ep 302 drivers/usb/musb/musb_trace.h __assign_str(name, dev_name(ch->hw_ep->musb->controller)); hw_ep 303 drivers/usb/musb/musb_trace.h __entry->hwep = ch->hw_ep->epnum; hw_ep 104 drivers/usb/musb/musbhsdma.c struct musb_hw_ep *hw_ep, u8 transmit) hw_ep 118 drivers/usb/musb/musbhsdma.c musb_channel->epnum = hw_ep->epnum; hw_ep 219 drivers/usb/musb/tusb6010.c static void tusb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *buf) hw_ep 221 drivers/usb/musb/tusb6010.c struct musb *musb = hw_ep->musb; hw_ep 222 drivers/usb/musb/tusb6010.c void __iomem *ep_conf = hw_ep->conf; hw_ep 223 drivers/usb/musb/tusb6010.c void __iomem *fifo = hw_ep->fifo; hw_ep 224 drivers/usb/musb/tusb6010.c u8 epnum = hw_ep->epnum; hw_ep 269 drivers/usb/musb/tusb6010.c static void tusb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *buf) hw_ep 271 drivers/usb/musb/tusb6010.c struct musb *musb = hw_ep->musb; hw_ep 272 drivers/usb/musb/tusb6010.c void __iomem *ep_conf = hw_ep->conf; hw_ep 273 drivers/usb/musb/tusb6010.c void __iomem *fifo = hw_ep->fifo; hw_ep 274 drivers/usb/musb/tusb6010.c u8 epnum = hw_ep->epnum; hw_ep 35 drivers/usb/musb/tusb6010_omap.c struct musb_hw_ep *hw_ep; hw_ep 104 drivers/usb/musb/tusb6010_omap.c struct musb_hw_ep *hw_ep = chdat->hw_ep; hw_ep 105 drivers/usb/musb/tusb6010_omap.c void __iomem *ep_conf = hw_ep->conf; hw_ep 143 drivers/usb/musb/tusb6010_omap.c musb_write_fifo(hw_ep, pio, buf); hw_ep 148 drivers/usb/musb/tusb6010_omap.c musb_read_fifo(hw_ep, pio, buf); hw_ep 171 drivers/usb/musb/tusb6010_omap.c csr = musb_readw(hw_ep->regs, MUSB_TXCSR); hw_ep 174 drivers/usb/musb/tusb6010_omap.c musb_writew(hw_ep->regs, MUSB_TXCSR, csr); hw_ep 188 drivers/usb/musb/tusb6010_omap.c struct musb_hw_ep *hw_ep = chdat->hw_ep; hw_ep 190 drivers/usb/musb/tusb6010_omap.c void __iomem *ep_conf = hw_ep->conf; hw_ep 191 drivers/usb/musb/tusb6010_omap.c dma_addr_t fifo_addr = hw_ep->fifo_sync; hw_ep 282 drivers/usb/musb/tusb6010_omap.c fifo_addr = hw_ep->fifo_async; hw_ep 328 drivers/usb/musb/tusb6010_omap.c csr = musb_readw(hw_ep->regs, MUSB_TXCSR); hw_ep 332 drivers/usb/musb/tusb6010_omap.c musb_writew(hw_ep->regs, MUSB_TXCSR, csr); hw_ep 334 drivers/usb/musb/tusb6010_omap.c csr = musb_readw(hw_ep->regs, MUSB_RXCSR); hw_ep 337 drivers/usb/musb/tusb6010_omap.c musb_writew(hw_ep->regs, MUSB_RXCSR, hw_ep 423 drivers/usb/musb/tusb6010_omap.c struct musb_hw_ep *hw_ep, hw_ep 437 drivers/usb/musb/tusb6010_omap.c if (hw_ep->epnum == 0) { hw_ep 457 drivers/usb/musb/tusb6010_omap.c chdat->hw_ep = hw_ep; hw_ep 458 drivers/usb/musb/tusb6010_omap.c chdat->epnum = hw_ep->epnum; hw_ep 33 drivers/usb/musb/ux500_dma.c struct musb_hw_ep *hw_ep; hw_ep 55 drivers/usb/musb/ux500_dma.c struct musb_hw_ep *hw_ep = ux500_channel->hw_ep; hw_ep 56 drivers/usb/musb/ux500_dma.c struct musb *musb = hw_ep->musb; hw_ep 60 drivers/usb/musb/ux500_dma.c hw_ep->epnum); hw_ep 65 drivers/usb/musb/ux500_dma.c musb_dma_completion(musb, hw_ep->epnum, ux500_channel->is_tx); hw_ep 75 drivers/usb/musb/ux500_dma.c struct musb_hw_ep *hw_ep = ux500_channel->hw_ep; hw_ep 83 drivers/usb/musb/ux500_dma.c dma_addr_t usb_fifo_addr = (musb->io.fifo_offset(hw_ep->epnum) + hw_ep 129 drivers/usb/musb/ux500_dma.c struct musb_hw_ep *hw_ep, u8 is_tx) hw_ep 135 drivers/usb/musb/ux500_dma.c u8 ch_num = hw_ep->epnum - 1; hw_ep 154 drivers/usb/musb/ux500_dma.c ux500_channel->hw_ep = hw_ep; hw_ep 158 drivers/usb/musb/ux500_dma.c hw_ep->epnum, is_tx, ch_num); hw_ep 212 drivers/usb/musb/ux500_dma.c void __iomem *epio = musb->endpoints[ux500_channel->hw_ep->epnum].regs;