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()
144 usb_gadget_vbus_disconnect(gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
150 status, gpio_vbus->phy.otg->gadget); in gpio_vbus_work()
164 otg->gadget ? otg->gadget->name : "none"); in gpio_vbus_irq()
166 if (otg->gadget) in gpio_vbus_irq()
176 struct usb_gadget *gadget) in gpio_vbus_set_peripheral() argument
188 if (!gadget) { in gpio_vbus_set_peripheral()
190 otg->gadget->name); in gpio_vbus_set_peripheral()
198 usb_gadget_vbus_disconnect(otg->gadget); in gpio_vbus_set_peripheral()
201 otg->gadget = NULL; in gpio_vbus_set_peripheral()
205 otg->gadget = gadget; in gpio_vbus_set_peripheral()
206 dev_dbg(&pdev->dev, "registered gadget '%s'\n", gadget->name); in gpio_vbus_set_peripheral()