Lines Matching defs:phydev
37 static int ip175c_config_init(struct phy_device *phydev)
45 err = phydev->bus->write(phydev->bus, 30, 0, 0x175c);
50 err = phydev->bus->read(phydev->bus, 30, 0);
56 err = phydev->bus->write(phydev->bus, 29, 31, 0x175c);
61 err = phydev->bus->write(phydev->bus, 29, 22, 0x420);
67 err = phydev->bus->write(phydev->bus, i,
74 err = phydev->bus->read(phydev->bus, i, MII_BMCR);
81 if (phydev->addr != 4) {
82 phydev->state = PHY_RUNNING;
83 phydev->speed = SPEED_100;
84 phydev->duplex = DUPLEX_FULL;
85 phydev->link = 1;
86 netif_carrier_on(phydev->attached_dev);
92 static int ip175c_read_status(struct phy_device *phydev)
94 if (phydev->addr == 4) /* WAN port */
95 genphy_read_status(phydev);
98 phydev->irq = PHY_IGNORE_INTERRUPT;
103 static int ip175c_config_aneg(struct phy_device *phydev)
105 if (phydev->addr == 4) /* WAN port */
106 genphy_config_aneg(phydev);