• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/usb/musb/

Lines Matching defs:hw_ep

238 void musb_write_fifo(struct musb_hw_ep *hw_ep, u16 len, const u8 *src)
240 void __iomem *fifo = hw_ep->fifo;
245 'T', hw_ep->epnum, fifo, len, src);
278 void musb_read_fifo(struct musb_hw_ep *hw_ep, u16 len, u8 *dst)
280 void __iomem *fifo = hw_ep->fifo;
283 'R', hw_ep->epnum, fifo, len, dst);
1135 fifo_setup(struct musb *musb, struct musb_hw_ep *hw_ep,
1144 /* expect hw_ep has already been zero-initialized */
1161 musb_writeb(mbase, MUSB_INDEX, hw_ep->epnum);
1167 if (hw_ep->epnum == 1)
1168 musb->bulk_ep = hw_ep;
1175 hw_ep->tx_double_buffered = !!(c_size & MUSB_FIFOSZ_DPB);
1176 hw_ep->max_packet_sz_tx = maxpacket;
1181 hw_ep->rx_double_buffered = !!(c_size & MUSB_FIFOSZ_DPB);
1182 hw_ep->max_packet_sz_rx = maxpacket;
1187 hw_ep->rx_double_buffered = !!(c_size & MUSB_FIFOSZ_DPB);
1188 hw_ep->max_packet_sz_rx = maxpacket;
1192 hw_ep->tx_double_buffered = hw_ep->rx_double_buffered;
1193 hw_ep->max_packet_sz_tx = maxpacket;
1195 hw_ep->is_shared_fifo = true;
1202 musb->epmask |= (1 << hw_ep->epnum);
1216 struct musb_hw_ep *hw_ep = musb->endpoints;
1259 offset = fifo_setup(musb, hw_ep, &ep0_cfg, 0);
1274 offset = fifo_setup(musb, hw_ep + epn, cfg++, offset);
1307 struct musb_hw_ep *hw_ep;
1316 hw_ep = musb->endpoints + epnum;
1318 ret = musb_read_fifosize(musb, hw_ep, epnum);
1325 if (hw_ep->max_packet_sz_tx < 512
1326 || hw_ep->max_packet_sz_rx < 512)
1334 musb->bulk_ep = hw_ep;
1433 struct musb_hw_ep *hw_ep = musb->endpoints + i;
1435 hw_ep->fifo = MUSB_FIFO_OFFSET(i) + mbase;
1437 hw_ep->fifo_async = musb->async + 0x400 + MUSB_FIFO_OFFSET(i);
1438 hw_ep->fifo_sync = musb->sync + 0x400 + MUSB_FIFO_OFFSET(i);
1439 hw_ep->fifo_sync_va =
1443 hw_ep->conf = mbase - 0x400 + TUSB_EP0_CONF;
1445 hw_ep->conf = mbase + 0x400 + (((i - 1) & 0xf) << 2);
1448 hw_ep->regs = MUSB_EP_OFFSET(i, 0) + mbase;
1450 hw_ep->target_regs = musb_read_target_reg_base(i, mbase);
1451 hw_ep->rx_reinit = 1;
1452 hw_ep->tx_reinit = 1;
1455 if (hw_ep->max_packet_sz_tx) {
1457 "%s: hw_ep %d%s, %smax %d\n",
1459 hw_ep->is_shared_fifo ? "shared" : "tx",
1460 hw_ep->tx_double_buffered
1462 hw_ep->max_packet_sz_tx);
1464 if (hw_ep->max_packet_sz_rx && !hw_ep->is_shared_fifo) {
1466 "%s: hw_ep %d%s, %smax %d\n",
1469 hw_ep->rx_double_buffered
1471 hw_ep->max_packet_sz_rx);
1473 if (!(hw_ep->max_packet_sz_tx || hw_ep->max_packet_sz_rx))
1474 DBG(1, "hw_ep %d not configured\n", i);