Home
last modified time | relevance | path

Searched refs:usb_gadget (Results 1 – 25 of 134) sorted by relevance

123456

/linux/include/linux/usb/
A Dgadget.h304 struct usb_gadget;
312 int (*get_frame)(struct usb_gadget *);
313 int (*wakeup)(struct usb_gadget *);
318 int (*ioctl)(struct usb_gadget *,
322 int (*udc_start)(struct usb_gadget *,
324 int (*udc_stop)(struct usb_gadget *);
408 struct usb_gadget { struct
461 static inline struct usb_gadget *usb_get_gadget(struct usb_gadget *gadget) in usb_get_gadget()
721 int (*setup)(struct usb_gadget *,
726 void (*reset)(struct usb_gadget *);
[all …]
A Dcomposite.h252 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,
479 struct usb_gadget *gadget;
527 extern void composite_disconnect(struct usb_gadget *gadget);
528 extern void composite_reset(struct usb_gadget *gadget);
530 extern int composite_setup(struct usb_gadget *gadget,
532 extern void composite_suspend(struct usb_gadget *gadget);
533 extern void composite_resume(struct usb_gadget *gadget);
A Dotg.h23 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/udc/
A Dcore.c41 struct usb_gadget *gadget;
495 int usb_gadget_wakeup(struct usb_gadget *gadget) in usb_gadget_wakeup()
670 int usb_gadget_connect(struct usb_gadget *gadget) in usb_gadget_connect()
793 int usb_gadget_activate(struct usb_gadget *gadget) in usb_gadget_activate()
1157 struct usb_gadget *gadget = udc->gadget; in usb_gadget_udc_set_speed()
1183 struct usb_gadget *gadget = udc->gadget; in usb_gadget_enable_async_callbacks()
1212 struct usb_gadget *gadget = udc->gadget; in usb_gadget_disable_async_callbacks()
1292 int usb_add_gadget(struct usb_gadget *gadget) in usb_add_gadget()
1451 void usb_del_gadget(struct usb_gadget *gadget) in usb_del_gadget()
1661 struct usb_gadget *gadget = udc->gadget; in state_show()
[all …]
A Dtrace.h21 TP_PROTO(struct usb_gadget *g, int ret),
85 TP_PROTO(struct usb_gadget *g, int ret),
90 TP_PROTO(struct usb_gadget *g, int ret),
95 TP_PROTO(struct usb_gadget *g, int ret),
100 TP_PROTO(struct usb_gadget *g, int ret),
105 TP_PROTO(struct usb_gadget *g, int ret),
110 TP_PROTO(struct usb_gadget *g, int ret),
115 TP_PROTO(struct usb_gadget *g, int ret),
120 TP_PROTO(struct usb_gadget *g, int ret),
125 TP_PROTO(struct usb_gadget *g, int ret),
[all …]
A Ds3c2410_udc.h16 struct usb_gadget *gadget;
77 struct usb_gadget gadget;
A Dat91_udc.h124 struct usb_gadget gadget;
149 static inline struct at91_udc *to_udc(struct usb_gadget *g) in to_udc()
A Ds3c2410_udc.c989 static inline struct s3c2410_udc *to_s3c2410_udc(struct usb_gadget *gadget) in to_s3c2410_udc()
1376 static int s3c2410_udc_get_frame(struct usb_gadget *_gadget) in s3c2410_udc_get_frame()
1390 static int s3c2410_udc_wakeup(struct usb_gadget *_gadget) in s3c2410_udc_wakeup()
1399 static int s3c2410_udc_set_selfpowered(struct usb_gadget *gadget, int value) in s3c2410_udc_set_selfpowered()
1441 static int s3c2410_udc_vbus_session(struct usb_gadget *gadget, int is_active) in s3c2410_udc_vbus_session()
1452 static int s3c2410_udc_pullup(struct usb_gadget *gadget, int is_on) in s3c2410_udc_pullup()
1479 static int s3c2410_vbus_draw(struct usb_gadget *_gadget, unsigned ma) in s3c2410_vbus_draw()
1491 static int s3c2410_udc_start(struct usb_gadget *g,
1493 static int s3c2410_udc_stop(struct usb_gadget *g);
1618 static int s3c2410_udc_start(struct usb_gadget *g, in s3c2410_udc_start()
[all …]
A Ddummy_hcd.c85 struct usb_gadget *gadget;
269 struct usb_gadget gadget;
842 static int dummy_g_get_frame(struct usb_gadget *_gadget) in dummy_g_get_frame()
850 static int dummy_wakeup(struct usb_gadget *_gadget) in dummy_wakeup()
894 static int dummy_pullup(struct usb_gadget *_gadget, int value) in dummy_pullup()
927 static void dummy_udc_set_speed(struct usb_gadget *_gadget, in dummy_udc_set_speed()
946 static int dummy_udc_start(struct usb_gadget *g,
948 static int dummy_udc_stop(struct usb_gadget *g);
991 static int dummy_udc_start(struct usb_gadget *g, in dummy_udc_start()
1023 static int dummy_udc_stop(struct usb_gadget *g) in dummy_udc_stop()
[all …]
/linux/drivers/usb/gadget/function/
A Du_ether.h90 struct eth_dev *gether_setup_name(struct usb_gadget *g,
107 static inline struct eth_dev *gether_setup(struct usb_gadget *g, in gether_setup()
150 void gether_set_gadget(struct net_device *net, struct usb_gadget *g);
266 static inline bool can_support_ecm(struct usb_gadget *gadget) in can_support_ecm()
A Du_hid.h37 int ghid_setup(struct usb_gadget *g, int count);
A Du_phonet.h21 void gphonet_set_gadget(struct net_device *net, struct usb_gadget *g);
/linux/drivers/usb/gadget/
A Depautoconf.c64 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()
A Dconfig.c165 struct usb_gadget *g = f->config->cdev->gadget; in usb_assign_descriptors()
216 struct usb_gadget *gadget) in usb_otg_descriptor_alloc()
231 int usb_otg_descriptor_init(struct usb_gadget *gadget, in usb_otg_descriptor_init()
A Dcomposite.c149 int config_ep_by_speed_and_alt(struct usb_gadget *g, in config_ep_by_speed_and_alt()
279 int config_ep_by_speed(struct usb_gadget *g, in config_ep_by_speed()
554 struct usb_gadget *gadget = cdev->gadget; in config_desc()
617 struct usb_gadget *gadget = cdev->gadget; in count_configs()
852 struct usb_gadget *gadget = cdev->gadget; in set_config()
2109 void composite_disconnect(struct usb_gadget *gadget) in composite_disconnect()
2115 void composite_reset(struct usb_gadget *gadget) in composite_reset()
2131 struct usb_gadget *gadget = dev_to_usb_gadget(dev); in suspended_show()
2216 struct usb_gadget *gadget = cdev->gadget; in composite_dev_prepare()
2381 void composite_suspend(struct usb_gadget *gadget) in composite_suspend()
[all …]
/linux/drivers/usb/gadget/legacy/
A Ddbgp.c27 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()
A Draw_gadget.c166 struct usb_gadget *gadget;
267 static int gadget_bind(struct usb_gadget *gadget, in gadget_bind()
311 static void gadget_unbind(struct usb_gadget *gadget) in gadget_unbind()
320 static int gadget_setup(struct usb_gadget *gadget, in gadget_setup()
356 static void gadget_disconnect(struct usb_gadget *gadget) { } in gadget_disconnect()
357 static void gadget_suspend(struct usb_gadget *gadget) { } in gadget_suspend()
358 static void gadget_resume(struct usb_gadget *gadget) { } in gadget_resume()
359 static void gadget_reset(struct usb_gadget *gadget) { } in gadget_reset()
/linux/drivers/usb/usbip/
A Dvudc.h31 struct usb_gadget *gadget;
87 struct usb_gadget gadget;
134 struct usb_gadget *_gadget) in usb_gadget_to_vudc()
A Dvudc_dev.c126 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/gadget/udc/aspeed-vhub/
A Ddev.c266 static int ast_vhub_udc_wakeup(struct usb_gadget* gadget) in ast_vhub_udc_wakeup()
286 static int ast_vhub_udc_get_frame(struct usb_gadget* gadget) in ast_vhub_udc_get_frame()
304 static int ast_vhub_udc_pullup(struct usb_gadget* gadget, int on) in ast_vhub_udc_pullup()
330 static int ast_vhub_udc_start(struct usb_gadget *gadget, in ast_vhub_udc_start()
349 static struct usb_ep *ast_vhub_udc_match_ep(struct usb_gadget *gadget, in ast_vhub_udc_match_ep()
434 static int ast_vhub_udc_stop(struct usb_gadget *gadget) in ast_vhub_udc_stop()
/linux/drivers/usb/mtu3/
A Dmtu3_gadget.c429 static int mtu3_gadget_get_frame(struct usb_gadget *gadget) in mtu3_gadget_get_frame()
436 static int mtu3_gadget_wakeup(struct usb_gadget *gadget) in mtu3_gadget_wakeup()
461 static int mtu3_gadget_set_self_powered(struct usb_gadget *gadget, in mtu3_gadget_set_self_powered()
470 static int mtu3_gadget_pullup(struct usb_gadget *gadget, int is_on) in mtu3_gadget_pullup()
498 static int mtu3_gadget_start(struct usb_gadget *gadget, in mtu3_gadget_start()
561 static int mtu3_gadget_stop(struct usb_gadget *g) in mtu3_gadget_stop()
583 mtu3_gadget_set_speed(struct usb_gadget *g, enum usb_device_speed speed) in mtu3_gadget_set_speed()
/linux/drivers/usb/gadget/udc/bdc/
A Dbdc_udc.c362 static int bdc_udc_start(struct usb_gadget *gadget, in bdc_udc_start()
396 static int bdc_udc_stop(struct usb_gadget *gadget) in bdc_udc_stop()
411 static int bdc_udc_pullup(struct usb_gadget *gadget, int is_on) in bdc_udc_pullup()
446 static int bdc_udc_set_selfpowered(struct usb_gadget *gadget, in bdc_udc_set_selfpowered()
465 static int bdc_udc_wakeup(struct usb_gadget *gadget) in bdc_udc_wakeup()
/linux/drivers/usb/renesas_usbhs/
A Dmod_gadget.c40 struct usb_gadget gadget;
947 static int usbhsg_gadget_start(struct usb_gadget *gadget, in usbhsg_gadget_start()
980 static int usbhsg_gadget_stop(struct usb_gadget *gadget) in usbhsg_gadget_stop()
998 static int usbhsg_get_frame(struct usb_gadget *gadget) in usbhsg_get_frame()
1006 static int usbhsg_pullup(struct usb_gadget *gadget, int is_on) in usbhsg_pullup()
1023 static int usbhsg_set_selfpowered(struct usb_gadget *gadget, int is_self) in usbhsg_set_selfpowered()
1037 static int usbhsg_vbus_session(struct usb_gadget *gadget, int is_active) in usbhsg_vbus_session()
/linux/drivers/usb/chipidea/
A Dudc.c833 static int _gadget_stop_activity(struct usb_gadget *gadget) in _gadget_stop_activity()
1687 static int ci_udc_vbus_session(struct usb_gadget *_gadget, int is_active) in ci_udc_vbus_session()
1711 static int ci_udc_wakeup(struct usb_gadget *_gadget) in ci_udc_wakeup()
1736 static int ci_udc_vbus_draw(struct usb_gadget *_gadget, unsigned ma) in ci_udc_vbus_draw()
1745 static int ci_udc_selfpowered(struct usb_gadget *_gadget, int is_on) in ci_udc_selfpowered()
1761 static int ci_udc_pullup(struct usb_gadget *_gadget, int is_on) in ci_udc_pullup()
1782 static int ci_udc_start(struct usb_gadget *gadget,
1784 static int ci_udc_stop(struct usb_gadget *gadget);
1787 static struct usb_ep *ci_udc_match_ep(struct usb_gadget *gadget, in ci_udc_match_ep()
1905 static int ci_udc_start(struct usb_gadget *gadget, in ci_udc_start()
[all …]
/linux/tools/usb/usbip/vudc/
A Dvudc_server_example.sh48 cd ${CONFIGFS_MOUNT_POINT}/usb_gadget

Completed in 61 milliseconds

123456