Lines Matching defs:adv
273 * @adv: value of the MII_ADVERTISE register
278 static inline u32 mii_adv_to_ethtool_adv_t(u32 adv)
282 if (adv & ADVERTISE_10HALF)
284 if (adv & ADVERTISE_10FULL)
286 if (adv & ADVERTISE_100HALF)
288 if (adv & ADVERTISE_100FULL)
290 if (adv & ADVERTISE_PAUSE_CAP)
292 if (adv & ADVERTISE_PAUSE_ASYM)
320 * @adv: value of the MII_CTRL1000 register
326 static inline u32 mii_ctrl1000_to_ethtool_adv_t(u32 adv)
330 if (adv & ADVERTISE_1000HALF)
332 if (adv & ADVERTISE_1000FULL)
340 * @adv: value of the MII_LPA register
358 * @adv: value of the MII_STAT1000 register
402 * @adv: value of the MII_CTRL1000 register
408 static inline u32 mii_adv_to_ethtool_adv_x(u32 adv)
412 if (adv & ADVERTISE_1000XHALF)
414 if (adv & ADVERTISE_1000XFULL)
416 if (adv & ADVERTISE_1000XPAUSE)
418 if (adv & ADVERTISE_1000XPSE_ASYM)
426 * @adv: value of the MII_LPA register
448 u16 adv = 0;
451 adv = ADVERTISE_PAUSE_CAP | ADVERTISE_PAUSE_ASYM;
453 adv ^= ADVERTISE_PAUSE_ASYM;
455 return adv;