Lines Matching refs:ep

51 	struct usb_ep			*ep,  in ep_matches()  argument
60 if (NULL != ep->driver_data) in ep_matches()
69 if ('e' != ep->name[0]) in ep_matches()
75 if ('-' != ep->name[2]) { in ep_matches()
76 tmp = strrchr(ep->name, '-'); in ep_matches()
101 tmp = ep->name + strlen(ep->name); in ep_matches()
131 if (ep->maxpacket < max) in ep_matches()
149 if (isdigit(ep->name[2])) { in ep_matches()
150 u8 num = simple_strtoul(&ep->name[2], NULL, 10); in ep_matches()
166 int size = ep->maxpacket; in ep_matches()
179 struct usb_ep *ep; in find_ep() local
181 list_for_each_entry(ep, &gadget->ep_list, ep_list) { in find_ep()
182 if (0 == strcmp(ep->name, name)) in find_ep()
183 return ep; in find_ep()
223 struct usb_ep *ep = NULL; in usb_ep_autoconfig() local
233 ep = find_ep(gadget, "ep-e"); in usb_ep_autoconfig()
234 if (ep && ep_matches(gadget, ep, desc)) in usb_ep_autoconfig()
235 return ep; in usb_ep_autoconfig()
236 ep = find_ep(gadget, "ep-f"); in usb_ep_autoconfig()
237 if (ep && ep_matches(gadget, ep, desc)) in usb_ep_autoconfig()
238 return ep; in usb_ep_autoconfig()
243 ep = find_ep(gadget, "ep3-bulk"); in usb_ep_autoconfig()
244 if (ep && ep_matches(gadget, ep, desc)) in usb_ep_autoconfig()
245 return ep; in usb_ep_autoconfig()
249 ep = find_ep(gadget, "ep2-bulk"); in usb_ep_autoconfig()
250 if (ep && ep_matches(gadget, ep, desc)) in usb_ep_autoconfig()
251 return ep; in usb_ep_autoconfig()
256 ep = find_ep(gadget, "ep3in-bulk"); in usb_ep_autoconfig()
257 if (ep && ep_matches(gadget, ep, desc)) in usb_ep_autoconfig()
258 return ep; in usb_ep_autoconfig()
261 ep = find_ep(gadget, "ep1-bulk"); in usb_ep_autoconfig()
262 if (ep && ep_matches(gadget, ep, desc)) in usb_ep_autoconfig()
263 return ep; in usb_ep_autoconfig()
283 ep = find_ep(gadget, name); in usb_ep_autoconfig()
284 if (ep && ep_matches(gadget, ep, desc)) in usb_ep_autoconfig()
285 return ep; in usb_ep_autoconfig()
289 ep = gadget->ops->match_ep(gadget, desc, NULL); in usb_ep_autoconfig()
292 list_for_each_entry(ep, &gadget->ep_list, ep_list) { in usb_ep_autoconfig()
293 if (ep_matches(gadget, ep, desc)) in usb_ep_autoconfig()
294 return ep; in usb_ep_autoconfig()
312 struct usb_ep *ep; in usb_ep_autoconfig_reset() local
314 list_for_each_entry(ep, &gadget->ep_list, ep_list) { in usb_ep_autoconfig_reset()
315 ep->driver_data = NULL; in usb_ep_autoconfig_reset()