Searched refs:ethadv (Results 1 - 3 of 3) sorted by relevance

/linux-4.1.27/include/linux/
H A Dmii.h103 * @ethadv: the ethtool advertisement settings
109 static inline u32 ethtool_adv_to_mii_adv_t(u32 ethadv) ethtool_adv_to_mii_adv_t() argument
113 if (ethadv & ADVERTISED_10baseT_Half) ethtool_adv_to_mii_adv_t()
115 if (ethadv & ADVERTISED_10baseT_Full) ethtool_adv_to_mii_adv_t()
117 if (ethadv & ADVERTISED_100baseT_Half) ethtool_adv_to_mii_adv_t()
119 if (ethadv & ADVERTISED_100baseT_Full) ethtool_adv_to_mii_adv_t()
121 if (ethadv & ADVERTISED_Pause) ethtool_adv_to_mii_adv_t()
123 if (ethadv & ADVERTISED_Asym_Pause) ethtool_adv_to_mii_adv_t()
158 * @ethadv: the ethtool advertisement settings
164 static inline u32 ethtool_adv_to_mii_ctrl1000_t(u32 ethadv) ethtool_adv_to_mii_ctrl1000_t() argument
168 if (ethadv & ADVERTISED_1000baseT_Half) ethtool_adv_to_mii_ctrl1000_t()
170 if (ethadv & ADVERTISED_1000baseT_Full) ethtool_adv_to_mii_ctrl1000_t()
236 * @ethadv: the ethtool advertisement settings
242 static inline u32 ethtool_adv_to_mii_adv_x(u32 ethadv) ethtool_adv_to_mii_adv_x() argument
246 if (ethadv & ADVERTISED_1000baseT_Half) ethtool_adv_to_mii_adv_x()
248 if (ethadv & ADVERTISED_1000baseT_Full) ethtool_adv_to_mii_adv_x()
250 if (ethadv & ADVERTISED_Pause) ethtool_adv_to_mii_adv_x()
252 if (ethadv & ADVERTISED_Asym_Pause) ethtool_adv_to_mii_adv_x()
/linux-4.1.27/drivers/net/ethernet/atheros/alx/
H A Dhw.c722 int alx_setup_speed_duplex(struct alx_hw *hw, u32 ethadv, u8 flowctrl) alx_setup_speed_duplex() argument
732 if (ethadv & ADVERTISED_Autoneg) { alx_setup_speed_duplex()
734 adv |= ethtool_adv_to_mii_adv_t(ethadv); alx_setup_speed_duplex()
747 giga = ethtool_adv_to_mii_ctrl1000_t(ethadv); alx_setup_speed_duplex()
757 if (ethadv == ADVERTISED_100baseT_Half || alx_setup_speed_duplex()
758 ethadv == ADVERTISED_100baseT_Full) alx_setup_speed_duplex()
760 if (ethadv == ADVERTISED_10baseT_Full || alx_setup_speed_duplex()
761 ethadv == ADVERTISED_100baseT_Full) alx_setup_speed_duplex()
769 val |= ethadv_to_hw_cfg(hw, ethadv); alx_setup_speed_duplex()
H A Dhw.h548 int alx_setup_speed_duplex(struct alx_hw *hw, u32 ethadv, u8 flowctrl);

Completed in 199 milliseconds