Home
last modified time | relevance | path

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

1234

/linux/include/linux/usb/
H A Dgadget.h305 struct usb_gadget;
313 int (*get_frame)(struct usb_gadget *);
314 int (*wakeup)(struct usb_gadget *);
315 int (*func_wakeup)(struct usb_gadget *gadget, int intf_id);
316 int (*set_remote_wakeup)(struct usb_gadget *, int set);
317 int (*set_selfpowered) (struct usb_gadget *, int is_selfpowered);
318 int (*vbus_session) (struct usb_gadget *, int is_active);
319 int (*vbus_draw) (struct usb_gadget *, unsigned mA);
320 int (*pullup) (struct usb_gadget *, int is_on);
321 int (*ioctl)(struct usb_gadget *,
[all …]
H 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,
430 void check_remote_wakeup_config(struct usb_gadget *g,
463 struct usb_gadget *gadget;
518 extern void composite_disconnect(struct usb_gadget *gadget);
519 extern void composite_reset(struct usb_gadget *gadget);
521 extern int composite_setup(struct usb_gadget *gadget,
523 extern void composite_suspend(struct usb_gadget *gadget);
524 extern void composite_resume(struct usb_gadget *gadget);
H 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/function/
H A Du_ether.h91 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);
270 static inline bool can_support_ecm(struct usb_gadget *gadget) in can_support_ecm()
283 static inline unsigned int gether_bitrate(struct usb_gadget *g) in gether_bitrate()
H A Du_hid.h37 int ghid_setup(struct usb_gadget *g, int count);
H A Du_phonet.h21 void gphonet_set_gadget(struct net_device *net, struct usb_gadget *g);
H A Du_ether.c62 struct usb_gadget *gadget;
97 static inline int qlen(struct usb_gadget *gadget, unsigned qmult) in qlen()
145 struct usb_gadget *g = dev->gadget; in rx_submit()
444 struct usb_gadget *gadget = func->config->cdev->gadget; in ether_wakeup_host()
739 struct eth_dev *gether_setup_name(struct usb_gadget *g, in gether_setup_name()
860 struct usb_gadget *g; in gether_register_netdev()
889 void gether_set_gadget(struct net_device *net, struct usb_gadget *g) in gether_set_gadget()
H A Du_uac1_legacy.h46 struct usb_gadget *gadget;
/linux/drivers/usb/gadget/
H 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()
H A Dcomposite.c151 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()
1778 composite_setup(struct usb_gadget *gadget, const struct usb_ctrlrequest *ctrl) in composite_setup()
2310 static void __composite_disconnect(struct usb_gadget *gadget) in __composite_disconnect()
2327 void composite_disconnect(struct usb_gadget *gadget) in composite_disconnect()
[all …]
/linux/drivers/usb/gadget/legacy/
H 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()
/linux/drivers/usb/usbip/
H A Dvudc.h31 struct usb_gadget *gadget;
87 struct usb_gadget gadget;
134 struct usb_gadget *_gadget) in usb_gadget_to_vudc()
H 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/mtu3/
H A Dmtu3_gadget.c429 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()
H A Dmtu3.h344 struct usb_gadget g; /* the gadget */
370 static inline struct mtu3 *gadget_to_mtu3(struct usb_gadget *g) in gadget_to_mtu3()
/linux/drivers/usb/gadget/udc/aspeed-vhub/
H A Ddev.c276 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 Dat91_udc.h122 struct usb_gadget gadget;
147 static inline struct at91_udc *to_udc(struct usb_gadget *g) in to_udc()
H A Datmel_usba_udc.h333 struct usb_gadget gadget;
373 static inline struct usba_udc *to_usba_udc(struct usb_gadget *gadget) in to_usba_udc()
H A Dfsl_qe_udc.h265 struct usb_gadget *gadget;
316 struct usb_gadget gadget;
/linux/drivers/usb/gadget/udc/bdc/
H A Dbdc_udc.c363 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/drivers/usb/renesas_usbhs/
H 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/tools/usb/usbip/vudc/
H A Dvudc_server_example.sh48 cd ${CONFIGFS_MOUNT_POINT}/usb_gadget
/linux/drivers/usb/isp1760/
H A Disp1760-udc.h75 struct usb_gadget gadget;
H A Disp1760-udc.c35 static inline struct isp1760_udc *gadget_to_udc(struct usb_gadget *gadget) in gadget_to_udc()
1228 static int isp1760_udc_get_frame(struct usb_gadget *gadget) in isp1760_udc_get_frame()
1235 static int isp1760_udc_wakeup(struct usb_gadget *gadget) in isp1760_udc_wakeup()
1243 static int isp1760_udc_set_selfpowered(struct usb_gadget *gadget, in isp1760_udc_set_selfpowered()
1256 static int isp1760_udc_pullup(struct usb_gadget *gadget, int is_on) in isp1760_udc_pullup()
1266 static int isp1760_udc_start(struct usb_gadget *gadget, in isp1760_udc_start()
1309 static int isp1760_udc_stop(struct usb_gadget *gadget) in isp1760_udc_stop()
/linux/drivers/usb/dwc3/
H A Dgadget.c1275 struct usb_gadget *gadget = dwc->gadget; in dwc3_prepare_one_trb()
2347 static int dwc3_gadget_get_frame(struct usb_gadget *g) in dwc3_gadget_get_frame()
2429 static int dwc3_gadget_wakeup(struct usb_gadget *g) in dwc3_gadget_wakeup()
2455 static int dwc3_gadget_func_wakeup(struct usb_gadget *g, int intf_id) in dwc3_gadget_func_wakeup()
2495 static int dwc3_gadget_set_remote_wakeup(struct usb_gadget *g, int set) in dwc3_gadget_set_remote_wakeup()
2507 static int dwc3_gadget_set_selfpowered(struct usb_gadget *g, in dwc3_gadget_set_selfpowered()
2800 static int dwc3_gadget_pullup(struct usb_gadget *g, int is_on) in dwc3_gadget_pullup()
3019 static int dwc3_gadget_start(struct usb_gadget *g, in dwc3_gadget_start()
3053 static int dwc3_gadget_stop(struct usb_gadget *g) in dwc3_gadget_stop()
3071 static void dwc3_gadget_config_params(struct usb_gadget *g, in dwc3_gadget_config_params()
[all …]

1234