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()
1722 ci_hdrc_gadget_connect(_gadget, is_active); in ci_udc_vbus_session()
1727 static int ci_udc_wakeup(struct usb_gadget *_gadget) in ci_udc_wakeup() argument
1729 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_wakeup()
1752 static int ci_udc_vbus_draw(struct usb_gadget *_gadget, unsigned ma) in ci_udc_vbus_draw() argument
1754 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_vbus_draw()
1761 static int ci_udc_selfpowered(struct usb_gadget *_gadget, int is_on) in ci_udc_selfpowered() argument
1763 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_selfpowered()
1768 _gadget->is_selfpowered = (is_on != 0); in ci_udc_selfpowered()
1777 static int ci_udc_pullup(struct usb_gadget *_gadget, int is_on) in ci_udc_pullup() argument
1779 struct ci_hdrc *ci = container_of(_gadget, struct ci_hdrc, gadget); in ci_udc_pullup()