Lines Matching refs:phy

115 	struct phy *phy;  member
321 static int mt65xx_phy_init(struct phy *phy) in mt65xx_phy_init() argument
323 struct mt65xx_phy_instance *instance = phy_get_drvdata(phy); in mt65xx_phy_init()
324 struct mt65xx_u3phy *u3phy = dev_get_drvdata(phy->dev.parent); in mt65xx_phy_init()
337 static int mt65xx_phy_power_on(struct phy *phy) in mt65xx_phy_power_on() argument
339 struct mt65xx_phy_instance *instance = phy_get_drvdata(phy); in mt65xx_phy_power_on()
340 struct mt65xx_u3phy *u3phy = dev_get_drvdata(phy->dev.parent); in mt65xx_phy_power_on()
346 static int mt65xx_phy_power_off(struct phy *phy) in mt65xx_phy_power_off() argument
348 struct mt65xx_phy_instance *instance = phy_get_drvdata(phy); in mt65xx_phy_power_off()
349 struct mt65xx_u3phy *u3phy = dev_get_drvdata(phy->dev.parent); in mt65xx_phy_power_off()
355 static int mt65xx_phy_exit(struct phy *phy) in mt65xx_phy_exit() argument
357 struct mt65xx_phy_instance *instance = phy_get_drvdata(phy); in mt65xx_phy_exit()
358 struct mt65xx_u3phy *u3phy = dev_get_drvdata(phy->dev.parent); in mt65xx_phy_exit()
365 static struct phy *mt65xx_phy_xlate(struct device *dev, in mt65xx_phy_xlate()
380 if (phy_np == u3phy->phys[index]->phy->dev.of_node) { in mt65xx_phy_xlate()
398 return instance->phy; in mt65xx_phy_xlate()
449 struct phy *phy; in mt65xx_u3phy_probe() local
459 phy = devm_phy_create(dev, child_np, &mt65xx_u3phy_ops); in mt65xx_u3phy_probe()
460 if (IS_ERR(phy)) { in mt65xx_u3phy_probe()
462 retval = PTR_ERR(phy); in mt65xx_u3phy_probe()
473 instance->port_base = devm_ioremap_resource(&phy->dev, &res); in mt65xx_u3phy_probe()
480 instance->phy = phy; in mt65xx_u3phy_probe()
482 phy_set_drvdata(phy, instance); in mt65xx_u3phy_probe()