Lines Matching refs:otg
644 static int twl4030_set_peripheral(struct usb_otg *otg, in twl4030_set_peripheral() argument
647 if (!otg) in twl4030_set_peripheral()
650 otg->gadget = gadget; in twl4030_set_peripheral()
652 otg->state = OTG_STATE_UNDEFINED; in twl4030_set_peripheral()
657 static int twl4030_set_host(struct usb_otg *otg, struct usb_bus *host) in twl4030_set_host() argument
659 if (!otg) in twl4030_set_host()
662 otg->host = host; in twl4030_set_host()
664 otg->state = OTG_STATE_UNDEFINED; in twl4030_set_host()
688 struct usb_otg *otg; in twl4030_usb_probe() local
706 otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL); in twl4030_usb_probe()
707 if (!otg) in twl4030_usb_probe()
718 twl->phy.otg = otg; in twl4030_usb_probe()
721 otg->usb_phy = &twl->phy; in twl4030_usb_probe()
722 otg->set_host = twl4030_set_host; in twl4030_usb_probe()
723 otg->set_peripheral = twl4030_set_peripheral; in twl4030_usb_probe()