Lines Matching refs:epnum

79 static void musb_ep_program(struct musb *musb, u8 epnum,
115 ep->epnum, csr))
138 ep->epnum, csr);
153 if (ep->epnum) {
204 int epnum = hw_ep->epnum;
235 musb_ep_program(musb, epnum, urb, !is_in, buf, offset, len);
258 musb_dbg(musb, "SOF for %d", epnum);
266 musb_dbg(musb, "Start TX%d %s", epnum,
312 usb_settoggle(urb->dev, qh->epnum, !is_in, toggle ? 1 : 0);
385 hw_ep->epnum, is_in ? 'R' : 'T', next_urb(qh));
413 musb_host_packet_rx(struct musb *musb, struct urb *urb, u8 epnum, u8 iso_err)
421 struct musb_hw_ep *hw_ep = musb->endpoints + epnum;
427 /* musb_ep_select(mbase, epnum); */
429 musb_dbg(musb, "RX%d count %d, buffer %p len %d/%d", epnum, rx_count,
514 musb_rx_reinit(struct musb *musb, struct musb_qh *qh, u8 epnum)
516 struct musb_hw_ep *ep = musb->endpoints + epnum;
546 WARNING("rx%d, packet/%d ready?\n", ep->epnum,
553 musb_write_rxfunaddr(musb, epnum, qh->addr_reg);
554 musb_write_rxhubaddr(musb, epnum, qh->h_addr_reg);
555 musb_write_rxhubport(musb, epnum, qh->h_port_reg);
675 static void musb_ep_program(struct musb *musb, u8 epnum,
683 struct musb_hw_ep *hw_ep = musb->endpoints + epnum;
693 epnum, urb, urb->dev->speed,
694 qh->addr_reg, qh->epnum, is_out ? "out" : "in",
698 musb_ep_select(mbase, epnum);
710 if (use_dma && is_dma_capable() && epnum && dma_controller) {
735 musb_writew(mbase, MUSB_INTRTXE, int_txe & ~(1 << epnum));
738 if (epnum) {
778 musb_write_txfunaddr(musb, epnum, qh->addr_reg);
779 musb_write_txhubaddr(musb, epnum, qh->h_addr_reg);
780 musb_write_txhubport(musb, epnum, qh->h_port_reg);
781 /* FIXME if !epnum, do the same for RX ... */
786 if (epnum) {
849 musb_rx_reinit(musb, qh, epnum);
862 hw_ep->epnum, csr);
896 musb_dbg(musb, "RXCSR%d := %04x", epnum, csr);
916 musb_ep_select(mbase, ep->epnum);
953 usb_settoggle(urb->dev, cur_qh->epnum, !is_in, toggle ? 1 : 0);
1201 void musb_host_tx(struct musb *musb, u8 epnum)
1208 struct musb_hw_ep *hw_ep = musb->endpoints + epnum;
1217 musb_ep_select(mbase, epnum);
1222 musb_dbg(musb, "extra TX%d ready, csr %04x", epnum, tx_csr);
1229 musb_dbg(musb, "OUT/TX%d end, csr %04x%s", epnum, tx_csr,
1235 musb_dbg(musb, "TX end %d stall", epnum);
1242 musb_dbg(musb, "TX 3strikes on ep=%d", epnum);
1249 musb_dbg(musb, "NAK timeout on TX%d ep", epnum);
1252 musb_dbg(musb, "TX ep%d device not responding", epnum);
1261 musb_ep_select(mbase, epnum);
1287 musb_ep_select(mbase, epnum);
1298 musb_dbg(musb, "extra TX%d ready, csr %04x", epnum, tx_csr);
1463 musb_ep_select(mbase, epnum);
1735 void musb_host_rx(struct musb *musb, u8 epnum)
1738 struct musb_hw_ep *hw_ep = musb->endpoints + epnum;
1751 musb_ep_select(mbase, epnum);
1767 epnum, val, musb_readw(epio, MUSB_RXCOUNT));
1777 musb_dbg(musb, "RX end %d STALL", epnum);
1783 dev_err(musb->controller, "ep%d RX three-strikes error", epnum);
1800 musb_dbg(musb, "RX end %d NAK timeout", epnum);
1816 musb_ep_select(mbase, epnum);
1823 musb_dbg(musb, "RX end %d ISO data error", epnum);
1829 epnum);
1849 ERR("RX%d dma busy, csr %04x\n", epnum, rx_csr);
1873 musb_dbg(musb, "RXCSR%d %04x, reqpkt, len %zu%s", epnum, rx_csr,
1877 musb_ep_select(mbase, epnum);
1896 epnum, done ? "off" : "reset",
1913 musb_ep_select(mbase, epnum);
1924 epnum, musb_readw(epio, MUSB_RXCOUNT),
1964 done = musb_host_packet_rx(musb, urb, epnum,
1973 epnum, iso_err);
2006 int best_end, epnum;
2032 for (epnum = 1, hw_ep = musb->endpoints + 1;
2033 epnum < musb->nr_endpoints;
2034 epnum++, hw_ep++) {
2063 hw_ep = musb->endpoints + epnum;
2064 toggle = usb_gettoggle(urb->dev, qh->epnum, !is_in);
2072 best_end = epnum;
2201 qh->epnum = usb_endpoint_num(epd);
2207 type_reg = (qh->type << 4) | qh->epnum;
2319 unsigned hw_end = ep->epnum;
2333 is_in ? 'R' : 'T', ep->epnum,
2340 if (ep->epnum && is_in) {
2346 musb_platform_clear_ep_rxintr(musb, ep->epnum);
2347 } else if (ep->epnum) {