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);
4728 * @epnum: The endpoint number
4737 int epnum,
4742 if (epnum == 0)
4750 hs_ep->index = epnum;
4752 snprintf(hs_ep->name, sizeof(hs_ep->name), "ep%d%s", epnum, dir);
4758 if (epnum)
4768 epnum ? 1024 : EP0_MPS_LIMIT);
4771 if (epnum == 0) {
4792 u32 next = DXEPCTL_NEXTEP((epnum + 1) % 15);
4795 dwc2_writel(hsotg, next, DIEPCTL(epnum));
4797 dwc2_writel(hsotg, next, DOEPCTL(epnum));
4916 int epnum;
4988 for (epnum = 0; epnum < hsotg->num_of_eps; epnum++) {
4989 if (hsotg->eps_in[epnum])
4990 dwc2_hsotg_initep(hsotg, hsotg->eps_in[epnum],
4991 epnum, 1);
4992 if (hsotg->eps_out[epnum])
4993 dwc2_hsotg_initep(hsotg, hsotg->eps_out[epnum],
4994 epnum, 0);