Lines Matching full:gadget
19 #include <linux/usb/gadget.h>
98 if (!gpio_vbus->phy.otg->gadget) in gpio_vbus_work()
116 usb_gadget_vbus_connect(gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
126 status, gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
135 usb_gadget_vbus_disconnect(gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
141 status, gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
153 dev_dbg(&pdev->dev, "VBUS %s (gadget: %s)\n", in gpio_vbus_irq()
155 otg->gadget ? otg->gadget->name : "none"); in gpio_vbus_irq()
157 if (otg->gadget) in gpio_vbus_irq()
167 struct usb_gadget *gadget) in gpio_vbus_set_peripheral() argument
175 if (!gadget) { in gpio_vbus_set_peripheral()
176 dev_dbg(&pdev->dev, "unregistering gadget '%s'\n", in gpio_vbus_set_peripheral()
177 otg->gadget->name); in gpio_vbus_set_peripheral()
185 usb_gadget_vbus_disconnect(otg->gadget); in gpio_vbus_set_peripheral()
188 otg->gadget = NULL; in gpio_vbus_set_peripheral()
192 otg->gadget = gadget; in gpio_vbus_set_peripheral()
193 dev_dbg(&pdev->dev, "registered gadget '%s'\n", gadget->name); in gpio_vbus_set_peripheral()
315 /* only active when a gadget is registered */ in gpio_vbus_probe()