Lines Matching refs:_gadget
1660 static void ci_hdrc_gadget_connect(struct usb_gadget *_gadget, int is_active) in ci_hdrc_gadget_connect() argument
1662 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_hdrc_gadget_connect()
1670 usb_gadget_set_state(_gadget, USB_STATE_POWERED); in ci_hdrc_gadget_connect()
1672 usb_udc_vbus_handler(_gadget, true); in ci_hdrc_gadget_connect()
1677 usb_udc_vbus_handler(_gadget, false); in ci_hdrc_gadget_connect()
1686 usb_gadget_set_state(_gadget, USB_STATE_NOTATTACHED); in ci_hdrc_gadget_connect()
1690 static int ci_udc_vbus_session(struct usb_gadget *_gadget, int is_active) in ci_udc_vbus_session() argument
1692 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_vbus_session()
1709 ci_hdrc_gadget_connect(_gadget, is_active); in ci_udc_vbus_session()
1714 static int ci_udc_wakeup(struct usb_gadget *_gadget) in ci_udc_wakeup() argument
1716 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_wakeup()
1739 static int ci_udc_vbus_draw(struct usb_gadget *_gadget, unsigned ma) in ci_udc_vbus_draw() argument
1741 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_vbus_draw()
1748 static int ci_udc_selfpowered(struct usb_gadget *_gadget, int is_on) in ci_udc_selfpowered() argument
1750 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_selfpowered()
1755 _gadget->is_selfpowered = (is_on != 0); in ci_udc_selfpowered()
1764 static int ci_udc_pullup(struct usb_gadget *_gadget, int is_on) in ci_udc_pullup() argument
1766 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_pullup()