Lines Matching refs:_gadget

1658 static int ci_udc_get_frame(struct usb_gadget *_gadget)  in ci_udc_get_frame()  argument
1660 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_get_frame()
1673 static void ci_hdrc_gadget_connect(struct usb_gadget *_gadget, int is_active) in ci_hdrc_gadget_connect() argument
1675 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_hdrc_gadget_connect()
1683 usb_gadget_set_state(_gadget, USB_STATE_POWERED); in ci_hdrc_gadget_connect()
1685 usb_udc_vbus_handler(_gadget, true); in ci_hdrc_gadget_connect()
1690 usb_udc_vbus_handler(_gadget, false); in ci_hdrc_gadget_connect()
1699 usb_gadget_set_state(_gadget, USB_STATE_NOTATTACHED); in ci_hdrc_gadget_connect()
1703 static int ci_udc_vbus_session(struct usb_gadget *_gadget, int is_active) in ci_udc_vbus_session() argument
1705 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_vbus_session()
1729 ci_hdrc_gadget_connect(_gadget, is_active); in ci_udc_vbus_session()
1734 static int ci_udc_wakeup(struct usb_gadget *_gadget) in ci_udc_wakeup() argument
1736 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_wakeup()
1759 static int ci_udc_vbus_draw(struct usb_gadget *_gadget, unsigned ma) in ci_udc_vbus_draw() argument
1761 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_vbus_draw()
1768 static int ci_udc_selfpowered(struct usb_gadget *_gadget, int is_on) in ci_udc_selfpowered() argument
1770 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_selfpowered()
1775 _gadget->is_selfpowered = (is_on != 0); in ci_udc_selfpowered()
1784 static int ci_udc_pullup(struct usb_gadget *_gadget, int is_on) in ci_udc_pullup() argument
1786 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_pullup()