Lines Matching refs:usb_gadget
431 struct usb_gadget;
438 int (*get_frame)(struct usb_gadget *);
439 int (*wakeup)(struct usb_gadget *);
440 int (*set_selfpowered) (struct usb_gadget *, int is_selfpowered);
441 int (*vbus_session) (struct usb_gadget *, int is_active);
442 int (*vbus_draw) (struct usb_gadget *, unsigned mA);
443 int (*pullup) (struct usb_gadget *, int is_on);
444 int (*ioctl)(struct usb_gadget *,
446 int (*udc_start)(struct usb_gadget *,
448 int (*udc_stop)(struct usb_gadget *);
497 struct usb_gadget { struct
516 static inline void set_gadget_data(struct usb_gadget *gadget, void *data) in set_gadget_data() argument
521 static inline void *get_gadget_data(struct usb_gadget *gadget) in get_gadget_data()
526 static inline struct usb_gadget *dev_to_usb_gadget(struct device *dev) in dev_to_usb_gadget()
528 return container_of(dev, struct usb_gadget, dev); in dev_to_usb_gadget()
540 static inline int gadget_is_dualspeed(struct usb_gadget *g) in gadget_is_dualspeed()
559 static inline int gadget_is_otg(struct usb_gadget *g) in gadget_is_otg()
575 static inline int usb_gadget_frame_number(struct usb_gadget *gadget) in usb_gadget_frame_number()
593 static inline int usb_gadget_wakeup(struct usb_gadget *gadget) in usb_gadget_wakeup()
609 static inline int usb_gadget_set_selfpowered(struct usb_gadget *gadget) in usb_gadget_set_selfpowered()
626 static inline int usb_gadget_clear_selfpowered(struct usb_gadget *gadget) in usb_gadget_clear_selfpowered()
645 static inline int usb_gadget_vbus_connect(struct usb_gadget *gadget) in usb_gadget_vbus_connect()
664 static inline int usb_gadget_vbus_draw(struct usb_gadget *gadget, unsigned mA) in usb_gadget_vbus_draw()
681 static inline int usb_gadget_vbus_disconnect(struct usb_gadget *gadget) in usb_gadget_vbus_disconnect()
699 static inline int usb_gadget_connect(struct usb_gadget *gadget) in usb_gadget_connect()
721 static inline int usb_gadget_disconnect(struct usb_gadget *gadget) in usb_gadget_disconnect()
805 int (*bind)(struct usb_gadget *);
806 void (*unbind)(struct usb_gadget *);
807 int (*setup)(struct usb_gadget *,
809 void (*disconnect)(struct usb_gadget *);
810 void (*suspend)(struct usb_gadget *);
811 void (*resume)(struct usb_gadget *);
812 void (*reset)(struct usb_gadget *);
854 struct usb_gadget *gadget, void (*release)(struct device *dev));
855 int usb_add_gadget_udc(struct device *parent, struct usb_gadget *gadget);
856 void usb_del_gadget_udc(struct usb_gadget *gadget);
892 extern int usb_gadget_map_request(struct usb_gadget *gadget,
895 extern void usb_gadget_unmap_request(struct usb_gadget *gadget,
902 extern void usb_gadget_set_state(struct usb_gadget *gadget,
908 extern void usb_gadget_udc_reset(struct usb_gadget *gadget,
922 extern struct usb_ep *usb_ep_autoconfig(struct usb_gadget *,
925 extern void usb_ep_autoconfig_reset(struct usb_gadget *);