Lines Matching full:gadget
24 #include <linux/usb/gadget.h>
80 /* Enable the gadget driver */ in check_vbus_state()
81 if (tu->phy.otg->gadget) in check_vbus_state()
82 usb_gadget_vbus_connect(tu->phy.otg->gadget); in check_vbus_state()
100 if (tu->phy.otg->gadget) in check_vbus_state()
101 usb_gadget_vbus_disconnect(tu->phy.otg->gadget); in check_vbus_state()
157 if (tu->phy.otg->gadget) in tahvo_usb_stop_peripheral()
158 usb_gadget_vbus_disconnect(tu->phy.otg->gadget); in tahvo_usb_stop_peripheral()
166 /* Disable gadget controller if any */ in tahvo_usb_power_off()
167 if (tu->phy.otg->gadget) in tahvo_usb_power_off()
168 usb_gadget_vbus_disconnect(tu->phy.otg->gadget); in tahvo_usb_power_off()
221 struct usb_gadget *gadget) in tahvo_usb_set_peripheral() argument
228 if (!gadget) { in tahvo_usb_set_peripheral()
231 tu->phy.otg->gadget = NULL; in tahvo_usb_set_peripheral()
236 tu->phy.otg->gadget = gadget; in tahvo_usb_set_peripheral()
295 if (tu->phy.otg->gadget) { in otg_mode_store()
296 dev_info(device, "PERIPHERAL mode: gadget driver present\n"); in otg_mode_store()
299 dev_info(device, "PERIPHERAL mode: no gadget driver, powering off\n"); in otg_mode_store()