Lines Matching refs:gadget
88 if (tu->phy.otg->gadget) in check_vbus_state()
89 usb_gadget_vbus_connect(tu->phy.otg->gadget); in check_vbus_state()
107 if (tu->phy.otg->gadget) in check_vbus_state()
108 usb_gadget_vbus_disconnect(tu->phy.otg->gadget); in check_vbus_state()
164 if (tu->phy.otg->gadget) in tahvo_usb_stop_peripheral()
165 usb_gadget_vbus_disconnect(tu->phy.otg->gadget); in tahvo_usb_stop_peripheral()
174 if (tu->phy.otg->gadget) in tahvo_usb_power_off()
175 usb_gadget_vbus_disconnect(tu->phy.otg->gadget); in tahvo_usb_power_off()
230 struct usb_gadget *gadget) in tahvo_usb_set_peripheral() argument
235 dev_dbg(&tu->pt_dev->dev, "%s %p\n", __func__, gadget); in tahvo_usb_set_peripheral()
239 if (!gadget) { in tahvo_usb_set_peripheral()
242 tu->phy.otg->gadget = NULL; in tahvo_usb_set_peripheral()
247 tu->phy.otg->gadget = gadget; in tahvo_usb_set_peripheral()
306 if (tu->phy.otg->gadget) { in otg_mode_store()