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()
105 if (tu->phy.otg->gadget) in check_vbus_state()
106 usb_gadget_vbus_disconnect(tu->phy.otg->gadget); in check_vbus_state()
161 if (tu->phy.otg->gadget) in tahvo_usb_stop_peripheral()
162 usb_gadget_vbus_disconnect(tu->phy.otg->gadget); in tahvo_usb_stop_peripheral()
171 if (tu->phy.otg->gadget) in tahvo_usb_power_off()
172 usb_gadget_vbus_disconnect(tu->phy.otg->gadget); in tahvo_usb_power_off()
226 struct usb_gadget *gadget) in tahvo_usb_set_peripheral() argument
230 dev_dbg(&tu->pt_dev->dev, "%s %p\n", __func__, gadget); in tahvo_usb_set_peripheral()
234 if (!gadget) { in tahvo_usb_set_peripheral()
237 tu->phy.otg->gadget = NULL; in tahvo_usb_set_peripheral()
242 tu->phy.otg->gadget = gadget; in tahvo_usb_set_peripheral()
301 if (tu->phy.otg->gadget) { in otg_mode_store()