Lines Matching refs:epnum
347 void bdc_notify_xfr(struct bdc *bdc, u32 epnum) in bdc_notify_xfr() argument
349 struct bdc_ep *ep = bdc->bdc_ep_array[epnum]; in bdc_notify_xfr()
351 dev_vdbg(bdc->dev, "%s epnum:%d\n", __func__, epnum); in bdc_notify_xfr()
359 bdc_writel(bdc->regs, BDC_XSFNTF, epnum); in bdc_notify_xfr()
672 req->epnum = ep->ep_num; in ep0_queue()
728 req->epnum = ep->ep_num; in ep_queue()
908 u8 epnum; in bdc_free_ep() local
911 for (epnum = 1; epnum < bdc->num_eps; epnum++) { in bdc_free_ep()
912 ep = bdc->bdc_ep_array[epnum]; in bdc_free_ep()
920 if (epnum != 1) in bdc_free_ep()
1240 int epnum; in ep0_handle_feature() local
1275 epnum = wIndex & USB_ENDPOINT_NUMBER_MASK; in ep0_handle_feature()
1276 if (epnum) { in ep0_handle_feature()
1278 epnum = epnum * 2 + 1; in ep0_handle_feature()
1280 epnum *= 2; in ep0_handle_feature()
1282 epnum = 1; /*EP0*/ in ep0_handle_feature()
1289 if (epnum == 1 && !set) { in ep0_handle_feature()
1293 dev_dbg(bdc->dev, "epnum=%d\n", epnum); in ep0_handle_feature()
1294 ep = bdc->bdc_ep_array[epnum]; in ep0_handle_feature()
1314 u32 epnum; in ep0_handle_status() local
1350 epnum = wIndex & USB_ENDPOINT_NUMBER_MASK; in ep0_handle_status()
1351 if (epnum) { in ep0_handle_status()
1353 epnum = epnum*2 + 1; in ep0_handle_status()
1355 epnum *= 2; in ep0_handle_status()
1357 epnum = 1; /* EP0 */ in ep0_handle_status()
1360 ep = bdc->bdc_ep_array[epnum]; in ep0_handle_status()
1837 req->epnum = ep->ep_num; in bdc_gadget_alloc_request()
1941 static int init_ep(struct bdc *bdc, u32 epnum, u32 dir) in init_ep() argument
1945 dev_dbg(bdc->dev, "%s epnum=%d dir=%d\n", __func__, epnum, dir); in init_ep()
1959 if (epnum == 1) { in init_ep()
1962 snprintf(ep->name, sizeof(ep->name), "ep%d", epnum - 1); in init_ep()
1969 ep->ep_num = epnum * 2 - 1; in init_ep()
1971 ep->ep_num = epnum * 2 - 2; in init_ep()
1974 snprintf(ep->name, sizeof(ep->name), "ep%d%s", epnum - 1, in init_ep()
1989 ep, ep->usb_ep.name, epnum, ep->ep_num); in init_ep()
1999 u8 epnum; in bdc_init_ep() local
2011 for (epnum = 2; epnum <= bdc->num_eps / 2; epnum++) { in bdc_init_ep()
2013 ret = init_ep(bdc, epnum, 0); in bdc_init_ep()
2017 epnum, ret); in bdc_init_ep()
2022 ret = init_ep(bdc, epnum, 1); in bdc_init_ep()
2026 epnum, ret); in bdc_init_ep()