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