Lines Matching defs:advertise
314 static int genmii_setup_aneg(struct mii_phy *phy, u32 advertise)
322 phy->advertising = advertise;
324 /* Setup standard advertise */
327 if (advertise & ADVERTISED_10baseT_Half)
329 if (advertise & ADVERTISED_10baseT_Full)
331 if (advertise & ADVERTISED_100baseT_Half)
333 if (advertise & ADVERTISED_100baseT_Full)
470 static int bcm54xx_setup_aneg(struct mii_phy *phy, u32 advertise)
478 phy->advertising = advertise;
480 /* Setup standard advertise */
483 if (advertise & ADVERTISED_10baseT_Half)
485 if (advertise & ADVERTISED_10baseT_Full)
487 if (advertise & ADVERTISED_100baseT_Half)
489 if (advertise & ADVERTISED_100baseT_Full)
491 if (advertise & ADVERTISED_Pause)
493 if (advertise & ADVERTISED_Asym_Pause)
497 /* Setup 1000BT advertise */
500 if (advertise & SUPPORTED_1000baseT_Half)
502 if (advertise & SUPPORTED_1000baseT_Full)
746 static int marvell_setup_aneg(struct mii_phy *phy, u32 advertise)
754 phy->advertising = advertise;
756 /* Setup standard advertise */
759 if (advertise & ADVERTISED_10baseT_Half)
761 if (advertise & ADVERTISED_10baseT_Full)
763 if (advertise & ADVERTISED_100baseT_Half)
765 if (advertise & ADVERTISED_100baseT_Full)
767 if (advertise & ADVERTISED_Pause)
769 if (advertise & ADVERTISED_Asym_Pause)
773 /* Setup 1000BT advertise & enable crossover detect
774 * XXX How do we advertise 1000BT ? Darwin source is
783 if (advertise & SUPPORTED_1000baseT_Half)
785 if (advertise & SUPPORTED_1000baseT_Full)
882 /* On gigabit capable PHYs, we advertise Pause support but not asym pause