Lines Matching refs:otg
199 static int ulpi_set_host(struct usb_otg *otg, struct usb_bus *host) in ulpi_set_host() argument
201 struct usb_phy *phy = otg->usb_phy; in ulpi_set_host()
205 otg->host = NULL; in ulpi_set_host()
209 otg->host = host; in ulpi_set_host()
225 static int ulpi_set_vbus(struct usb_otg *otg, bool on) in ulpi_set_vbus() argument
227 struct usb_phy *phy = otg->usb_phy; in ulpi_set_vbus()
243 static void otg_ulpi_init(struct usb_phy *phy, struct usb_otg *otg, in otg_ulpi_init() argument
250 phy->otg = otg; in otg_ulpi_init()
253 otg->usb_phy = phy; in otg_ulpi_init()
254 otg->set_host = ulpi_set_host; in otg_ulpi_init()
255 otg->set_vbus = ulpi_set_vbus; in otg_ulpi_init()
263 struct usb_otg *otg; in otg_ulpi_create() local
269 otg = kzalloc(sizeof(*otg), GFP_KERNEL); in otg_ulpi_create()
270 if (!otg) { in otg_ulpi_create()
275 otg_ulpi_init(phy, otg, ops, flags); in otg_ulpi_create()
287 struct usb_otg *otg; in devm_otg_ulpi_create() local
293 otg = devm_kzalloc(dev, sizeof(*otg), GFP_KERNEL); in devm_otg_ulpi_create()
294 if (!otg) { in devm_otg_ulpi_create()
299 otg_ulpi_init(phy, otg, ops, flags); in devm_otg_ulpi_create()