Lines Matching defs:epnum
2380 * @epnum: The endpoint received from
2386 static void dwc2_hsotg_handle_outdone(struct dwc2_hsotg *hsotg, int epnum)
2388 u32 epsize = dwc2_readl(hsotg, DOEPTSIZ(epnum));
2389 struct dwc2_hsotg_ep *hs_ep = hsotg->eps_out[epnum];
2400 if (epnum == 0 && hsotg->ep0_state == DWC2_EP0_STATUS_OUT) {
2445 if (!using_desc_dma(hsotg) && epnum == 0 &&
2480 u32 epnum, status, size;
2484 epnum = grxstsr & GRXSTS_EPNUM_MASK;
2491 __func__, grxstsr, size, epnum);
2503 dwc2_hsotg_handle_outdone(hsotg, epnum);
2517 dwc2_hsotg_handle_outdone(hsotg, epnum);
2521 dwc2_hsotg_rx_data(hsotg, epnum, size);
2532 dwc2_hsotg_rx_data(hsotg, epnum, size);
4780 * @epnum: The endpoint number
4789 int epnum,
4794 if (epnum == 0)
4802 hs_ep->index = epnum;
4804 snprintf(hs_ep->name, sizeof(hs_ep->name), "ep%d%s", epnum, dir);
4810 if (epnum)
4820 epnum ? 1024 : EP0_MPS_LIMIT);
4823 if (epnum == 0) {
4844 u32 next = DXEPCTL_NEXTEP((epnum + 1) % 15);
4847 dwc2_writel(hsotg, next, DIEPCTL(epnum));
4849 dwc2_writel(hsotg, next, DOEPCTL(epnum));
4968 int epnum;
5052 for (epnum = 0; epnum < hsotg->num_of_eps; epnum++) {
5053 if (hsotg->eps_in[epnum])
5054 dwc2_hsotg_initep(hsotg, hsotg->eps_in[epnum],
5055 epnum, 1);
5056 if (hsotg->eps_out[epnum])
5057 dwc2_hsotg_initep(hsotg, hsotg->eps_out[epnum],
5058 epnum, 0);