Lines Matching refs:phy
158 struct usb_phy phy; member
180 #define phy_to_twl(x) container_of((x), struct twl4030_usb, phy)
449 static int twl4030_phy_power_off(struct phy *phy) in twl4030_phy_power_off() argument
451 struct twl4030_usb *twl = phy_get_drvdata(phy); in twl4030_phy_power_off()
460 static int twl4030_phy_power_on(struct phy *phy) in twl4030_phy_power_on() argument
462 struct twl4030_usb *twl = phy_get_drvdata(phy); in twl4030_phy_power_on()
597 static int twl4030_phy_init(struct phy *phy) in twl4030_phy_init() argument
599 struct twl4030_usb *twl = phy_get_drvdata(phy); in twl4030_phy_init()
650 struct phy *phy; in twl4030_usb_probe() local
679 twl->phy.dev = twl->dev; in twl4030_usb_probe()
680 twl->phy.label = "twl4030"; in twl4030_usb_probe()
681 twl->phy.otg = otg; in twl4030_usb_probe()
682 twl->phy.type = USB_PHY_TYPE_USB2; in twl4030_usb_probe()
684 otg->usb_phy = &twl->phy; in twl4030_usb_probe()
688 phy = devm_phy_create(twl->dev, NULL, &ops); in twl4030_usb_probe()
689 if (IS_ERR(phy)) { in twl4030_usb_probe()
691 return PTR_ERR(phy); in twl4030_usb_probe()
694 phy_set_drvdata(phy, twl); in twl4030_usb_probe()
711 usb_add_phy_dev(&twl->phy); in twl4030_usb_probe()
717 ATOMIC_INIT_NOTIFIER_HEAD(&twl->phy.notifier); in twl4030_usb_probe()
742 err = phy_create_lookup(phy, "usb", "musb-hdrc.0"); in twl4030_usb_probe()
758 usb_remove_phy(&twl->phy); in twl4030_usb_remove()