Lines Matching refs:otg
153 static int cpcap_usb_phy_set_host(struct usb_otg *otg, struct usb_bus *host) in cpcap_usb_phy_set_host() argument
155 otg->host = host; in cpcap_usb_phy_set_host()
157 otg->state = OTG_STATE_UNDEFINED; in cpcap_usb_phy_set_host()
162 static int cpcap_usb_phy_set_peripheral(struct usb_otg *otg, in cpcap_usb_phy_set_peripheral() argument
165 otg->gadget = gadget; in cpcap_usb_phy_set_peripheral()
167 otg->state = OTG_STATE_UNDEFINED; in cpcap_usb_phy_set_peripheral()
622 struct usb_otg *otg; in cpcap_usb_phy_probe() local
639 otg = devm_kzalloc(&pdev->dev, sizeof(*otg), GFP_KERNEL); in cpcap_usb_phy_probe()
640 if (!otg) in cpcap_usb_phy_probe()
646 ddata->phy.otg = otg; in cpcap_usb_phy_probe()
648 otg->set_host = cpcap_usb_phy_set_host; in cpcap_usb_phy_probe()
649 otg->set_peripheral = cpcap_usb_phy_set_peripheral; in cpcap_usb_phy_probe()
650 otg->usb_phy = &ddata->phy; in cpcap_usb_phy_probe()