Lines Matching defs:advertise
310 static int genmii_setup_aneg(struct mii_phy *phy, u32 advertise)
318 phy->advertising = advertise;
320 /* Setup standard advertise */
323 if (advertise & ADVERTISED_10baseT_Half)
325 if (advertise & ADVERTISED_10baseT_Full)
327 if (advertise & ADVERTISED_100baseT_Half)
329 if (advertise & ADVERTISED_100baseT_Full)
466 static int bcm54xx_setup_aneg(struct mii_phy *phy, u32 advertise)
474 phy->advertising = advertise;
476 /* Setup standard advertise */
479 if (advertise & ADVERTISED_10baseT_Half)
481 if (advertise & ADVERTISED_10baseT_Full)
483 if (advertise & ADVERTISED_100baseT_Half)
485 if (advertise & ADVERTISED_100baseT_Full)
487 if (advertise & ADVERTISED_Pause)
489 if (advertise & ADVERTISED_Asym_Pause)
493 /* Setup 1000BT advertise */
496 if (advertise & SUPPORTED_1000baseT_Half)
498 if (advertise & SUPPORTED_1000baseT_Full)
742 static int marvell_setup_aneg(struct mii_phy *phy, u32 advertise)
750 phy->advertising = advertise;
752 /* Setup standard advertise */
755 if (advertise & ADVERTISED_10baseT_Half)
757 if (advertise & ADVERTISED_10baseT_Full)
759 if (advertise & ADVERTISED_100baseT_Half)
761 if (advertise & ADVERTISED_100baseT_Full)
763 if (advertise & ADVERTISED_Pause)
765 if (advertise & ADVERTISED_Asym_Pause)
769 /* Setup 1000BT advertise & enable crossover detect
770 * XXX How do we advertise 1000BT ? Darwin source is
779 if (advertise & SUPPORTED_1000baseT_Half)
781 if (advertise & SUPPORTED_1000baseT_Full)
878 /* On gigabit capable PHYs, we advertise Pause support but not asym pause