12 #include <linux/kernel.h>
14 #include <linux/types.h>
15 #include <linux/device.h>
17 #include <linux/ctype.h>
18 #include <linux/string.h>
20 #include <linux/usb/ch9.h>
27 static unsigned epnum;
32 static unsigned in_epnum;
64 int num_req_streams = 0;
76 if (
'e' != ep->
name[0])
82 if (
'-' != ep->
name[2]) {
128 if (usb_endpoint_xfer_bulk(desc)) {
148 max = 0x7ff & usb_endpoint_maxp(desc);
152 if (!gadget_is_dualspeed(gadget) && max > 64)
160 if (!gadget_is_dualspeed(gadget) && max > 1023)
165 if (!gadget_is_dualspeed(gadget))
179 #ifdef MANY_ENDPOINTS
276 ep = find_ep (gadget,
"ep-e");
277 if (ep && ep_matches(gadget, ep, desc, ep_comp))
279 ep = find_ep (gadget,
"ep-f");
280 if (ep && ep_matches(gadget, ep, desc, ep_comp))
286 ep = find_ep(gadget,
"ep3-bulk");
287 if (ep && ep_matches(gadget, ep, desc, ep_comp))
292 ep = find_ep(gadget,
"ep2-bulk");
293 if (ep && ep_matches(gadget, ep, desc,
298 #ifdef CONFIG_BLACKFIN
303 ep = find_ep (gadget,
"ep5in");
305 ep = find_ep (gadget,
"ep6out");
308 ep = find_ep(gadget,
"ep1in");
310 ep = find_ep(gadget,
"ep2out");
313 if (ep && ep_matches(gadget, ep, desc, ep_comp))
320 if (ep_matches(gadget, ep, desc, ep_comp))
388 #ifdef MANY_ENDPOINTS