Home
last modified time | relevance | path

Searched refs:gadget (Results 1 – 14 of 14) sorted by relevance

/linux-2.4.37.9/include/linux/
Dusb_gadget.h524 static inline void set_gadget_data (struct usb_gadget *gadget, void *data) in set_gadget_data() argument
525 { gadget->dev.driver_data = data; } in set_gadget_data()
526 static inline void *get_gadget_data (struct usb_gadget *gadget) in get_gadget_data() argument
527 { return gadget->dev.driver_data; } in get_gadget_data()
531 #define gadget_for_each_ep(tmp,gadget) \ argument
532 list_for_each_entry(tmp, &(gadget)->ep_list, ep_list)
552 static inline int usb_gadget_frame_number (struct usb_gadget *gadget) in usb_gadget_frame_number() argument
554 return gadget->ops->get_frame (gadget); in usb_gadget_frame_number()
570 static inline int usb_gadget_wakeup (struct usb_gadget *gadget) in usb_gadget_wakeup() argument
572 if (!gadget->ops->wakeup) in usb_gadget_wakeup()
[all …]
/linux-2.4.37.9/drivers/usb/gadget/
Depautoconf.c65 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()
[all …]
Dzero.c122 struct usb_gadget *gadget; member
137 printk(level "%s %s: " fmt , shortname , (d)->gadget->dev.bus_id , \
442 config_buf (struct usb_gadget *gadget, in config_buf() argument
449 int hs = (gadget->speed == USB_SPEED_HIGH); in config_buf()
471 if (!gadget->is_otg) in config_buf()
654 struct usb_gadget *gadget = dev->gadget; in set_source_sink_config() local
656 gadget_for_each_ep (ep, gadget) { in set_source_sink_config()
661 d = ep_desc (gadget, &hs_source_desc, &fs_source_desc); in set_source_sink_config()
675 d = ep_desc (gadget, &hs_sink_desc, &fs_sink_desc); in set_source_sink_config()
758 struct usb_gadget *gadget = dev->gadget; in set_loopback_config() local
[all …]
Dether.c122 struct usb_gadget *gadget; member
292 #define qlen(gadget) \ argument
293 (DEFAULT_QLEN*((gadget->speed == USB_SPEED_HIGH) ? qmult : 1))
301 #define qlen(gadget) DEFAULT_QLEN argument
984 d = ep_desc (dev->gadget, &hs_source_desc, &fs_source_desc); in ether_alt_ep_setup()
991 d = ep_desc (dev->gadget, &hs_sink_desc, &fs_sink_desc); in ether_alt_ep_setup()
1001 d = ep_desc (dev->gadget, &hs_status_desc, &fs_status_desc); in ether_alt_ep_setup()
1028 d = ep_desc (dev->gadget, &hs_source_desc, &fs_source_desc); in ether_ep_setup()
1039 d = ep_desc (dev->gadget, &hs_sink_desc, &fs_sink_desc); in ether_ep_setup()
1058 struct usb_gadget *gadget = dev->gadget; in set_ether_config() local
[all …]
DConfig.in3 # for 2.4 kbuild, drivers/usb/gadget/Config.in
16 # since they control compile options for gadget drivers.
40 # no reason not to enable more than one gadget driver module, but
45 # gadget drivers are compiled to work on specific hardware, since
47 # (a) gadget driver need hardware-specific configuration, like what
63 # enforce the "only one statically linked gadget driver" rule
Dnet2280.c156 if (!dev->driver || dev->gadget.speed == USB_SPEED_UNKNOWN) in net2280_enable()
194 && dev->gadget.speed == USB_SPEED_HIGH in net2280_enable()
200 if ((dev->gadget.speed == USB_SPEED_HIGH in net2280_enable()
202 || (dev->gadget.speed == USB_SPEED_FULL in net2280_enable()
596 && ep->dev->gadget.speed == USB_SPEED_FULL) { in out_flush()
625 && ep->dev->gadget.speed == USB_SPEED_FULL) { in read_fifo()
914 if (!dev->driver || dev->gadget.speed == USB_SPEED_UNKNOWN) in net2280_queue()
1284 if (!ep->dev->driver || ep->dev->gadget.speed == USB_SPEED_UNKNOWN) in net2280_set_halt()
1322 if (!ep->dev->driver || ep->dev->gadget.speed == USB_SPEED_UNKNOWN) in net2280_fifo_status()
1341 if (!ep->dev->driver || ep->dev->gadget.speed == USB_SPEED_UNKNOWN) in net2280_fifo_flush()
[all …]
Dfile_storage.c269 fakedev_printk(level , (f)->gadget , fmt , ## args)
621 struct usb_gadget *gadget; member
1079 static void fsg_disconnect(struct usb_gadget *gadget) in fsg_disconnect() argument
1081 struct fsg_dev *fsg = get_gadget_data(gadget); in fsg_disconnect()
1338 if (!fsg->gadget->is_dualspeed) in standard_setup_req()
1346 if (!fsg->gadget->is_dualspeed) in standard_setup_req()
1355 value = populate_config_buf(fsg->gadget->speed, in standard_setup_req()
1438 static int fsg_setup(struct usb_gadget *gadget, in fsg_setup() argument
1441 struct fsg_dev *fsg = get_gadget_data(gadget); in fsg_setup()
3080 d = ep_desc(fsg->gadget, &fs_bulk_in_desc, &hs_bulk_in_desc); in do_set_interface()
[all …]
Dgoku_udc.c114 if (!dev->driver || dev->gadget.speed == USB_SPEED_UNKNOWN) in goku_ep_enable()
809 if (unlikely(!dev->driver || dev->gadget.speed == USB_SPEED_UNKNOWN)) in goku_queue()
1327 INIT_LIST_HEAD (&dev->gadget.ep_list); in udc_reinit()
1328 dev->gadget.ep0 = &dev->ep [0].ep; in udc_reinit()
1329 dev->gadget.speed = USB_SPEED_UNKNOWN; in udc_reinit()
1343 list_add_tail (&ep->ep.ep_list, &dev->gadget.ep_list); in udc_reinit()
1403 dev->gadget.speed = USB_SPEED_FULL; in ep0_start()
1453 retval = driver->bind(&dev->gadget); in usb_gadget_register_driver()
1478 if (dev->gadget.speed == USB_SPEED_UNKNOWN) in stop_activity()
1487 driver->disconnect(&dev->gadget); in stop_activity()
[all …]
Dnet2280.h490 (((dev)->gadget.speed == USB_SPEED_HIGH) ? 0 : 1))
556 struct usb_gadget gadget; member
Dgoku_udc.h242 struct usb_gadget gadget; member
/linux-2.4.37.9/drivers/
DMakefile11 fc4 net/hamradio i2c acpi bluetooth usb/gadget
31 subdir-$(CONFIG_USB_GADGET) += usb/gadget
/linux-2.4.37.9/drivers/usb/
DConfig.in114 source drivers/usb/gadget/Config.in
/linux-2.4.37.9/
DMakefile194 DRIVERS-$(CONFIG_USB_GADGET) += drivers/usb/gadget/built-in.o
/linux-2.4.37.9/Documentation/
DConfigure.help16267 peripheral/device side bus controller, and a "gadget driver" for
16268 your peripheral protocol. (If you use modular gadget drivers,
16284 gadget drivers to also be dynamically linked.
16293 USB "gadget drivers" can be written.
16320 Within the USB device, this gadget driver exposes a network device
16322 Treat it like a two-node Ethernet link: host, and gadget.
16338 If you say "y" here, the Ethernet gadget driver will try to provide