Lines Matching refs:phy_id
21 static bool i2c_mii_valid_phy_id(int phy_id)
23 return phy_id != 0x10 && phy_id != 0x11;
26 static unsigned int i2c_mii_phy_addr(int phy_id)
28 return phy_id + 0x40;
31 static int i2c_mii_read(struct mii_bus *bus, int phy_id, int reg)
38 if (!i2c_mii_valid_phy_id(phy_id))
48 bus_addr = i2c_mii_phy_addr(phy_id);
65 static int i2c_mii_write(struct mii_bus *bus, int phy_id, int reg, u16 val)
72 if (!i2c_mii_valid_phy_id(phy_id))
84 msg.addr = i2c_mii_phy_addr(phy_id);