Lines Matching refs:phy_reg
223 int phy_reg; in get_phy_c45_ids() local
234 phy_reg = mdiobus_read(bus, addr, reg_addr); in get_phy_c45_ids()
235 if (phy_reg < 0) in get_phy_c45_ids()
237 c45_ids->devices_in_package = (phy_reg & 0xffff) << 16; in get_phy_c45_ids()
240 phy_reg = mdiobus_read(bus, addr, reg_addr); in get_phy_c45_ids()
241 if (phy_reg < 0) in get_phy_c45_ids()
243 c45_ids->devices_in_package |= (phy_reg & 0xffff); in get_phy_c45_ids()
260 phy_reg = mdiobus_read(bus, addr, reg_addr); in get_phy_c45_ids()
261 if (phy_reg < 0) in get_phy_c45_ids()
263 c45_ids->device_ids[i] = (phy_reg & 0xffff) << 16; in get_phy_c45_ids()
266 phy_reg = mdiobus_read(bus, addr, reg_addr); in get_phy_c45_ids()
267 if (phy_reg < 0) in get_phy_c45_ids()
269 c45_ids->device_ids[i] |= (phy_reg & 0xffff); in get_phy_c45_ids()
294 int phy_reg; in get_phy_id() local
300 phy_reg = mdiobus_read(bus, addr, MII_PHYSID1); in get_phy_id()
301 if (phy_reg < 0) in get_phy_id()
304 *phy_id = (phy_reg & 0xffff) << 16; in get_phy_id()
307 phy_reg = mdiobus_read(bus, addr, MII_PHYSID2); in get_phy_id()
308 if (phy_reg < 0) in get_phy_id()
311 *phy_id |= (phy_reg & 0xffff); in get_phy_id()