Lines Matching full:adv
270 u32 adv; in genphy_c45_an_config_aneg() local
284 adv = linkmode_adv_to_mii_adv_t(phydev->advertising); in genphy_c45_an_config_aneg()
289 adv); in genphy_c45_an_config_aneg()
295 adv = linkmode_adv_to_mii_10gbt_adv_t(phydev->advertising); in genphy_c45_an_config_aneg()
300 MDIO_AN_10GBT_CTRL_ADV2_5G, adv); in genphy_c45_an_config_aneg()
681 * @adv: the linkmode advertisement settings
683 int genphy_c45_write_eee_adv(struct phy_device *phydev, unsigned long *adv) in genphy_c45_write_eee_adv() argument
688 val = linkmode_to_mii_eee_cap1_t(adv); in genphy_c45_write_eee_adv()
711 val = linkmode_to_mii_eee_cap2_t(adv); in genphy_c45_write_eee_adv()
728 val = linkmode_adv_to_mii_10base_t1_t(adv); in genphy_c45_write_eee_adv()
748 * @adv: the linkmode advertisement status
750 int genphy_c45_read_eee_adv(struct phy_device *phydev, unsigned long *adv) in genphy_c45_read_eee_adv() argument
762 mii_eee_cap1_mod_linkmode_t(adv, val); in genphy_c45_read_eee_adv()
773 mii_eee_cap2_mod_linkmode_adv_t(adv, val); in genphy_c45_read_eee_adv()
785 mii_10base_t1_adv_mod_linkmode_t(adv, val); in genphy_c45_read_eee_adv()
946 __ETHTOOL_DECLARE_LINK_MODE_MASK(adv) = {}; in genphy_c45_an_config_eee_aneg()
948 return genphy_c45_write_eee_adv(phydev, adv); in genphy_c45_an_config_eee_aneg()
1470 * @adv: variable to store advertised linkmodes
1477 int genphy_c45_eee_is_active(struct phy_device *phydev, unsigned long *adv, in genphy_c45_eee_is_active() argument
1502 if (adv) in genphy_c45_eee_is_active()
1503 linkmode_copy(adv, tmp_adv); in genphy_c45_eee_is_active()
1524 __ETHTOOL_DECLARE_LINK_MODE_MASK(adv) = {}; in genphy_c45_ethtool_get_eee()
1529 ret = genphy_c45_eee_is_active(phydev, adv, lp, &is_enabled); in genphy_c45_ethtool_get_eee()
1536 linkmode_copy(data->advertised, adv); in genphy_c45_ethtool_get_eee()
1562 unsigned long *adv = data->advertised; in genphy_c45_ethtool_set_eee() local
1564 if (!linkmode_empty(adv)) { in genphy_c45_ethtool_set_eee()
1567 if (linkmode_andnot(tmp, adv, phydev->supported_eee)) { in genphy_c45_ethtool_set_eee()
1572 adv = phydev->supported_eee; in genphy_c45_ethtool_set_eee()
1575 linkmode_copy(phydev->advertising_eee, adv); in genphy_c45_ethtool_set_eee()