Lines Matching defs:phydev
57 u16 (*read) (struct phy_device* phydev, int reg);
58 void (*write) (struct phy_device* phydev, int reg, u16 val);
71 static u16 psb6970_mii_read(struct phy_device *phydev, int reg)
73 return phydev->bus->read(phydev->bus, PHYADDR(reg));
76 static void psb6970_mii_write(struct phy_device *phydev, int reg, u16 val)
78 phydev->bus->write(phydev->bus, PHYADDR(reg), val);
357 static int psb6970_read_status(struct phy_device *phydev)
359 phydev->speed = SPEED_100;
360 phydev->duplex = DUPLEX_FULL;
361 phydev->link = 1;
363 phydev->state = PHY_RUNNING;
364 netif_carrier_on(phydev->attached_dev);
365 phydev->adjust_link(phydev->attached_dev);
370 static int psb6970_config_aneg(struct phy_device *phydev)