Lines Matching refs:gadget
122 struct usb_gadget *gadget;
183 /* Private data for our user (ie. gadget). Managed by
246 struct usb_gadget *gadget;
360 ret = usb_ep_queue(ffs->gadget->ep0, req, GFP_ATOMIC);
366 usb_ep_dequeue(ffs->gadget->ep0, req);
378 usb_ep_set_halt(ffs->gadget->ep0);
701 struct usb_gadget *gadget = ffs->gadget;
709 } else if (gadget->ops->ioctl) {
710 ret = gadget->ops->ioctl(gadget, code, value);
1329 BUG_ON(ffs->gadget);
1383 ffs->ep0req = usb_ep_alloc_request(cdev->gadget->ep0, GFP_KERNEL);
1397 ffs->gadget = cdev->gadget;
1407 if (!WARN_ON(!ffs->gadget)) {
1408 usb_ep_free_request(ffs->gadget->ep0, ffs->ep0req);
1410 ffs->gadget = NULL;
1493 func->gadget = cdev->gadget;
1637 FVDBG("descriptor reserved for gadget: %d", _ds->bDescriptorType);
2087 ep = usb_ep_autoconfig(func->gadget, ds);
2167 const int high = gadget_is_dualspeed(func->gadget) &&
2186 /* Only high speed but not supported by gadget? */