Lines Matching refs:epnum

1519 static void s3c_hsotg_handle_outdone(struct dwc2_hsotg *hsotg, int epnum)  in s3c_hsotg_handle_outdone()  argument
1521 u32 epsize = readl(hsotg->regs + DOEPTSIZ(epnum)); in s3c_hsotg_handle_outdone()
1522 struct s3c_hsotg_ep *hs_ep = hsotg->eps_out[epnum]; in s3c_hsotg_handle_outdone()
1533 if (epnum == 0 && hsotg->ep0_state == DWC2_EP0_STATUS_OUT) { in s3c_hsotg_handle_outdone()
1574 if (epnum == 0 && hsotg->ep0_state == DWC2_EP0_DATA_OUT) { in s3c_hsotg_handle_outdone()
1619 u32 epnum, status, size; in s3c_hsotg_handle_rx() local
1623 epnum = grxstsr & GRXSTS_EPNUM_MASK; in s3c_hsotg_handle_rx()
1630 __func__, grxstsr, size, epnum); in s3c_hsotg_handle_rx()
1642 s3c_hsotg_handle_outdone(hsotg, epnum); in s3c_hsotg_handle_rx()
1656 s3c_hsotg_handle_outdone(hsotg, epnum); in s3c_hsotg_handle_rx()
1660 s3c_hsotg_rx_data(hsotg, epnum, size); in s3c_hsotg_handle_rx()
1671 s3c_hsotg_rx_data(hsotg, epnum, size); in s3c_hsotg_handle_rx()
3241 int epnum, in s3c_hsotg_initep() argument
3246 if (epnum == 0) in s3c_hsotg_initep()
3254 hs_ep->index = epnum; in s3c_hsotg_initep()
3256 snprintf(hs_ep->name, sizeof(hs_ep->name), "ep%d%s", epnum, dir); in s3c_hsotg_initep()
3262 if (epnum) in s3c_hsotg_initep()
3267 usb_ep_set_maxpacket_limit(&hs_ep->ep, epnum ? 1024 : EP0_MPS_LIMIT); in s3c_hsotg_initep()
3276 u32 next = DXEPCTL_NEXTEP((epnum + 1) % 15); in s3c_hsotg_initep()
3278 writel(next, hsotg->regs + DIEPCTL(epnum)); in s3c_hsotg_initep()
3280 writel(next, hsotg->regs + DOEPCTL(epnum)); in s3c_hsotg_initep()
3846 int epnum; in dwc2_gadget_init() local
4008 for (epnum = 0; epnum < hsotg->num_of_eps; epnum++) { in dwc2_gadget_init()
4009 if (hsotg->eps_in[epnum]) in dwc2_gadget_init()
4010 s3c_hsotg_initep(hsotg, hsotg->eps_in[epnum], in dwc2_gadget_init()
4011 epnum, 1); in dwc2_gadget_init()
4012 if (hsotg->eps_out[epnum]) in dwc2_gadget_init()
4013 s3c_hsotg_initep(hsotg, hsotg->eps_out[epnum], in dwc2_gadget_init()
4014 epnum, 0); in dwc2_gadget_init()