Searched refs:gadget (Results 1 - 25 of 28) sorted by last modified time

12

/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/i2c/chips/
H A Disp1301_omap.c338 isp->otg.gadget->b_hnp_enable = 0;
339 isp->otg.gadget->a_hnp_support = 0;
340 isp->otg.gadget->a_alt_hnp_support = 0;
341 return usb_gadget_vbus_disconnect(isp->otg.gadget);
378 if (isp->otg.gadget) {
379 isp->otg.gadget->is_a_peripheral = 1;
398 if (isp->otg.gadget) {
399 isp->otg.gadget->is_a_peripheral = 0;
580 if (isp->otg.gadget->b_hnp_enable) {
689 /* gadget driver
1330 isp1301_set_peripheral(struct otg_transceiver *otg, struct usb_gadget *gadget) argument
[all...]
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/
H A DMakefile58 obj-$(CONFIG_USB_GADGET) += usb/gadget/
/netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/usb/gadget/
H A Dat91_udc.c182 seq_printf(s, "vbus %s, pullup %s, %s powered%s, gadget %s\n\n",
221 list_for_each_entry (ep, &udc->gadget.ep_list, ep.ep_list) {
430 * gadget driver IN bytecounts can be wrong in fault cases. That's
434 * So all gadget drivers must accept that potential error. Some
489 if (!dev->driver || dev->gadget.speed == USB_SPEED_UNKNOWN) {
648 if (!dev || !dev->driver || dev->gadget.speed == USB_SPEED_UNKNOWN) {
680 * defer changing CONFG until after the gadget driver
801 static int at91_get_frame(struct usb_gadget *gadget) argument
803 struct at91_udc *udc = to_udc(gadget);
805 if (!to_udc(gadget)
810 at91_wakeup(struct usb_gadget *gadget) argument
948 at91_vbus_session(struct usb_gadget *gadget, int is_active) argument
964 at91_pullup(struct usb_gadget *gadget, int is_on) argument
976 at91_set_selfpowered(struct usb_gadget *gadget, int is_on) argument
[all...]
H A Dat91_udc.h128 struct usb_gadget gadget; member in struct:at91_udc
151 return container_of(g, struct at91_udc, gadget);
H A Ddummy_hcd.c26 * This exposes a device side "USB gadget" API, driven by requests to a
77 /* gadget side driver data structres */
81 struct usb_gadget *gadget; member in struct:dummy_ep
164 struct usb_gadget gadget; member in struct:dummy
205 return dum->gadget.dev.parent;
210 return container_of (ep->gadget, struct dummy, gadget);
213 static inline struct dummy *gadget_to_dummy (struct usb_gadget *gadget) argument
215 return container_of (gadget, struct dummy, gadget);
885 net2280_set_fifo_mode(struct usb_gadget *gadget, int mode) argument
[all...]
H A Depautoconf.c2 * epautoconf.c -- endpoint autoconfiguration for usb gadget drivers
64 struct usb_gadget *gadget,
102 if (gadget_is_pxa (gadget)
139 if (!gadget->is_dualspeed && max > 64)
147 if (!gadget->is_dualspeed && max > 1023)
152 if (!gadget->is_dualspeed)
190 find_ep (struct usb_gadget *gadget, const char *name) argument
194 list_for_each_entry (ep, &gadget->ep_list, ep_list) {
203 * @gadget: The device to which the endpoint must belong.
209 * routine simplifies writing gadget driver
63 ep_matches( struct usb_gadget *gadget, struct usb_ep *ep, struct usb_endpoint_descriptor *desc ) argument
231 usb_ep_autoconfig( struct usb_gadget *gadget, struct usb_endpoint_descriptor *desc ) argument
298 usb_ep_autoconfig_reset(struct usb_gadget *gadget) argument
[all...]
H A Dether.c2 * ether.c -- Ethernet gadget driver, with CDC and non-CDC options
62 * Ethernet gadget driver -- with CDC and non-CDC options
119 struct usb_gadget *gadget; member in struct:eth_dev
348 #define qlen(gadget) \
349 (DEFAULT_QLEN*((gadget->speed == USB_SPEED_HIGH) ? qmult : 1))
362 #define qlen(gadget) DEFAULT_QLEN
1010 struct usb_gadget *gadget = dev->gadget; local
1015 dev->status = ep_desc (gadget, &hs_status_desc,
1028 dev->in = ep_desc(gadget,
1152 struct usb_gadget *gadget = dev->gadget; local
1333 eth_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl) argument
1579 eth_disconnect(struct usb_gadget *gadget) argument
2176 eth_unbind(struct usb_gadget *gadget) argument
2234 eth_bind(struct usb_gadget *gadget) argument
2571 eth_suspend(struct usb_gadget *gadget) argument
2580 eth_resume(struct usb_gadget *gadget) argument
[all...]
H A Dfile_storage.c66 * In normal operation the main thread is started during the gadget's
69 * gadget running when the thread is dead. So just before the thread
70 * exits, it deregisters the gadget driver. This makes things a little
206 dev_printk(level , &(f)->gadget->dev , fmt , ## args)
555 struct usb_gadget *gadget; member in struct:fsg_dev
563 struct usb_ep *ep0; // Handy copy of gadget->ep0
967 static int populate_config_buf(struct usb_gadget *gadget, argument
971 enum usb_device_speed speed = gadget->speed;
989 if (!gadget->is_otg)
1038 static void fsg_disconnect(struct usb_gadget *gadget) argument
1409 fsg_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl) argument
3603 fsg_unbind(struct usb_gadget *gadget) argument
3739 fsg_bind(struct usb_gadget *gadget) argument
3971 fsg_suspend(struct usb_gadget *gadget) argument
3979 fsg_resume(struct usb_gadget *gadget) argument
[all...]
H A Dfsl_usb2_udc.c127 dma_unmap_single(ep->udc->gadget.dev.parent,
135 dma_sync_single_for_cpu(ep->udc->gadget.dev.parent,
149 /* complete() is from gadget layer,
444 * for example the do_set_interface() in gadget layer,
467 if (!udc->driver || (udc->gadget.speed == USB_SPEED_UNKNOWN))
477 /* Assume the max packet size from gadget is always correct */
617 return dma_alloc_coherent(ep->udc->gadget.dev.parent,
634 dma_free_coherent(ep->udc->gadget.dev.parent, bytes, buf, dma);
823 if (!udc->driver || udc->gadget.speed == USB_SPEED_UNKNOWN)
830 req->req.dma = dma_map_single(ep->udc->gadget
1067 fsl_get_frame(struct usb_gadget *gadget) argument
1075 fsl_wakeup(struct usb_gadget *gadget) argument
1101 fsl_vbus_session(struct usb_gadget *gadget, int is_active) argument
1127 fsl_vbus_draw(struct usb_gadget *gadget, unsigned mA) argument
1143 fsl_pullup(struct usb_gadget *gadget, int is_on) argument
[all...]
H A Dfsl_usb2_udc.h458 struct usb_gadget *gadget; member in struct:fsl_ep
469 struct usb_gadget gadget; member in struct:fsl_udc
H A Dgadget_chips.h3 * gadget drivers or other code that needs to deal with them, and which
135 * @gadget: the controller being driven
142 * gadget driver firmware -- maybe a more formal revision ID -- feel free.
148 static inline int usb_gadget_controller_number(struct usb_gadget *gadget) argument
150 if (gadget_is_net2280(gadget))
152 else if (gadget_is_dummy(gadget))
154 else if (gadget_is_pxa(gadget))
156 else if (gadget_is_sh(gadget))
158 else if (gadget_is_sa1100(gadget))
160 else if (gadget_is_goku(gadget))
[all...]
H A Dgmidi.c102 /* This is a gadget, and the IN/OUT naming is from the host's perspective.
122 struct usb_gadget *gadget; member in struct:gmidi_device
143 dev_printk(level , &(d)->gadget->dev , fmt , ## args)
405 static int config_buf(struct usb_gadget *gadget, argument
605 struct usb_gadget *gadget = dev->gadget; local
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, argument
803 gmidi_disconnect(struct usb_gadget *gadget) argument
822 gmidi_unbind(struct usb_gadget *gadget) argument
1148 gmidi_bind(struct usb_gadget *gadget) argument
1267 gmidi_suspend(struct usb_gadget *gadget) argument
1278 gmidi_resume(struct usb_gadget *gadget) argument
[all...]
H A Dgoku_udc.c103 if (!dev->driver || dev->gadget.speed == USB_SPEED_UNKNOWN)
756 if (unlikely(!dev->driver || dev->gadget.speed == USB_SPEED_UNKNOWN))
1269 INIT_LIST_HEAD (&dev->gadget.ep_list);
1270 dev->gadget.ep0 = &dev->ep [0].ep;
1271 dev->gadget.speed = USB_SPEED_UNKNOWN;
1285 list_add_tail (&ep->ep.ep_list, &dev->gadget.ep_list);
1345 dev->gadget.speed = USB_SPEED_FULL;
1395 dev->gadget.dev.driver = &driver->driver;
1396 retval = driver->bind(&dev->gadget);
1401 dev->gadget
[all...]
H A Dgoku_udc.h241 /* each pci device provides one gadget, several endpoints */
242 struct usb_gadget gadget; member in struct:goku_udc
H A Dinode.c2 * inode.c -- user mode filesystem api for usb gadget controllers
57 * - First, dev_config() is called when /dev/gadget/$CHIP is configured
63 * called when each /dev/gadget/ep* file is configured (by writing
90 /* /dev/gadget/$CHIP represents ep0 and the whole device */
96 /* Only one open() of /dev/gadget/$CHIP; only one file tracks
145 struct usb_gadget *gadget; member in struct:dev_data
187 /* other /dev/gadget/$ENDPOINT files represent endpoints */
240 /* NOTE: don't use dev_printk calls before binding to the gadget
244 /* too wordy: dev_printk(level , &(d)->gadget->dev , fmt , ## args) */
751 * fd = open ("/dev/gadget/
1297 struct usb_gadget *gadget = dev->gadget; local
1380 gadgetfs_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl) argument
1671 gadgetfs_unbind(struct usb_gadget *gadget) argument
1695 gadgetfs_bind(struct usb_gadget *gadget) argument
1735 gadgetfs_disconnect(struct usb_gadget *gadget) argument
1752 gadgetfs_suspend(struct usb_gadget *gadget) argument
1793 gadgetfs_probe(struct usb_gadget *gadget) argument
[all...]
H A Dlh7a40x_udc.c2 * linux/drivers/usb/gadget/lh7a40x_udc.c
284 dev->gadget.speed = USB_SPEED_UNKNOWN;
298 INIT_LIST_HEAD(&dev->gadget.ep_list);
299 INIT_LIST_HEAD(&dev->gadget.ep0->ep_list);
307 list_add_tail(&ep->ep.ep_list, &dev->gadget.ep_list);
330 dev->gadget.speed = USB_SPEED_UNKNOWN;
437 dev->gadget.dev.driver = &driver->driver;
439 device_add(&dev->gadget.dev);
440 retval = driver->bind(&dev->gadget);
442 printk("%s: bind to driver %s --> error %d\n", dev->gadget
[all...]
H A Dlh7a40x_udc.h2 * linux/drivers/usb/gadget/lh7a40x_udc.h
240 struct usb_gadget gadget; member in struct:lh7a40x_udc
H A Dnet2280.c11 * This driver should work well with most "gadget" drivers, including
12 * the File Storage, Serial, and Ethernet/RNDIS gadget drivers
98 * Some gadget drivers work better with the dma support here than others.
163 if (!dev->driver || dev->gadget.speed == USB_SPEED_UNKNOWN)
199 && dev->gadget.speed == USB_SPEED_HIGH
205 if ((dev->gadget.speed == USB_SPEED_HIGH
207 || (dev->gadget.speed == USB_SPEED_FULL
610 && ep->dev->gadget.speed == USB_SPEED_FULL) {
639 && ep->dev->gadget.speed == USB_SPEED_FULL) {
928 if (!dev->driver || dev->gadget
1800 net2280_set_fifo_mode(struct usb_gadget *gadget, int mode) argument
[all...]
H A Dnet2280.h77 (((dev)->gadget.speed == USB_SPEED_HIGH) ? 0 : 1))
143 /* each pci device provides one gadget, several endpoints */
144 struct usb_gadget gadget; member in struct:net2280
H A Domap_udc.c78 * D+ pullup to allow enumeration. That's too early for the gadget
81 * optional new "UDC not yet running" state to the gadget driver model,
202 if (!udc->driver || udc->gadget.speed == USB_SPEED_UNKNOWN) {
316 dev_warn(ep->udc->gadget.dev.parent,
321 return dma_alloc_coherent(ep->udc->gadget.dev.parent,
380 rec->dev = ep->udc->gadget.dev.parent;
408 dma_unmap_single(ep->udc->gadget.dev.parent,
416 dma_sync_single_for_cpu(ep->udc->gadget.dev.parent,
1034 if (!udc->driver || udc->gadget.speed == USB_SPEED_UNKNOWN)
1040 ep->udc->gadget
1276 omap_get_frame(struct usb_gadget *gadget) argument
1282 omap_wakeup(struct usb_gadget *gadget) argument
1312 omap_set_selfpowered(struct usb_gadget *gadget, int is_selfpowered) argument
1379 omap_vbus_session(struct usb_gadget *gadget, int is_active) argument
1415 omap_vbus_draw(struct usb_gadget *gadget, unsigned mA) argument
1425 omap_pullup(struct usb_gadget *gadget, int is_on) argument
[all...]
H A Domap_udc.h162 struct usb_gadget gadget; member in struct:omap_udc
H A Dpxa2xx_udc.c2 * linux/drivers/usb/gadget/pxa2xx_udc.c
69 * Such controller drivers work with a gadget driver. The gadget driver
73 * usb hardware so that the gadget drivers will be more portable.
145 * used by gadget driver; and the inner talker-to-hardware core.
239 * for a single interface (with only the default altsetting) and for gadget
278 if (!dev->driver || dev->gadget.speed == USB_SPEED_UNKNOWN) {
358 /* for the pxa2xx, these can just wrap kmalloc/kfree. gadget drivers
920 || dev->gadget.speed == USB_SPEED_UNKNOWN)) {
1153 if (ep->dev->gadget
[all...]
H A Dpxa2xx_udc.h2 * linux/drivers/usb/gadget/pxa2xx_udc.h
120 struct usb_gadget gadget; member in struct:pxa2xx_udc
259 DMSG("no gadget driver bound\n");
H A Dserial.c2 * g_serial.c -- USB gadget serial driver
162 struct usb_gadget *dev_gadget; /* gadget device pointer */
211 /* gadget driver */
212 static int gs_bind(struct usb_gadget *gadget);
213 static void gs_unbind(struct usb_gadget *gadget);
214 static int gs_setup(struct usb_gadget *gadget,
216 static int gs_setup_standard(struct usb_gadget *gadget,
218 static int gs_setup_class(struct usb_gadget *gadget,
221 static void gs_disconnect(struct usb_gadget *gadget);
250 extern int net2280_set_fifo_mode(struct usb_gadget *gadget, in
1352 gs_bind(struct usb_gadget *gadget) argument
1477 gs_unbind(struct usb_gadget *gadget) argument
1507 gs_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl) argument
1551 gs_setup_standard(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl) argument
1681 gs_setup_class(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl) argument
1747 gs_disconnect(struct usb_gadget *gadget) argument
1782 struct usb_gadget *gadget = dev->dev_gadget; local
[all...]
H A Dzero.c41 * can write a hardware-agnostic gadget driver running inside a USB device.
120 struct usb_gadget *gadget; member in struct:zero_dev
135 dev_printk(level , &(d)->gadget->dev , fmt , ## args)
432 config_buf (struct usb_gadget *gadget, argument
439 int hs = (gadget->speed == USB_SPEED_HIGH);
461 if (!gadget->is_otg)
523 * or otherwise when host and gadget agree on how large
644 struct usb_gadget *gadget = dev->gadget; local
646 gadget_for_each_ep (ep, gadget) {
748 struct usb_gadget *gadget = dev->gadget; local
848 struct usb_gadget *gadget = dev->gadget; local
914 zero_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl) argument
1083 zero_disconnect(struct usb_gadget *gadget) argument
1120 zero_unbind(struct usb_gadget *gadget) argument
1137 zero_bind(struct usb_gadget *gadget) argument
1250 zero_suspend(struct usb_gadget *gadget) argument
1265 zero_resume(struct usb_gadget *gadget) argument
[all...]

Completed in 285 milliseconds

12