Lines Matching full:gadget

3  * dbgp.c -- EHCI Debug Port device gadget
15 #include <linux/usb/gadget.h>
27 struct usb_gadget *gadget; member
124 dev_dbg(&dbgp.gadget->dev, in dbgp_complete()
162 dev_dbg(&dbgp.gadget->dev, in dbgp_enable_ep_req()
204 dev_dbg(&dbgp.gadget->dev, "enable ep: failure (%d:%d)\n", stp, err); in dbgp_enable_ep()
209 static void dbgp_disconnect(struct usb_gadget *gadget) in dbgp_disconnect() argument
218 static void dbgp_unbind(struct usb_gadget *gadget) in dbgp_unbind() argument
226 usb_ep_free_request(gadget->ep0, dbgp.req); in dbgp_unbind()
235 static int dbgp_configure_endpoints(struct usb_gadget *gadget) in dbgp_configure_endpoints() argument
239 usb_ep_autoconfig_reset(gadget); in dbgp_configure_endpoints()
241 dbgp.i_ep = usb_ep_autoconfig(gadget, &i_desc); in dbgp_configure_endpoints()
250 dbgp.o_ep = usb_ep_autoconfig(gadget, &o_desc); in dbgp_configure_endpoints()
273 dev_dbg(&dbgp.gadget->dev, "ep config: failure (%d)\n", stp); in dbgp_configure_endpoints()
277 static int dbgp_bind(struct usb_gadget *gadget, in dbgp_bind() argument
282 dbgp.gadget = gadget; in dbgp_bind()
284 dbgp.req = usb_ep_alloc_request(gadget->ep0, GFP_KERNEL); in dbgp_bind()
315 err = dbgp_configure_endpoints(gadget); in dbgp_bind()
321 dev_dbg(&dbgp.gadget->dev, "bind: success\n"); in dbgp_bind()
325 dev_dbg(&gadget->dev, "bind: failure (%d:%d)\n", stp, err); in dbgp_bind()
326 dbgp_unbind(gadget); in dbgp_bind()
333 dev_dbg(&dbgp.gadget->dev, "setup complete: %d, %d/%d\n", in dbgp_setup_complete()
337 static int dbgp_setup(struct usb_gadget *gadget, in dbgp_setup() argument
364 dev_dbg(&dbgp.gadget->dev, "setup: desc device\n"); in dbgp_setup()
367 device_desc.bMaxPacketSize0 = gadget->ep0->maxpacket; in dbgp_setup()
370 dev_dbg(&dbgp.gadget->dev, "setup: desc debug\n"); in dbgp_setup()
380 dev_dbg(&dbgp.gadget->dev, "setup: feat debug\n"); in dbgp_setup()
384 err = dbgp_configure_endpoints(gadget); in dbgp_setup()
401 return usb_ep_queue(gadget->ep0, req, GFP_ATOMIC); in dbgp_setup()
404 dev_dbg(&dbgp.gadget->dev, in dbgp_setup()
437 MODULE_DESCRIPTION("EHCI Debug Port device gadget");