Lines Matching refs:phy
109 struct usb_otg *otg = nop->phy.otg; in nop_gpio_vbus_thread()
120 nop->phy.last_event = status; in nop_gpio_vbus_thread()
126 atomic_notifier_call_chain(&nop->phy.notifier, status, in nop_gpio_vbus_thread()
134 nop->phy.last_event = status; in nop_gpio_vbus_thread()
136 atomic_notifier_call_chain(&nop->phy.notifier, status, in nop_gpio_vbus_thread()
142 int usb_gen_phy_init(struct usb_phy *phy) in usb_gen_phy_init() argument
144 struct usb_phy_generic *nop = dev_get_drvdata(phy->dev); in usb_gen_phy_init()
148 dev_err(phy->dev, "Failed to enable power\n"); in usb_gen_phy_init()
160 void usb_gen_phy_shutdown(struct usb_phy *phy) in usb_gen_phy_shutdown() argument
162 struct usb_phy_generic *nop = dev_get_drvdata(phy->dev); in usb_gen_phy_shutdown()
171 dev_err(phy->dev, "Failed to disable power\n"); in usb_gen_phy_shutdown()
252 nop->phy.otg = devm_kzalloc(dev, sizeof(*nop->phy.otg), in usb_phy_gen_create_phy()
254 if (!nop->phy.otg) in usb_phy_gen_create_phy()
280 nop->phy.dev = nop->dev; in usb_phy_gen_create_phy()
281 nop->phy.label = "nop-xceiv"; in usb_phy_gen_create_phy()
282 nop->phy.set_suspend = nop_set_suspend; in usb_phy_gen_create_phy()
283 nop->phy.type = type; in usb_phy_gen_create_phy()
285 nop->phy.otg->state = OTG_STATE_UNDEFINED; in usb_phy_gen_create_phy()
286 nop->phy.otg->usb_phy = &nop->phy; in usb_phy_gen_create_phy()
287 nop->phy.otg->set_host = nop_set_host; in usb_phy_gen_create_phy()
288 nop->phy.otg->set_peripheral = nop_set_peripheral; in usb_phy_gen_create_phy()
320 nop->phy.init = usb_gen_phy_init; in usb_phy_generic_probe()
321 nop->phy.shutdown = usb_gen_phy_shutdown; in usb_phy_generic_probe()
323 err = usb_add_phy_dev(&nop->phy); in usb_phy_generic_probe()
339 usb_remove_phy(&nop->phy); in usb_phy_generic_remove()