Lines Matching defs:ep_no

1673 	if (GRXSTSRD_CHNUM_GET(sc->sc_last_rx_status) != td->ep_no)
1740 temp = sc->sc_out_ctl[td->ep_no];
1753 sc->sc_out_ctl[td->ep_no] = temp;
1768 if (td->ep_no == 0) {
1775 DWC_OTG_WRITE_4(sc, DOTG_DOEPTSIZ(td->ep_no),
1781 temp = sc->sc_out_ctl[td->ep_no];
1782 DWC_OTG_WRITE_4(sc, DOTG_DOEPCTL(td->ep_no), temp |
2138 max_buffer = sc->sc_hw_ep_profile[td->ep_no].max_buffer;
2145 if ((td->ep_no == 0) && (temp != 0) &&
2168 temp = DWC_OTG_READ_4(sc, DOTG_DIEPTSIZ(td->ep_no));
2194 DOTG_DFIFO(td->ep_no), count);
2217 temp = DWC_OTG_READ_4(sc, DOTG_DIEPTSIZ(td->ep_no));
2221 "DIEPCTL=0x%08x\n", td->ep_no,
2223 temp, DWC_OTG_READ_4(sc, DOTG_DIEPCTL(td->ep_no)));
2228 DPRINTFN(5, "rem=%u ep=%d\n", td->remainder, td->ep_no);
2271 DWC_OTG_WRITE_4(sc, DOTG_DIEPTSIZ(td->ep_no),
2279 temp = sc->sc_in_ctl[td->ep_no];
2292 sc->sc_in_ctl[td->ep_no] = temp;
2296 DWC_OTG_WRITE_4(sc, DOTG_DIEPCTL(td->ep_no), temp |
2323 temp = DWC_OTG_READ_4(sc, DOTG_DIEPTSIZ(td->ep_no));
2327 DPRINTFN(5, "busy ep=%d\n", td->ep_no);
2338 if ((td->ep_no == 0) && (temp != 0) &&
2723 uint8_t ep_no;
2734 ep_no = GRXSTSRD_CHNUM_GET(sc->sc_last_rx_status);
2735 sc->sc_chan_state[ep_no].wait_halted = 0;
2736 DPRINTFN(5, "channel halt complete ch=%u\n", ep_no);
2749 ep_no = GRXSTSRD_CHNUM_GET(
2754 sc->sc_current_rx_fifo = DOTG_DFIFO(ep_no);
2756 DPRINTF("Reading %d bytes from ep %d\n", temp, ep_no);
2759 if (!(sc->sc_active_rx_ep & (1U << ep_no))) {
2767 sc->sc_last_rx_status, ep_no,
2775 uint8_t ep_no;
2777 ep_no = GRXSTSRD_CHNUM_GET(
2781 if (!(sc->sc_active_rx_ep & (1U << ep_no))) {
3655 uint8_t ep_no;
3670 ep_no = ep->edesc->bEndpointAddress;
3672 DPRINTFN(5, "endpoint=0x%x\n", ep_no);
3674 if (ep_no & UE_DIR_IN) {
3675 reg = DOTG_DIEPCTL(ep_no & UE_ADDR);
3676 temp = sc->sc_in_ctl[ep_no & UE_ADDR];
3678 reg = DOTG_DOEPCTL(ep_no & UE_ADDR);
3679 temp = sc->sc_out_ctl[ep_no & UE_ADDR];
3687 if (!(ep_no & UE_DIR_IN)) {
3688 sc->sc_active_rx_ep &= ~(1U << (ep_no & UE_ADDR));
3691 (ep_no & UE_ADDR) == GRXSTSRD_CHNUM_GET(
3705 uint8_t ep_no, uint8_t ep_type, uint8_t ep_dir)
3716 reg = DOTG_DIEPCTL(ep_no);
3718 reg = DOTG_DOEPCTL(ep_no);
3719 sc->sc_active_rx_ep |= (1U << ep_no);
3740 temp |= DIEPCTL_TXFNUM_SET(ep_no);
3743 sc->sc_in_ctl[ep_no] = temp;
3745 sc->sc_out_ctl[ep_no] = temp;
3754 GRSTCTL_TXFIFO(ep_no) |
3758 DOTG_DIEPTSIZ(ep_no), 0);
4778 uint8_t ep_no;
4817 ep_no = xfer->endpointno & UE_ADDR;
4825 dwc_otg_get_hw_ep_profile(parm->udev, &pf, ep_no);
4859 td->ep_no = ep_no;