Lines Matching refs:phy_id
23 static bool i2c_mii_valid_phy_id(int phy_id)
25 return phy_id != 0x10 && phy_id != 0x11;
28 static unsigned int i2c_mii_phy_addr(int phy_id)
30 return phy_id + 0x40;
33 static int i2c_mii_read_default_c45(struct mii_bus *bus, int phy_id, int devad,
41 if (!i2c_mii_valid_phy_id(phy_id))
51 bus_addr = i2c_mii_phy_addr(phy_id);
68 static int i2c_mii_write_default_c45(struct mii_bus *bus, int phy_id,
76 if (!i2c_mii_valid_phy_id(phy_id))
88 msg.addr = i2c_mii_phy_addr(phy_id);
98 static int i2c_mii_read_default_c22(struct mii_bus *bus, int phy_id, int reg)
100 return i2c_mii_read_default_c45(bus, phy_id, -1, reg);
103 static int i2c_mii_write_default_c22(struct mii_bus *bus, int phy_id, int reg,
106 return i2c_mii_write_default_c45(bus, phy_id, -1, reg, val);
294 static int i2c_mii_read_rollball(struct mii_bus *bus, int phy_id, int devad,
301 bus_addr = i2c_mii_phy_addr(phy_id);
326 static int i2c_mii_write_rollball(struct mii_bus *bus, int phy_id, int devad,
332 bus_addr = i2c_mii_phy_addr(phy_id);