Lines Matching refs:result
117 u32 result = 0; in ethtool_adv_to_mii_adv_t() local
120 result |= ADVERTISE_10HALF; in ethtool_adv_to_mii_adv_t()
122 result |= ADVERTISE_10FULL; in ethtool_adv_to_mii_adv_t()
124 result |= ADVERTISE_100HALF; in ethtool_adv_to_mii_adv_t()
126 result |= ADVERTISE_100FULL; in ethtool_adv_to_mii_adv_t()
128 result |= ADVERTISE_PAUSE_CAP; in ethtool_adv_to_mii_adv_t()
130 result |= ADVERTISE_PAUSE_ASYM; in ethtool_adv_to_mii_adv_t()
132 return result; in ethtool_adv_to_mii_adv_t()
145 u32 result = 0; in linkmode_adv_to_mii_adv_t() local
148 result |= ADVERTISE_10HALF; in linkmode_adv_to_mii_adv_t()
150 result |= ADVERTISE_10FULL; in linkmode_adv_to_mii_adv_t()
152 result |= ADVERTISE_100HALF; in linkmode_adv_to_mii_adv_t()
154 result |= ADVERTISE_100FULL; in linkmode_adv_to_mii_adv_t()
156 result |= ADVERTISE_PAUSE_CAP; in linkmode_adv_to_mii_adv_t()
158 result |= ADVERTISE_PAUSE_ASYM; in linkmode_adv_to_mii_adv_t()
160 return result; in linkmode_adv_to_mii_adv_t()
172 u32 result = 0; in mii_adv_to_ethtool_adv_t() local
175 result |= ADVERTISED_10baseT_Half; in mii_adv_to_ethtool_adv_t()
177 result |= ADVERTISED_10baseT_Full; in mii_adv_to_ethtool_adv_t()
179 result |= ADVERTISED_100baseT_Half; in mii_adv_to_ethtool_adv_t()
181 result |= ADVERTISED_100baseT_Full; in mii_adv_to_ethtool_adv_t()
183 result |= ADVERTISED_Pause; in mii_adv_to_ethtool_adv_t()
185 result |= ADVERTISED_Asym_Pause; in mii_adv_to_ethtool_adv_t()
187 return result; in mii_adv_to_ethtool_adv_t()
200 u32 result = 0; in ethtool_adv_to_mii_ctrl1000_t() local
203 result |= ADVERTISE_1000HALF; in ethtool_adv_to_mii_ctrl1000_t()
205 result |= ADVERTISE_1000FULL; in ethtool_adv_to_mii_ctrl1000_t()
207 return result; in ethtool_adv_to_mii_ctrl1000_t()
220 u32 result = 0; in linkmode_adv_to_mii_ctrl1000_t() local
224 result |= ADVERTISE_1000HALF; in linkmode_adv_to_mii_ctrl1000_t()
227 result |= ADVERTISE_1000FULL; in linkmode_adv_to_mii_ctrl1000_t()
229 return result; in linkmode_adv_to_mii_ctrl1000_t()
242 u32 result = 0; in mii_ctrl1000_to_ethtool_adv_t() local
245 result |= ADVERTISED_1000baseT_Half; in mii_ctrl1000_to_ethtool_adv_t()
247 result |= ADVERTISED_1000baseT_Full; in mii_ctrl1000_to_ethtool_adv_t()
249 return result; in mii_ctrl1000_to_ethtool_adv_t()
262 u32 result = 0; in mii_lpa_to_ethtool_lpa_t() local
265 result |= ADVERTISED_Autoneg; in mii_lpa_to_ethtool_lpa_t()
267 return result | mii_adv_to_ethtool_adv_t(lpa); in mii_lpa_to_ethtool_lpa_t()
280 u32 result = 0; in mii_stat1000_to_ethtool_lpa_t() local
283 result |= ADVERTISED_1000baseT_Half; in mii_stat1000_to_ethtool_lpa_t()
285 result |= ADVERTISED_1000baseT_Full; in mii_stat1000_to_ethtool_lpa_t()
287 return result; in mii_stat1000_to_ethtool_lpa_t()
319 u32 result = 0; in ethtool_adv_to_mii_adv_x() local
322 result |= ADVERTISE_1000XHALF; in ethtool_adv_to_mii_adv_x()
324 result |= ADVERTISE_1000XFULL; in ethtool_adv_to_mii_adv_x()
326 result |= ADVERTISE_1000XPAUSE; in ethtool_adv_to_mii_adv_x()
328 result |= ADVERTISE_1000XPSE_ASYM; in ethtool_adv_to_mii_adv_x()
330 return result; in ethtool_adv_to_mii_adv_x()
343 u32 result = 0; in mii_adv_to_ethtool_adv_x() local
346 result |= ADVERTISED_1000baseT_Half; in mii_adv_to_ethtool_adv_x()
348 result |= ADVERTISED_1000baseT_Full; in mii_adv_to_ethtool_adv_x()
350 result |= ADVERTISED_Pause; in mii_adv_to_ethtool_adv_x()
352 result |= ADVERTISED_Asym_Pause; in mii_adv_to_ethtool_adv_x()
354 return result; in mii_adv_to_ethtool_adv_x()