Lines Matching refs:epnum

341 void bdc_notify_xfr(struct bdc *bdc, u32 epnum)  in bdc_notify_xfr()  argument
343 struct bdc_ep *ep = bdc->bdc_ep_array[epnum]; in bdc_notify_xfr()
345 dev_vdbg(bdc->dev, "%s epnum:%d\n", __func__, epnum); in bdc_notify_xfr()
353 bdc_writel(bdc->regs, BDC_XSFNTF, epnum); in bdc_notify_xfr()
666 req->epnum = ep->ep_num; in ep0_queue()
722 req->epnum = ep->ep_num; in ep_queue()
902 u8 epnum; in bdc_free_ep() local
905 for (epnum = 1; epnum < bdc->num_eps; epnum++) { in bdc_free_ep()
906 ep = bdc->bdc_ep_array[epnum]; in bdc_free_ep()
914 if (epnum != 1) in bdc_free_ep()
1234 int epnum; in ep0_handle_feature() local
1269 epnum = wIndex & USB_ENDPOINT_NUMBER_MASK; in ep0_handle_feature()
1270 if (epnum) { in ep0_handle_feature()
1272 epnum = epnum * 2 + 1; in ep0_handle_feature()
1274 epnum *= 2; in ep0_handle_feature()
1276 epnum = 1; /*EP0*/ in ep0_handle_feature()
1283 if (epnum == 1 && !set) { in ep0_handle_feature()
1287 dev_dbg(bdc->dev, "epnum=%d\n", epnum); in ep0_handle_feature()
1288 ep = bdc->bdc_ep_array[epnum]; in ep0_handle_feature()
1308 u32 epnum; in ep0_handle_status() local
1344 epnum = wIndex & USB_ENDPOINT_NUMBER_MASK; in ep0_handle_status()
1345 if (epnum) { in ep0_handle_status()
1347 epnum = epnum*2 + 1; in ep0_handle_status()
1349 epnum *= 2; in ep0_handle_status()
1351 epnum = 1; /* EP0 */ in ep0_handle_status()
1354 ep = bdc->bdc_ep_array[epnum]; in ep0_handle_status()
1831 req->epnum = ep->ep_num; in bdc_gadget_alloc_request()
1935 static int init_ep(struct bdc *bdc, u32 epnum, u32 dir) in init_ep() argument
1939 dev_dbg(bdc->dev, "%s epnum=%d dir=%d\n", __func__, epnum, dir); in init_ep()
1953 if (epnum == 1) { in init_ep()
1956 snprintf(ep->name, sizeof(ep->name), "ep%d", epnum - 1); in init_ep()
1963 ep->ep_num = epnum * 2 - 1; in init_ep()
1965 ep->ep_num = epnum * 2 - 2; in init_ep()
1968 snprintf(ep->name, sizeof(ep->name), "ep%d%s", epnum - 1, in init_ep()
1983 ep, ep->usb_ep.name, epnum, ep->ep_num); in init_ep()
1993 u8 epnum; in bdc_init_ep() local
2005 for (epnum = 2; epnum <= bdc->num_eps / 2; epnum++) { in bdc_init_ep()
2007 ret = init_ep(bdc, epnum, 0); in bdc_init_ep()
2011 epnum, ret); in bdc_init_ep()
2016 ret = init_ep(bdc, epnum, 1); in bdc_init_ep()
2020 epnum, ret); in bdc_init_ep()