• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/usb/gadget/

Lines Matching refs:gadget

102 /* This is a gadget, and the IN/OUT naming is from the host's perspective.
122 struct usb_gadget *gadget;
143 dev_printk(level , &(d)->gadget->dev , fmt , ## args)
405 static int config_buf(struct usb_gadget *gadget,
605 struct usb_gadget *gadget = dev->gadget;
608 if (gadget_is_sa1100(gadget) && dev->config) {
634 switch (gadget->speed) {
661 * housekeeping for the gadget function we're implementing. Most of
664 static int gmidi_setup(struct usb_gadget *gadget,
667 struct gmidi_device *dev = get_gadget_data(gadget);
691 value = config_buf(gadget, req->buf,
719 if (gadget->a_hnp_support) {
721 } else if (gadget->a_alt_hnp_support) {
791 value = usb_ep_queue(gadget->ep0, req, GFP_ATOMIC);
795 gmidi_setup_complete(gadget->ep0, req);
803 static void gmidi_disconnect(struct usb_gadget *gadget)
805 struct gmidi_device *dev = get_gadget_data(gadget);
822 static void /* __init_or_exit */ gmidi_unbind(struct usb_gadget *gadget)
824 struct gmidi_device *dev = get_gadget_data(gadget);
838 free_ep_req(gadget->ep0, dev->req);
841 set_gadget_data(gadget, NULL);
1121 It's an upside-down world being a gadget. */
1125 snd_card_set_dev(card, &dev->gadget->dev);
1148 static int __devinit gmidi_bind(struct usb_gadget *gadget)
1171 gadget->name);
1185 usb_ep_autoconfig_reset(gadget);
1186 in_ep = usb_ep_autoconfig(gadget, &bulk_in_desc);
1190 shortname, gadget->name);
1196 out_ep = usb_ep_autoconfig(gadget, &bulk_out_desc);
1203 gcnum = usb_gadget_controller_number(gadget);
1212 shortname, gadget->name);
1223 dev->gadget = gadget;
1226 set_gadget_data(gadget, dev);
1230 dev->req = usb_ep_alloc_request(gadget->ep0, GFP_KERNEL);
1235 dev->req->buf = usb_ep_alloc_buffer(gadget->ep0, USB_BUFSIZ,
1244 device_desc.bMaxPacketSize0 = gadget->ep0->maxpacket;
1246 gadget->ep0->driver_data = dev;
1249 INFO(dev, "using %s, OUT %s IN %s\n", gadget->name,
1262 gmidi_unbind(gadget);
1267 static void gmidi_suspend(struct usb_gadget *gadget)
1269 struct gmidi_device *dev = get_gadget_data(gadget);
1271 if (gadget->speed == USB_SPEED_UNKNOWN) {
1278 static void gmidi_resume(struct usb_gadget *gadget)
1280 struct gmidi_device *dev = get_gadget_data(gadget);