Lines Matching refs:epnum
1534 static void dwc2_hsotg_handle_outdone(struct dwc2_hsotg *hsotg, int epnum) in dwc2_hsotg_handle_outdone() argument
1536 u32 epsize = dwc2_readl(hsotg->regs + DOEPTSIZ(epnum)); in dwc2_hsotg_handle_outdone()
1537 struct dwc2_hsotg_ep *hs_ep = hsotg->eps_out[epnum]; in dwc2_hsotg_handle_outdone()
1548 if (epnum == 0 && hsotg->ep0_state == DWC2_EP0_STATUS_OUT) { in dwc2_hsotg_handle_outdone()
1589 if (epnum == 0 && hsotg->ep0_state == DWC2_EP0_DATA_OUT) { in dwc2_hsotg_handle_outdone()
1602 dwc2_hsotg_change_ep_iso_parity(hsotg, DOEPCTL(epnum)); in dwc2_hsotg_handle_outdone()
1644 u32 epnum, status, size; in dwc2_hsotg_handle_rx() local
1648 epnum = grxstsr & GRXSTS_EPNUM_MASK; in dwc2_hsotg_handle_rx()
1655 __func__, grxstsr, size, epnum); in dwc2_hsotg_handle_rx()
1667 dwc2_hsotg_handle_outdone(hsotg, epnum); in dwc2_hsotg_handle_rx()
1681 dwc2_hsotg_handle_outdone(hsotg, epnum); in dwc2_hsotg_handle_rx()
1685 dwc2_hsotg_rx_data(hsotg, epnum, size); in dwc2_hsotg_handle_rx()
1696 dwc2_hsotg_rx_data(hsotg, epnum, size); in dwc2_hsotg_handle_rx()
3336 int epnum, in dwc2_hsotg_initep() argument
3341 if (epnum == 0) in dwc2_hsotg_initep()
3349 hs_ep->index = epnum; in dwc2_hsotg_initep()
3351 snprintf(hs_ep->name, sizeof(hs_ep->name), "ep%d%s", epnum, dir); in dwc2_hsotg_initep()
3357 if (epnum) in dwc2_hsotg_initep()
3362 usb_ep_set_maxpacket_limit(&hs_ep->ep, epnum ? 1024 : EP0_MPS_LIMIT); in dwc2_hsotg_initep()
3365 if (epnum == 0) { in dwc2_hsotg_initep()
3384 u32 next = DXEPCTL_NEXTEP((epnum + 1) % 15); in dwc2_hsotg_initep()
3386 dwc2_writel(next, hsotg->regs + DIEPCTL(epnum)); in dwc2_hsotg_initep()
3388 dwc2_writel(next, hsotg->regs + DOEPCTL(epnum)); in dwc2_hsotg_initep()
3555 int epnum; in dwc2_gadget_init() local
3650 for (epnum = 0; epnum < hsotg->num_of_eps; epnum++) { in dwc2_gadget_init()
3651 if (hsotg->eps_in[epnum]) in dwc2_gadget_init()
3652 dwc2_hsotg_initep(hsotg, hsotg->eps_in[epnum], in dwc2_gadget_init()
3653 epnum, 1); in dwc2_gadget_init()
3654 if (hsotg->eps_out[epnum]) in dwc2_gadget_init()
3655 dwc2_hsotg_initep(hsotg, hsotg->eps_out[epnum], in dwc2_gadget_init()
3656 epnum, 0); in dwc2_gadget_init()