Lines Matching refs:gadget

65 	struct usb_gadget		*gadget,  in ep_matches()  argument
103 if (gadget_is_pxa (gadget) in ep_matches()
140 if (!gadget->is_dualspeed && max > 64) in ep_matches()
148 if (!gadget->is_dualspeed && max > 1023) in ep_matches()
153 if (!gadget->is_dualspeed) in ep_matches()
191 find_ep (struct usb_gadget *gadget, const char *name) in find_ep() argument
195 list_for_each_entry (ep, &gadget->ep_list, ep_list) { in find_ep()
233 struct usb_gadget *gadget, in usb_ep_autoconfig() argument
245 if (gadget_is_net2280 (gadget) && type == USB_ENDPOINT_XFER_INT) { in usb_ep_autoconfig()
247 ep = find_ep (gadget, "ep-e"); in usb_ep_autoconfig()
248 if (ep && ep_matches (gadget, ep, desc)) in usb_ep_autoconfig()
250 ep = find_ep (gadget, "ep-f"); in usb_ep_autoconfig()
251 if (ep && ep_matches (gadget, ep, desc)) in usb_ep_autoconfig()
254 } else if (gadget_is_goku (gadget)) { in usb_ep_autoconfig()
257 ep = find_ep (gadget, "ep3-bulk"); in usb_ep_autoconfig()
258 if (ep && ep_matches (gadget, ep, desc)) in usb_ep_autoconfig()
263 ep = find_ep (gadget, "ep2-bulk"); in usb_ep_autoconfig()
264 if (ep && ep_matches (gadget, ep, desc)) in usb_ep_autoconfig()
268 } else if (gadget_is_sh (gadget) && USB_ENDPOINT_XFER_INT == type) { in usb_ep_autoconfig()
270 ep = find_ep (gadget, "ep3in-bulk"); in usb_ep_autoconfig()
271 if (ep && ep_matches (gadget, ep, desc)) in usb_ep_autoconfig()
274 } else if (gadget_is_mq11xx (gadget) && USB_ENDPOINT_XFER_INT == type) { in usb_ep_autoconfig()
275 ep = find_ep (gadget, "ep1-bulk"); in usb_ep_autoconfig()
276 if (ep && ep_matches (gadget, ep, desc)) in usb_ep_autoconfig()
281 list_for_each_entry (ep, &gadget->ep_list, ep_list) { in usb_ep_autoconfig()
282 if (ep_matches (gadget, ep, desc)) in usb_ep_autoconfig()
299 void __init usb_ep_autoconfig_reset (struct usb_gadget *gadget) in usb_ep_autoconfig_reset() argument
303 list_for_each_entry (ep, &gadget->ep_list, ep_list) { in usb_ep_autoconfig_reset()