Lines Matching refs:otg
629 static int twl4030_set_peripheral(struct usb_otg *otg, in twl4030_set_peripheral() argument
632 if (!otg) in twl4030_set_peripheral()
635 otg->gadget = gadget; in twl4030_set_peripheral()
637 otg->state = OTG_STATE_UNDEFINED; in twl4030_set_peripheral()
642 static int twl4030_set_host(struct usb_otg *otg, struct usb_bus *host) in twl4030_set_host() argument
644 if (!otg) in twl4030_set_host()
647 otg->host = host; in twl4030_set_host()
649 otg->state = OTG_STATE_UNDEFINED; in twl4030_set_host()
673 struct usb_otg *otg; in twl4030_usb_probe() local
691 otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL); in twl4030_usb_probe()
692 if (!otg) in twl4030_usb_probe()
703 twl->phy.otg = otg; in twl4030_usb_probe()
706 otg->usb_phy = &twl->phy; in twl4030_usb_probe()
707 otg->set_host = twl4030_set_host; in twl4030_usb_probe()
708 otg->set_peripheral = twl4030_set_peripheral; in twl4030_usb_probe()