Lines Matching refs:advertising
77 ecmd->advertising = ADVERTISED_TP | ADVERTISED_MII; in mii_ethtool_gset()
86 ecmd->advertising |= mii_get_an(mii, MII_ADVERTISE); in mii_ethtool_gset()
88 ecmd->advertising |= in mii_ethtool_gset()
92 ecmd->advertising |= ADVERTISED_Autoneg; in mii_ethtool_gset()
103 nego = ecmd->advertising & ecmd->lp_advertising; in mii_ethtool_gset()
147 u32 nego, supported, advertising, lp_advertising; in mii_ethtool_get_link_ksettings() local
163 advertising = ADVERTISED_TP | ADVERTISED_MII; in mii_ethtool_get_link_ksettings()
172 advertising |= mii_get_an(mii, MII_ADVERTISE); in mii_ethtool_get_link_ksettings()
174 advertising |= mii_ctrl1000_to_ethtool_adv_t(ctrl1000); in mii_ethtool_get_link_ksettings()
177 advertising |= ADVERTISED_Autoneg; in mii_ethtool_get_link_ksettings()
188 nego = advertising & lp_advertising; in mii_ethtool_get_link_ksettings()
220 ethtool_convert_legacy_u32_to_link_mode(cmd->link_modes.advertising, in mii_ethtool_get_link_ksettings()
221 advertising); in mii_ethtool_get_link_ksettings()
263 if ((ecmd->advertising & (ADVERTISED_10baseT_Half | in mii_ethtool_sset()
278 tmp |= ethtool_adv_to_mii_adv_t(ecmd->advertising); in mii_ethtool_sset()
282 ethtool_adv_to_mii_ctrl1000_t(ecmd->advertising); in mii_ethtool_sset()
285 mii->advertising = tmp; in mii_ethtool_sset()
354 u32 advertising; in mii_ethtool_set_link_ksettings() local
357 &advertising, cmd->link_modes.advertising); in mii_ethtool_set_link_ksettings()
359 if ((advertising & (ADVERTISED_10baseT_Half | in mii_ethtool_set_link_ksettings()
376 tmp |= ethtool_adv_to_mii_adv_t(advertising); in mii_ethtool_set_link_ksettings()
379 tmp2 |= ethtool_adv_to_mii_ctrl1000_t(advertising); in mii_ethtool_set_link_ksettings()
382 mii->advertising = tmp; in mii_ethtool_set_link_ksettings()
540 if ((!init_media) && (mii->advertising)) in mii_check_media()
541 advertise = mii->advertising; in mii_check_media()
544 mii->advertising = advertise; in mii_check_media()
627 mii_if->advertising = val; in generic_mii_ioctl()