| /linux/include/linux/usb/ |
| H A D | gadget.h | 330 struct usb_gadget; 338 int (*get_frame)(struct usb_gadget *); 339 int (*wakeup)(struct usb_gadget *); 340 int (*func_wakeup)(struct usb_gadget *gadget, int intf_id); 341 int (*set_remote_wakeup)(struct usb_gadget *, int set); 342 int (*set_selfpowered) (struct usb_gadget *, int is_selfpowered); 343 int (*vbus_session) (struct usb_gadget *, int is_active); 344 int (*vbus_draw) (struct usb_gadget *, unsigned mA); 345 int (*pullup) (struct usb_gadget *, int is_on); 346 int (*ioctl)(struct usb_gadget *, [all …]
|
| H A D | composite.h | 252 int config_ep_by_speed_and_alt(struct usb_gadget *g, struct usb_function *f, 255 int config_ep_by_speed(struct usb_gadget *g, struct usb_function *f, 427 void check_remote_wakeup_config(struct usb_gadget *g, 460 struct usb_gadget *gadget; 515 extern void composite_disconnect(struct usb_gadget *gadget); 516 extern void composite_reset(struct usb_gadget *gadget); 518 extern int composite_setup(struct usb_gadget *gadget, 520 extern void composite_suspend(struct usb_gadget *gadget); 521 extern void composite_resume(struct usb_gadget *gadget);
|
| H A D | otg.h | 23 struct usb_gadget *gadget; 32 struct usb_gadget *gadget); 96 otg_set_peripheral(struct usb_otg *otg, struct usb_gadget *periph) in otg_set_peripheral()
|
| /linux/drivers/usb/gadget/function/ |
| H A D | u_ether.h | 91 struct eth_dev *gether_setup_name(struct usb_gadget *g, 108 static inline struct eth_dev *gether_setup(struct usb_gadget *g, in gether_setup() 151 void gether_set_gadget(struct net_device *net, struct usb_gadget *g); 164 int gether_attach_gadget(struct net_device *net, struct usb_gadget *g); 296 static inline bool can_support_ecm(struct usb_gadget *gadget) in can_support_ecm() 309 static inline unsigned int gether_bitrate(struct usb_gadget *g) in gether_bitrate()
|
| H A D | u_ether.c | 63 struct usb_gadget *gadget; 98 static inline int qlen(struct usb_gadget *gadget, unsigned qmult) in qlen() 148 struct usb_gadget *g = dev->gadget; in rx_submit() 447 struct usb_gadget *gadget = func->config->cdev->gadget; in ether_wakeup_host() 742 struct eth_dev *gether_setup_name(struct usb_gadget *g, in gether_setup_name() 863 struct usb_gadget *g; in gether_register_netdev() 892 void gether_set_gadget(struct net_device *net, struct usb_gadget *g) in gether_set_gadget() 902 int gether_attach_gadget(struct net_device *net, struct usb_gadget *g) in gether_attach_gadget()
|
| H A D | u_phonet.h | 21 void gphonet_set_gadget(struct net_device *net, struct usb_gadget *g);
|
| H A D | u_hid.h | 39 int ghid_setup(struct usb_gadget *g, int count);
|
| H A D | u_uac1_legacy.h | 46 struct usb_gadget *gadget;
|
| /linux/drivers/usb/gadget/ |
| H A D | epautoconf.c | 64 struct usb_gadget *gadget, in usb_ep_autoconfig_ss() 150 struct usb_gadget *gadget, in usb_ep_autoconfig() 203 void usb_ep_autoconfig_reset (struct usb_gadget *gadget) in usb_ep_autoconfig_reset()
|
| H A D | composite.c | 151 int config_ep_by_speed_and_alt(struct usb_gadget *g, in config_ep_by_speed_and_alt() 288 int config_ep_by_speed(struct usb_gadget *g, in config_ep_by_speed() 505 struct usb_gadget *gadget = func->config->cdev->gadget; in usb_func_wakeup() 550 void check_remote_wakeup_config(struct usb_gadget *g, in check_remote_wakeup_config() 616 struct usb_gadget *gadget = cdev->gadget; in config_desc() 679 struct usb_gadget *gadget = cdev->gadget; in count_configs() 950 struct usb_gadget *gadget = cdev->gadget; in set_config() 1754 composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl) in composite_setup() 2284 static void __composite_disconnect(struct usb_gadget *gadget) in __composite_disconnect() 2301 void composite_disconnect(struct usb_gadget *gadget) in composite_disconnect() [all …]
|
| H A D | config.c | 161 struct usb_gadget *gadget) in usb_otg_descriptor_alloc() 176 int usb_otg_descriptor_init(struct usb_gadget *gadget, in usb_otg_descriptor_init()
|
| /linux/drivers/usb/gadget/legacy/ |
| H A D | dbgp.c | 27 struct usb_gadget *gadget; 209 static void dbgp_disconnect(struct usb_gadget *gadget) in dbgp_disconnect() 218 static void dbgp_unbind(struct usb_gadget *gadget) in dbgp_unbind() 235 static int dbgp_configure_endpoints(struct usb_gadget *gadget) in dbgp_configure_endpoints() 277 static int dbgp_bind(struct usb_gadget *gadget, in dbgp_bind() 337 static int dbgp_setup(struct usb_gadget *gadget, in dbgp_setup()
|
| H A D | raw_gadget.c | 176 struct usb_gadget *gadget; 281 static int gadget_bind(struct usb_gadget *gadget, in gadget_bind() 328 static void gadget_unbind(struct usb_gadget *gadget) in gadget_unbind() 337 static int gadget_setup(struct usb_gadget *gadget, in gadget_setup() 382 static void gadget_disconnect(struct usb_gadget *gadget) in gadget_disconnect() 392 static void gadget_suspend(struct usb_gadget *gadget) in gadget_suspend() 402 static void gadget_resume(struct usb_gadget *gadget) in gadget_resume() 412 static void gadget_reset(struct usb_gadget *gadget) in gadget_reset()
|
| /linux/drivers/usb/usbip/ |
| H A D | vudc.h | 31 struct usb_gadget *gadget; 87 struct usb_gadget gadget; 134 struct usb_gadget *_gadget) in usb_gadget_to_vudc()
|
| H A D | vudc_dev.c | 126 static int vgadget_get_frame(struct usb_gadget *_gadget) in vgadget_get_frame() 137 static int vgadget_set_selfpowered(struct usb_gadget *_gadget, int value) in vgadget_set_selfpowered() 148 static int vgadget_pullup(struct usb_gadget *_gadget, int value) in vgadget_pullup() 193 static int vgadget_udc_start(struct usb_gadget *g, in vgadget_udc_start() 207 static int vgadget_udc_stop(struct usb_gadget *g) in vgadget_udc_stop()
|
| /linux/drivers/usb/mtu3/ |
| H A D | mtu3_gadget.c | 429 static int mtu3_gadget_get_frame(struct usb_gadget *gadget) in mtu3_gadget_get_frame() 443 static int mtu3_gadget_wakeup(struct usb_gadget *gadget) in mtu3_gadget_wakeup() 479 static int mtu3_gadget_set_self_powered(struct usb_gadget *gadget, in mtu3_gadget_set_self_powered() 488 static int mtu3_gadget_pullup(struct usb_gadget *gadget, int is_on) in mtu3_gadget_pullup() 516 static int mtu3_gadget_start(struct usb_gadget *gadget, in mtu3_gadget_start() 579 static int mtu3_gadget_stop(struct usb_gadget *g) in mtu3_gadget_stop() 601 mtu3_gadget_set_speed(struct usb_gadget *g, enum usb_device_speed speed) in mtu3_gadget_set_speed() 613 static void mtu3_gadget_async_callbacks(struct usb_gadget *g, bool enable) in mtu3_gadget_async_callbacks()
|
| /linux/drivers/usb/gadget/udc/aspeed-vhub/ |
| H A D | dev.c | 276 static int ast_vhub_udc_wakeup(struct usb_gadget* gadget) in ast_vhub_udc_wakeup() 296 static int ast_vhub_udc_get_frame(struct usb_gadget* gadget) in ast_vhub_udc_get_frame() 314 static int ast_vhub_udc_pullup(struct usb_gadget* gadget, int on) in ast_vhub_udc_pullup() 340 static int ast_vhub_udc_start(struct usb_gadget *gadget, in ast_vhub_udc_start() 359 static struct usb_ep *ast_vhub_udc_match_ep(struct usb_gadget *gadget, in ast_vhub_udc_match_ep() 444 static int ast_vhub_udc_stop(struct usb_gadget *gadget) in ast_vhub_udc_stop()
|
| /linux/drivers/usb/gadget/udc/ |
| H A D | at91_udc.h | 122 struct usb_gadget gadget; 147 static inline struct at91_udc *to_udc(struct usb_gadget *g) in to_udc()
|
| H A D | dummy_hcd.c | 88 struct usb_gadget *gadget; 273 struct usb_gadget gadget; 314 static inline struct dummy_hcd *gadget_to_dummy_hcd(struct usb_gadget *gadget) in gadget_to_dummy_hcd() 852 static int dummy_g_get_frame(struct usb_gadget *_gadget) in dummy_g_get_frame() 860 static int dummy_wakeup(struct usb_gadget *_gadget) in dummy_wakeup() 883 static int dummy_set_selfpowered(struct usb_gadget *_gadget, int value) in dummy_set_selfpowered() 904 static int dummy_pullup(struct usb_gadget *_gadget, int value) in dummy_pullup() 922 static void dummy_udc_set_speed(struct usb_gadget *_gadget, in dummy_udc_set_speed() 932 static void dummy_udc_async_callbacks(struct usb_gadget *_gadget, bool enable) in dummy_udc_async_callbacks() 955 static int dummy_udc_start(struct usb_gadget *g, [all …]
|
| H A D | atmel_usba_udc.h | 333 struct usb_gadget gadget; 373 static inline struct usba_udc *to_usba_udc(struct usb_gadget *gadget) in to_usba_udc()
|
| /linux/drivers/usb/gadget/udc/bdc/ |
| H A D | bdc_udc.c | 363 static int bdc_udc_start(struct usb_gadget *gadget, in bdc_udc_start() 397 static int bdc_udc_stop(struct usb_gadget *gadget) in bdc_udc_stop() 412 static int bdc_udc_pullup(struct usb_gadget *gadget, int is_on) in bdc_udc_pullup() 447 static int bdc_udc_set_selfpowered(struct usb_gadget *gadget, in bdc_udc_set_selfpowered() 466 static int bdc_udc_wakeup(struct usb_gadget *gadget) in bdc_udc_wakeup()
|
| /linux/tools/usb/usbip/vudc/ |
| H A D | vudc_server_example.sh | 48 cd ${CONFIGFS_MOUNT_POINT}/usb_gadget
|
| /linux/drivers/usb/chipidea/ |
| H A D | udc.c | 998 static int _gadget_stop_activity(struct usb_gadget *gadget) in _gadget_stop_activity() 1838 static int ci_udc_get_frame(struct usb_gadget *_gadget) in ci_udc_get_frame() 1853 static void ci_hdrc_gadget_connect(struct usb_gadget *_gadget, int is_active) in ci_hdrc_gadget_connect() 1883 static int ci_udc_vbus_session(struct usb_gadget *_gadget, int is_active) in ci_udc_vbus_session() 1914 static int ci_udc_wakeup(struct usb_gadget *_gadget) in ci_udc_wakeup() 1939 static int ci_udc_vbus_draw(struct usb_gadget *_gadget, unsigned ma) in ci_udc_vbus_draw() 1948 static int ci_udc_selfpowered(struct usb_gadget *_gadget, int is_on) in ci_udc_selfpowered() 1964 static int ci_udc_pullup(struct usb_gadget *_gadget, int is_on) in ci_udc_pullup() 1990 static int ci_udc_start(struct usb_gadget *gadget, 1992 static int ci_udc_stop(struct usb_gadget *gadget); [all …]
|
| /linux/drivers/usb/isp1760/ |
| H A D | isp1760-udc.h | 75 struct usb_gadget gadget;
|
| /linux/drivers/usb/musb/ |
| H A D | musb_gadget.c | 1506 static int musb_gadget_get_frame(struct usb_gadget *gadget) in musb_gadget_get_frame() 1513 static int musb_gadget_wakeup(struct usb_gadget *gadget) in musb_gadget_wakeup() 1590 musb_gadget_set_self_powered(struct usb_gadget *gadget, int is_selfpowered) in musb_gadget_set_self_powered() 1614 static int musb_gadget_vbus_session(struct usb_gadget *gadget, int is_active) 1627 static int musb_gadget_vbus_draw(struct usb_gadget *gadget, unsigned mA) in musb_gadget_vbus_draw() 1647 static int musb_gadget_pullup(struct usb_gadget *gadget, int is_on) in musb_gadget_pullup() 1667 static int musb_gadget_start(struct usb_gadget *g, 1669 static int musb_gadget_stop(struct usb_gadget *g); 1826 static int musb_gadget_start(struct usb_gadget *g, in musb_gadget_start() 1877 static int musb_gadget_stop(struct usb_gadget *g) in musb_gadget_stop()
|