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()
730 req->epnum = ep->ep_num; in ep_queue()
910 u8 epnum; in bdc_free_ep() local
913 for (epnum = 1; epnum < bdc->num_eps; epnum++) { in bdc_free_ep()
914 ep = bdc->bdc_ep_array[epnum]; in bdc_free_ep()
922 if (epnum != 1) in bdc_free_ep()
1242 int epnum; in ep0_handle_feature() local
1277 epnum = wIndex & USB_ENDPOINT_NUMBER_MASK; in ep0_handle_feature()
1278 if (epnum) { in ep0_handle_feature()
1280 epnum = epnum * 2 + 1; in ep0_handle_feature()
1282 epnum *= 2; in ep0_handle_feature()
1284 epnum = 1; /*EP0*/ in ep0_handle_feature()
1291 if (epnum == 1 && !set) { in ep0_handle_feature()
1295 dev_dbg(bdc->dev, "epnum=%d\n", epnum); in ep0_handle_feature()
1296 ep = bdc->bdc_ep_array[epnum]; in ep0_handle_feature()
1316 u32 epnum; in ep0_handle_status() local
1352 epnum = wIndex & USB_ENDPOINT_NUMBER_MASK; in ep0_handle_status()
1353 if (epnum) { in ep0_handle_status()
1355 epnum = epnum*2 + 1; in ep0_handle_status()
1357 epnum *= 2; in ep0_handle_status()
1359 epnum = 1; /* EP0 */ in ep0_handle_status()
1362 ep = bdc->bdc_ep_array[epnum]; in ep0_handle_status()
1841 req->epnum = ep->ep_num; in bdc_gadget_alloc_request()
1945 static int init_ep(struct bdc *bdc, u32 epnum, u32 dir) in init_ep() argument
1949 dev_dbg(bdc->dev, "%s epnum=%d dir=%d\n", __func__, epnum, dir); in init_ep()
1963 if (epnum == 1) { in init_ep()
1966 snprintf(ep->name, sizeof(ep->name), "ep%d", epnum - 1); in init_ep()
1973 ep->ep_num = epnum * 2 - 1; in init_ep()
1975 ep->ep_num = epnum * 2 - 2; in init_ep()
1978 snprintf(ep->name, sizeof(ep->name), "ep%d%s", epnum - 1, in init_ep()
1993 ep, ep->usb_ep.name, epnum, ep->ep_num); in init_ep()
2003 u8 epnum; in bdc_init_ep() local
2015 for (epnum = 2; epnum <= bdc->num_eps / 2; epnum++) { in bdc_init_ep()
2017 ret = init_ep(bdc, epnum, 0); in bdc_init_ep()
2021 epnum, ret); in bdc_init_ep()
2026 ret = init_ep(bdc, epnum, 1); in bdc_init_ep()
2030 epnum, ret); in bdc_init_ep()