Lines Matching defs:phy
27 #include "phy-generic.h"
104 struct usb_otg *otg = nop->phy.otg;
115 nop->phy.last_event = status;
120 atomic_notifier_call_chain(&nop->phy.notifier, status,
127 nop->phy.last_event = status;
129 atomic_notifier_call_chain(&nop->phy.notifier, status,
135 int usb_gen_phy_init(struct usb_phy *phy)
137 struct usb_phy_generic *nop = dev_get_drvdata(phy->dev);
142 dev_err(phy->dev, "Failed to enable power\n");
157 void usb_gen_phy_shutdown(struct usb_phy *phy)
159 struct usb_phy_generic *nop = dev_get_drvdata(phy->dev);
168 dev_err(phy->dev, "Failed to disable power\n");
238 nop->phy.otg = devm_kzalloc(dev, sizeof(*nop->phy.otg),
240 if (!nop->phy.otg)
245 dev_dbg(dev, "Can't get phy clock: %ld\n",
279 nop->phy.dev = nop->dev;
280 nop->phy.label = "nop-xceiv";
281 nop->phy.set_suspend = nop_set_suspend;
282 nop->phy.type = type;
284 nop->phy.otg->state = OTG_STATE_UNDEFINED;
285 nop->phy.otg->usb_phy = &nop->phy;
286 nop->phy.otg->set_host = nop_set_host;
287 nop->phy.otg->set_peripheral = nop_set_peripheral;
318 nop->phy.otg->state = gpiod_get_value(nop->gpiod_vbus) ?
322 nop->phy.init = usb_gen_phy_init;
323 nop->phy.shutdown = usb_gen_phy_shutdown;
325 err = usb_add_phy_dev(&nop->phy);
344 usb_remove_phy(&nop->phy);