Lines Matching refs:phy
158 struct usb_phy phy; member
180 #define phy_to_twl(x) container_of((x), struct twl4030_usb, phy)
445 static int twl4030_phy_power_off(struct phy *phy) in twl4030_phy_power_off() argument
447 struct twl4030_usb *twl = phy_get_drvdata(phy); in twl4030_phy_power_off()
456 static int twl4030_phy_power_on(struct phy *phy) in twl4030_phy_power_on() argument
458 struct twl4030_usb *twl = phy_get_drvdata(phy); in twl4030_phy_power_on()
593 static int twl4030_phy_init(struct phy *phy) in twl4030_phy_init() argument
595 struct twl4030_usb *twl = phy_get_drvdata(phy); in twl4030_phy_init()
646 struct phy *phy; in twl4030_usb_probe() local
675 twl->phy.dev = twl->dev; in twl4030_usb_probe()
676 twl->phy.label = "twl4030"; in twl4030_usb_probe()
677 twl->phy.otg = otg; in twl4030_usb_probe()
678 twl->phy.type = USB_PHY_TYPE_USB2; in twl4030_usb_probe()
680 otg->usb_phy = &twl->phy; in twl4030_usb_probe()
684 phy = devm_phy_create(twl->dev, NULL, &ops); in twl4030_usb_probe()
685 if (IS_ERR(phy)) { in twl4030_usb_probe()
687 return PTR_ERR(phy); in twl4030_usb_probe()
690 phy_set_drvdata(phy, twl); in twl4030_usb_probe()
707 usb_add_phy_dev(&twl->phy); in twl4030_usb_probe()
713 ATOMIC_INIT_NOTIFIER_HEAD(&twl->phy.notifier); in twl4030_usb_probe()
738 err = phy_create_lookup(phy, "usb", "musb-hdrc.0"); in twl4030_usb_probe()
754 usb_remove_phy(&twl->phy); in twl4030_usb_remove()