Lines Matching refs:cluster_phy
33 struct armada375_cluster_phy *cluster_phy; in armada375_usb_phy_init() local
36 cluster_phy = phy_get_drvdata(phy); in armada375_usb_phy_init()
37 if (!cluster_phy) in armada375_usb_phy_init()
40 reg = readl(cluster_phy->reg); in armada375_usb_phy_init()
41 if (cluster_phy->use_usb3) in armada375_usb_phy_init()
45 writel(reg, cluster_phy->reg); in armada375_usb_phy_init()
66 struct armada375_cluster_phy *cluster_phy = dev_get_drvdata(dev); in armada375_usb_phy_xlate() local
68 if (!cluster_phy) in armada375_usb_phy_xlate()
77 if (WARN_ON((cluster_phy->phy_provided != PHY_NONE) && in armada375_usb_phy_xlate()
78 (cluster_phy->phy_provided != args->args[0]))) { in armada375_usb_phy_xlate()
88 cluster_phy->use_usb3 = false; in armada375_usb_phy_xlate()
90 cluster_phy->use_usb3 = true; in armada375_usb_phy_xlate()
97 cluster_phy->phy_provided = args->args[0]; in armada375_usb_phy_xlate()
99 return cluster_phy->phy; in armada375_usb_phy_xlate()
108 struct armada375_cluster_phy *cluster_phy; in armada375_usb_phy_probe() local
110 cluster_phy = devm_kzalloc(dev, sizeof(*cluster_phy), GFP_KERNEL); in armada375_usb_phy_probe()
111 if (!cluster_phy) in armada375_usb_phy_probe()
124 cluster_phy->phy = phy; in armada375_usb_phy_probe()
125 cluster_phy->reg = usb_cluster_base; in armada375_usb_phy_probe()
127 dev_set_drvdata(dev, cluster_phy); in armada375_usb_phy_probe()
128 phy_set_drvdata(phy, cluster_phy); in armada375_usb_phy_probe()