Lines Matching refs:otg
605 static int twl4030_set_peripheral(struct usb_otg *otg, in twl4030_set_peripheral() argument
608 if (!otg) in twl4030_set_peripheral()
611 otg->gadget = gadget; in twl4030_set_peripheral()
613 otg->state = OTG_STATE_UNDEFINED; in twl4030_set_peripheral()
618 static int twl4030_set_host(struct usb_otg *otg, struct usb_bus *host) in twl4030_set_host() argument
620 if (!otg) in twl4030_set_host()
623 otg->host = host; in twl4030_set_host()
625 otg->state = OTG_STATE_UNDEFINED; in twl4030_set_host()
648 struct usb_otg *otg; in twl4030_usb_probe() local
666 otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL); in twl4030_usb_probe()
667 if (!otg) in twl4030_usb_probe()
677 twl->phy.otg = otg; in twl4030_usb_probe()
680 otg->usb_phy = &twl->phy; in twl4030_usb_probe()
681 otg->set_host = twl4030_set_host; in twl4030_usb_probe()
682 otg->set_peripheral = twl4030_set_peripheral; in twl4030_usb_probe()