• Home
  • Raw
  • Download

Lines Matching refs:gadget

333 	void	(*udc_set_ssp_rate)(struct usb_gadget *gadget,
335 void (*udc_async_callbacks)(struct usb_gadget *gadget, bool enable);
339 int (*check_config)(struct usb_gadget *gadget);
470 static inline void set_gadget_data(struct usb_gadget *gadget, void *data) in set_gadget_data() argument
471 { dev_set_drvdata(&gadget->dev, data); } in set_gadget_data()
472 static inline void *get_gadget_data(struct usb_gadget *gadget) in get_gadget_data() argument
473 { return dev_get_drvdata(&gadget->dev); } in get_gadget_data()
478 static inline struct usb_gadget *usb_get_gadget(struct usb_gadget *gadget) in usb_get_gadget() argument
480 get_device(&gadget->dev); in usb_get_gadget()
481 return gadget; in usb_get_gadget()
483 static inline void usb_put_gadget(struct usb_gadget *gadget) in usb_put_gadget() argument
485 put_device(&gadget->dev); in usb_put_gadget()
488 struct usb_gadget *gadget, void (*release)(struct device *dev));
489 extern int usb_add_gadget(struct usb_gadget *gadget);
490 extern void usb_del_gadget(struct usb_gadget *gadget);
494 struct usb_gadget *gadget, void (*release)(struct device *dev));
495 extern int usb_add_gadget_udc(struct device *parent, struct usb_gadget *gadget);
496 extern void usb_del_gadget_udc(struct usb_gadget *gadget);
500 #define gadget_for_each_ep(tmp, gadget) \ argument
501 list_for_each_entry(tmp, &(gadget)->ep_list, ep_list)
618 int usb_gadget_frame_number(struct usb_gadget *gadget);
619 int usb_gadget_wakeup(struct usb_gadget *gadget);
620 int usb_gadget_set_selfpowered(struct usb_gadget *gadget);
621 int usb_gadget_clear_selfpowered(struct usb_gadget *gadget);
622 int usb_gadget_vbus_connect(struct usb_gadget *gadget);
623 int usb_gadget_vbus_draw(struct usb_gadget *gadget, unsigned mA);
624 int usb_gadget_vbus_disconnect(struct usb_gadget *gadget);
625 int usb_gadget_connect(struct usb_gadget *gadget);
626 int usb_gadget_disconnect(struct usb_gadget *gadget);
627 int usb_gadget_deactivate(struct usb_gadget *gadget);
628 int usb_gadget_activate(struct usb_gadget *gadget);
629 int usb_gadget_check_config(struct usb_gadget *gadget);
631 static inline int usb_gadget_frame_number(struct usb_gadget *gadget) in usb_gadget_frame_number() argument
633 static inline int usb_gadget_wakeup(struct usb_gadget *gadget) in usb_gadget_wakeup() argument
635 static inline int usb_gadget_set_selfpowered(struct usb_gadget *gadget) in usb_gadget_set_selfpowered() argument
637 static inline int usb_gadget_clear_selfpowered(struct usb_gadget *gadget) in usb_gadget_clear_selfpowered() argument
639 static inline int usb_gadget_vbus_connect(struct usb_gadget *gadget) in usb_gadget_vbus_connect() argument
641 static inline int usb_gadget_vbus_draw(struct usb_gadget *gadget, unsigned mA) in usb_gadget_vbus_draw() argument
643 static inline int usb_gadget_vbus_disconnect(struct usb_gadget *gadget) in usb_gadget_vbus_disconnect() argument
645 static inline int usb_gadget_connect(struct usb_gadget *gadget) in usb_gadget_connect() argument
647 static inline int usb_gadget_disconnect(struct usb_gadget *gadget) in usb_gadget_disconnect() argument
649 static inline int usb_gadget_deactivate(struct usb_gadget *gadget) in usb_gadget_deactivate() argument
651 static inline int usb_gadget_activate(struct usb_gadget *gadget) in usb_gadget_activate() argument
653 static inline int usb_gadget_check_config(struct usb_gadget *gadget) in usb_gadget_check_config() argument
735 int (*bind)(struct usb_gadget *gadget,
867 struct usb_gadget *gadget);
868 int usb_otg_descriptor_init(struct usb_gadget *gadget,
877 extern int usb_gadget_map_request(struct usb_gadget *gadget,
882 extern void usb_gadget_unmap_request(struct usb_gadget *gadget,
887 static inline int usb_gadget_map_request(struct usb_gadget *gadget, in usb_gadget_map_request() argument
892 static inline void usb_gadget_unmap_request(struct usb_gadget *gadget, in usb_gadget_unmap_request() argument
900 extern void usb_gadget_set_state(struct usb_gadget *gadget,
906 extern void usb_gadget_udc_reset(struct usb_gadget *gadget,
927 extern int usb_gadget_ep_match_desc(struct usb_gadget *gadget,
934 extern void usb_udc_vbus_handler(struct usb_gadget *gadget, bool status);