Lines Matching refs:gadget

324 	void	(*udc_set_ssp_rate)(struct usb_gadget *gadget,
326 void (*udc_async_callbacks)(struct usb_gadget *gadget, bool enable);
330 int (*check_config)(struct usb_gadget *gadget);
453 static inline void set_gadget_data(struct usb_gadget *gadget, void *data) in set_gadget_data() argument
454 { dev_set_drvdata(&gadget->dev, data); } in set_gadget_data()
455 static inline void *get_gadget_data(struct usb_gadget *gadget) in get_gadget_data() argument
456 { return dev_get_drvdata(&gadget->dev); } in get_gadget_data()
461 static inline struct usb_gadget *usb_get_gadget(struct usb_gadget *gadget) in usb_get_gadget() argument
463 get_device(&gadget->dev); in usb_get_gadget()
464 return gadget; in usb_get_gadget()
466 static inline void usb_put_gadget(struct usb_gadget *gadget) in usb_put_gadget() argument
468 put_device(&gadget->dev); in usb_put_gadget()
471 struct usb_gadget *gadget, void (*release)(struct device *dev));
472 extern int usb_add_gadget(struct usb_gadget *gadget);
473 extern void usb_del_gadget(struct usb_gadget *gadget);
477 struct usb_gadget *gadget, void (*release)(struct device *dev));
478 extern int usb_add_gadget_udc(struct device *parent, struct usb_gadget *gadget);
479 extern void usb_del_gadget_udc(struct usb_gadget *gadget);
483 #define gadget_for_each_ep(tmp, gadget) \ argument
484 list_for_each_entry(tmp, &(gadget)->ep_list, ep_list)
601 int usb_gadget_frame_number(struct usb_gadget *gadget);
602 int usb_gadget_wakeup(struct usb_gadget *gadget);
603 int usb_gadget_set_selfpowered(struct usb_gadget *gadget);
604 int usb_gadget_clear_selfpowered(struct usb_gadget *gadget);
605 int usb_gadget_vbus_connect(struct usb_gadget *gadget);
606 int usb_gadget_vbus_draw(struct usb_gadget *gadget, unsigned mA);
607 int usb_gadget_vbus_disconnect(struct usb_gadget *gadget);
608 int usb_gadget_connect(struct usb_gadget *gadget);
609 int usb_gadget_disconnect(struct usb_gadget *gadget);
610 int usb_gadget_deactivate(struct usb_gadget *gadget);
611 int usb_gadget_activate(struct usb_gadget *gadget);
612 int usb_gadget_check_config(struct usb_gadget *gadget);
614 static inline int usb_gadget_frame_number(struct usb_gadget *gadget) in usb_gadget_frame_number() argument
616 static inline int usb_gadget_wakeup(struct usb_gadget *gadget) in usb_gadget_wakeup() argument
618 static inline int usb_gadget_set_selfpowered(struct usb_gadget *gadget) in usb_gadget_set_selfpowered() argument
620 static inline int usb_gadget_clear_selfpowered(struct usb_gadget *gadget) in usb_gadget_clear_selfpowered() argument
622 static inline int usb_gadget_vbus_connect(struct usb_gadget *gadget) in usb_gadget_vbus_connect() argument
624 static inline int usb_gadget_vbus_draw(struct usb_gadget *gadget, unsigned mA) in usb_gadget_vbus_draw() argument
626 static inline int usb_gadget_vbus_disconnect(struct usb_gadget *gadget) in usb_gadget_vbus_disconnect() argument
628 static inline int usb_gadget_connect(struct usb_gadget *gadget) in usb_gadget_connect() argument
630 static inline int usb_gadget_disconnect(struct usb_gadget *gadget) in usb_gadget_disconnect() argument
632 static inline int usb_gadget_deactivate(struct usb_gadget *gadget) in usb_gadget_deactivate() argument
634 static inline int usb_gadget_activate(struct usb_gadget *gadget) in usb_gadget_activate() argument
636 static inline int usb_gadget_check_config(struct usb_gadget *gadget) in usb_gadget_check_config() argument
718 int (*bind)(struct usb_gadget *gadget,
858 struct usb_gadget *gadget);
859 int usb_otg_descriptor_init(struct usb_gadget *gadget,
868 extern int usb_gadget_map_request(struct usb_gadget *gadget,
873 extern void usb_gadget_unmap_request(struct usb_gadget *gadget,
878 static inline int usb_gadget_map_request(struct usb_gadget *gadget, in usb_gadget_map_request() argument
883 static inline void usb_gadget_unmap_request(struct usb_gadget *gadget, in usb_gadget_unmap_request() argument
891 extern void usb_gadget_set_state(struct usb_gadget *gadget,
897 extern void usb_gadget_udc_reset(struct usb_gadget *gadget,
918 extern int usb_gadget_ep_match_desc(struct usb_gadget *gadget,
925 extern void usb_udc_vbus_handler(struct usb_gadget *gadget, bool status);