Lines Matching refs:hw_ep

281 	void __iomem *epio = qh->hw_ep->regs;
314 static void musb_default_write_fifo(struct musb_hw_ep *hw_ep, u16 len,
317 struct musb *musb = hw_ep->musb;
318 void __iomem *fifo = hw_ep->fifo;
326 'T', hw_ep->epnum, fifo, len, src);
359 static void musb_default_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst)
361 struct musb *musb = hw_ep->musb;
362 void __iomem *fifo = hw_ep->fifo;
368 'R', hw_ep->epnum, fifo, len, dst);
447 void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst)
449 return hw_ep->musb->io.read_fifo(hw_ep, len, dst);
452 void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *src)
454 return hw_ep->musb->io.write_fifo(hw_ep, len, src);
1380 fifo_setup(struct musb *musb, struct musb_hw_ep *hw_ep,
1389 /* expect hw_ep has already been zero-initialized */
1406 musb_writeb(mbase, MUSB_INDEX, hw_ep->epnum);
1411 if (hw_ep->epnum == 1)
1412 musb->bulk_ep = hw_ep;
1418 hw_ep->tx_double_buffered = !!(c_size & MUSB_FIFOSZ_DPB);
1419 hw_ep->max_packet_sz_tx = maxpacket;
1424 hw_ep->rx_double_buffered = !!(c_size & MUSB_FIFOSZ_DPB);
1425 hw_ep->max_packet_sz_rx = maxpacket;
1430 hw_ep->rx_double_buffered = !!(c_size & MUSB_FIFOSZ_DPB);
1431 hw_ep->max_packet_sz_rx = maxpacket;
1435 hw_ep->tx_double_buffered = hw_ep->rx_double_buffered;
1436 hw_ep->max_packet_sz_tx = maxpacket;
1438 hw_ep->is_shared_fifo = true;
1445 musb->epmask |= (1 << hw_ep->epnum);
1459 struct musb_hw_ep *hw_ep = musb->endpoints;
1501 offset = fifo_setup(musb, hw_ep, &ep0_cfg, 0);
1516 offset = fifo_setup(musb, hw_ep + epn, cfg++, offset);
1547 struct musb_hw_ep *hw_ep;
1557 hw_ep = musb->endpoints + epnum;
1559 ret = musb_read_fifosize(musb, hw_ep, epnum);
1563 /* FIXME set up hw_ep->{rx,tx}_double_buffered */
1566 if (hw_ep->max_packet_sz_tx < 512
1567 || hw_ep->max_packet_sz_rx < 512)
1575 musb->bulk_ep = hw_ep;
1666 struct musb_hw_ep *hw_ep = musb->endpoints + i;
1668 hw_ep->fifo = musb->io.fifo_offset(i) + mbase;
1671 hw_ep->fifo_async = musb->async + 0x400 +
1673 hw_ep->fifo_sync = musb->sync + 0x400 +
1675 hw_ep->fifo_sync_va =
1679 hw_ep->conf = mbase - 0x400 + TUSB_EP0_CONF;
1681 hw_ep->conf = mbase + 0x400 +
1686 hw_ep->regs = musb->io.ep_offset(i, 0) + mbase;
1687 hw_ep->rx_reinit = 1;
1688 hw_ep->tx_reinit = 1;
1690 if (hw_ep->max_packet_sz_tx) {
1691 musb_dbg(musb, "%s: hw_ep %d%s, %smax %d",
1693 hw_ep->is_shared_fifo ? "shared" : "tx",
1694 hw_ep->tx_double_buffered
1696 hw_ep->max_packet_sz_tx);
1698 if (hw_ep->max_packet_sz_rx && !hw_ep->is_shared_fifo) {
1699 musb_dbg(musb, "%s: hw_ep %d%s, %smax %d",
1702 hw_ep->rx_double_buffered
1704 hw_ep->max_packet_sz_rx);
1706 if (!(hw_ep->max_packet_sz_tx || hw_ep->max_packet_sz_rx))
1707 musb_dbg(musb, "hw_ep %d not configured", i);