Lines Matching refs:gadget
107 if (!gpio_vbus->phy.otg->gadget) in gpio_vbus_work()
126 usb_gadget_vbus_connect(gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
136 status, gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
145 usb_gadget_vbus_disconnect(gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
151 status, gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
166 otg->gadget ? otg->gadget->name : "none"); in gpio_vbus_irq()
168 if (otg->gadget) in gpio_vbus_irq()
178 struct usb_gadget *gadget) in gpio_vbus_set_peripheral() argument
190 if (!gadget) { in gpio_vbus_set_peripheral()
192 otg->gadget->name); in gpio_vbus_set_peripheral()
200 usb_gadget_vbus_disconnect(otg->gadget); in gpio_vbus_set_peripheral()
203 otg->gadget = NULL; in gpio_vbus_set_peripheral()
207 otg->gadget = gadget; in gpio_vbus_set_peripheral()
208 dev_dbg(&pdev->dev, "registered gadget '%s'\n", gadget->name); in gpio_vbus_set_peripheral()