Home | History | Annotate | Download | only in musb-new

Lines Matching defs:epnum

82 static void musb_ep_program(struct musb *musb, u8 epnum,
107 ep->epnum, csr))
130 ep->epnum, csr);
145 if (ep->epnum) {
199 int epnum = hw_ep->epnum;
229 qh, urb, address, qh->epnum,
239 epnum, buf + offset, len);
243 musb_ep_program(musb, epnum, urb, !is_in, buf, offset, len);
272 dev_dbg(musb->controller, "SOF for %d\n", epnum);
282 dev_dbg(musb->controller, "Start TX%d %s\n", epnum,
329 usb_settoggle(urb->dev, qh->epnum, !is_in, csr ? 1 : 0);
421 hw_ep->epnum, is_in ? 'R' : 'T', next_urb(qh));
449 musb_host_packet_rx(struct musb *musb, struct urb *urb, u8 epnum, u8 iso_err)
457 struct musb_hw_ep *hw_ep = musb->endpoints + epnum;
463 /* musb_ep_select(mbase, epnum); */
465 dev_dbg(musb->controller, "RX%d count %d, buffer %p len %d/%d\n", epnum, rx_count,
585 WARNING("rx%d, packet/%d ready?\n", ep->epnum,
682 static void musb_ep_program(struct musb *musb, u8 epnum,
690 struct musb_hw_ep *hw_ep = musb->endpoints + epnum;
698 epnum, urb, urb->dev->speed,
699 qh->addr_reg, qh->epnum, is_out ? "out" : "in",
703 musb_ep_select(mbase, epnum);
707 if (is_dma_capable() && epnum && dma_controller) {
732 musb_writew(mbase, MUSB_INTRTXE, int_txe & ~(1 << epnum));
735 if (epnum) {
754 if (usb_gettoggle(urb->dev, qh->epnum, 1))
772 musb_write_txfunaddr(mbase, epnum, qh->addr_reg);
773 musb_write_txhubaddr(mbase, epnum, qh->h_addr_reg);
774 musb_write_txhubport(mbase, epnum, qh->h_port_reg);
775 /* FIXME if !epnum, do the same for RX ... */
780 if (epnum) {
828 if (usb_gettoggle(urb->dev, qh->epnum, 0))
843 hw_ep->epnum, csr);
877 dev_dbg(musb->controller, "RXCSR%d := %04x\n", epnum, csr);
1102 void musb_host_tx(struct musb *musb, u8 epnum)
1109 struct musb_hw_ep *hw_ep = musb->endpoints + epnum;
1118 musb_ep_select(mbase, epnum);
1123 dev_dbg(musb->controller, "extra TX%d ready, csr %04x\n", epnum, tx_csr);
1129 dev_dbg(musb->controller, "OUT/TX%d end, csr %04x%s\n", epnum, tx_csr,
1135 dev_dbg(musb->controller, "TX end %d stall\n", epnum);
1142 dev_dbg(musb->controller, "TX 3strikes on ep=%d\n", epnum);
1147 dev_dbg(musb->controller, "TX end=%d device not responding\n", epnum);
1157 musb_ep_select(mbase, epnum);
1181 musb_ep_select(mbase, epnum);
1192 dev_dbg(musb->controller, "extra TX%d ready, csr %04x\n", epnum, tx_csr);
1338 musb_ep_select(mbase, epnum);
1395 musb_ep_select(mbase, ep->epnum);
1431 void musb_host_rx(struct musb *musb, u8 epnum)
1434 struct musb_hw_ep *hw_ep = musb->endpoints + epnum;
1446 musb_ep_select(mbase, epnum);
1461 dev_dbg(musb->controller, "BOGUS RX%d ready, csr %04x, count %d\n", epnum, val,
1470 epnum, rx_csr, urb->actual_length,
1476 dev_dbg(musb->controller, "RX end %d STALL\n", epnum);
1482 dev_dbg(musb->controller, "end %d RX proto error\n", epnum);
1490 dev_dbg(musb->controller, "RX end %d NAK timeout\n", epnum);
1506 musb_ep_select(mbase, epnum);
1513 dev_dbg(musb->controller, "RX end %d ISO data error\n", epnum);
1519 epnum);
1539 ERR("RX%d dma busy, csr %04x\n", epnum, rx_csr);
1564 dev_dbg(musb->controller, "RXCSR%d %04x, reqpkt, len %zu%s\n", epnum, rx_csr,
1568 musb_ep_select(mbase, epnum);
1614 dev_dbg(musb->controller, "ep %d dma %s, rxcsr %04x, rxcount %d\n", epnum,
1631 musb_ep_select(mbase, epnum);
1648 epnum, rx_count,
1762 epnum, iso_err);
1789 int best_end, epnum;
1815 for (epnum = 1, hw_ep = musb->endpoints + 1;
1816 epnum < musb->nr_endpoints;
1817 epnum++, hw_ep++) {
1846 hw_ep = musb->endpoints + epnum;
1847 toggle = usb_gettoggle(urb->dev, qh->epnum, !is_in);
1855 best_end = epnum;
1989 qh->epnum = usb_endpoint_num(epd);
1995 type_reg = (qh->type << 4) | qh->epnum;
2126 unsigned hw_end = ep->epnum;
2142 is_in ? 'R' : 'T', ep->epnum,
2149 if (ep->epnum && is_in) {
2157 } else if (ep->epnum) {