Lines Matching defs:otg
17 #include <linux/usb/otg.h>
199 static int ulpi_set_host(struct usb_otg *otg, struct usb_bus *host)
201 struct usb_phy *phy = otg->usb_phy;
205 otg->host = NULL;
209 otg->host = host;
225 static int ulpi_set_vbus(struct usb_otg *otg, bool on)
227 struct usb_phy *phy = otg->usb_phy;
243 static void otg_ulpi_init(struct usb_phy *phy, struct usb_otg *otg,
250 phy->otg = otg;
253 otg->usb_phy = phy;
254 otg->set_host = ulpi_set_host;
255 otg->set_vbus = ulpi_set_vbus;
263 struct usb_otg *otg;
269 otg = kzalloc(sizeof(*otg), GFP_KERNEL);
270 if (!otg) {
275 otg_ulpi_init(phy, otg, ops, flags);
287 struct usb_otg *otg;
293 otg = devm_kzalloc(dev, sizeof(*otg), GFP_KERNEL);
294 if (!otg) {
299 otg_ulpi_init(phy, otg, ops, flags);