Lines Matching full:gadget
23 #include <linux/usb/gadget.h>
79 /* Enable the gadget driver */ in check_vbus_state()
80 if (tu->phy.otg->gadget) in check_vbus_state()
81 usb_gadget_vbus_connect(tu->phy.otg->gadget); in check_vbus_state()
99 if (tu->phy.otg->gadget) in check_vbus_state()
100 usb_gadget_vbus_disconnect(tu->phy.otg->gadget); in check_vbus_state()
156 if (tu->phy.otg->gadget) in tahvo_usb_stop_peripheral()
157 usb_gadget_vbus_disconnect(tu->phy.otg->gadget); in tahvo_usb_stop_peripheral()
165 /* Disable gadget controller if any */ in tahvo_usb_power_off()
166 if (tu->phy.otg->gadget) in tahvo_usb_power_off()
167 usb_gadget_vbus_disconnect(tu->phy.otg->gadget); in tahvo_usb_power_off()
220 struct usb_gadget *gadget) in tahvo_usb_set_peripheral() argument
227 if (!gadget) { in tahvo_usb_set_peripheral()
230 tu->phy.otg->gadget = NULL; in tahvo_usb_set_peripheral()
235 tu->phy.otg->gadget = gadget; in tahvo_usb_set_peripheral()
294 if (tu->phy.otg->gadget) { in otg_mode_store()
295 dev_info(device, "PERIPHERAL mode: gadget driver present\n"); in otg_mode_store()
298 dev_info(device, "PERIPHERAL mode: no gadget driver, powering off\n"); in otg_mode_store()