Lines Matching refs:gadget
87 if (tu->phy.otg->gadget) in check_vbus_state()
88 usb_gadget_vbus_connect(tu->phy.otg->gadget); in check_vbus_state()
106 if (tu->phy.otg->gadget) in check_vbus_state()
107 usb_gadget_vbus_disconnect(tu->phy.otg->gadget); in check_vbus_state()
163 if (tu->phy.otg->gadget) in tahvo_usb_stop_peripheral()
164 usb_gadget_vbus_disconnect(tu->phy.otg->gadget); in tahvo_usb_stop_peripheral()
173 if (tu->phy.otg->gadget) in tahvo_usb_power_off()
174 usb_gadget_vbus_disconnect(tu->phy.otg->gadget); in tahvo_usb_power_off()
229 struct usb_gadget *gadget) in tahvo_usb_set_peripheral() argument
234 dev_dbg(&tu->pt_dev->dev, "%s %p\n", __func__, gadget); in tahvo_usb_set_peripheral()
238 if (!gadget) { in tahvo_usb_set_peripheral()
241 tu->phy.otg->gadget = NULL; in tahvo_usb_set_peripheral()
246 tu->phy.otg->gadget = gadget; in tahvo_usb_set_peripheral()
305 if (tu->phy.otg->gadget) { in otg_mode_store()