Lines Matching refs:phy_reg

688 	int phy_reg;  in get_phy_c45_devs_in_pkg()  local
690 phy_reg = mdiobus_c45_read(bus, addr, dev_addr, MDIO_DEVS2); in get_phy_c45_devs_in_pkg()
691 if (phy_reg < 0) in get_phy_c45_devs_in_pkg()
693 *devices_in_package = phy_reg << 16; in get_phy_c45_devs_in_pkg()
695 phy_reg = mdiobus_c45_read(bus, addr, dev_addr, MDIO_DEVS1); in get_phy_c45_devs_in_pkg()
696 if (phy_reg < 0) in get_phy_c45_devs_in_pkg()
698 *devices_in_package |= phy_reg; in get_phy_c45_devs_in_pkg()
721 int i, ret, phy_reg; in get_phy_c45_ids() local
742 phy_reg = get_phy_c45_devs_in_pkg(bus, addr, i, &devs_in_pkg); in get_phy_c45_ids()
743 if (phy_reg < 0) in get_phy_c45_ids()
752 phy_reg = get_phy_c45_devs_in_pkg(bus, addr, 0, &devs_in_pkg); in get_phy_c45_ids()
753 if (phy_reg < 0) in get_phy_c45_ids()
779 phy_reg = mdiobus_c45_read(bus, addr, i, MII_PHYSID1); in get_phy_c45_ids()
780 if (phy_reg < 0) in get_phy_c45_ids()
782 c45_ids->device_ids[i] = phy_reg << 16; in get_phy_c45_ids()
784 phy_reg = mdiobus_c45_read(bus, addr, i, MII_PHYSID2); in get_phy_c45_ids()
785 if (phy_reg < 0) in get_phy_c45_ids()
787 c45_ids->device_ids[i] |= phy_reg; in get_phy_c45_ids()
810 int phy_reg; in get_phy_c22_id() local
813 phy_reg = mdiobus_read(bus, addr, MII_PHYSID1); in get_phy_c22_id()
814 if (phy_reg < 0) { in get_phy_c22_id()
816 return (phy_reg == -EIO || phy_reg == -ENODEV) ? -ENODEV : -EIO; in get_phy_c22_id()
819 *phy_id = phy_reg << 16; in get_phy_c22_id()
822 phy_reg = mdiobus_read(bus, addr, MII_PHYSID2); in get_phy_c22_id()
823 if (phy_reg < 0) { in get_phy_c22_id()
825 return (phy_reg == -EIO || phy_reg == -ENODEV) ? -ENODEV : -EIO; in get_phy_c22_id()
828 *phy_id |= phy_reg; in get_phy_c22_id()