static int genphy_config_advert(struct phy_device *phydev) 
int genphy_config_advert(struct phy_device *phydev) 
static int genphy_config_advert(struct phy_device *phydev){	u32 advertise;	int adv;	int err;	/* Only allow advertising what	 * this PHY supports */	phydev->advertising &= phydev->supported;	advertise = phydev->advertising;	/* Setup standard advertisement */	adv = phy_read(phydev, MII_ADVERTISE);	if (adv < 0)		return adv;	adv &= ~(ADVERTISE_ALL | ADVERTISE_100BASE4 | ADVERTISE_PAUSE_CAP | 		 ADVERTISE_PAUSE_ASYM);	if (advertise & ADVERTISED_10baseT_Half)		adv |= ADVERTISE_10HALF;	if (advertise & ADVERTISED_10baseT_Full)		adv |= ADVERTISE_10FULL;	if (advertise & ADVERTISED_100baseT_Half)		adv |= ADVERTISE_100HALF;	if (advertise & ADVERTISED_100baseT_Full)		adv |= ADVERTISE_100FULL;	if (advertise & ADVERTISED_Pause)		adv |= ADVERTISE_PAUSE_CAP;	if (advertise & ADVERTISED_Asym_Pause)		adv |= ADVERTISE_PAUSE_ASYM;	err = phy_write(phydev, MII_ADVERTISE, adv);	if (err < 0)		return err;	/* Configure gigabit if it's supported */	if (phydev->supported & (SUPPORTED_1000baseT_Half |				SUPPORTED_1000baseT_Full)) {		adv = phy_read(phydev, MII_CTRL1000);		if (adv < 0)			return adv;		adv &= ~(ADVERTISE_1000FULL | ADVERTISE_1000HALF);		if (advertise & SUPPORTED_1000baseT_Half)			adv |= ADVERTISE_1000HALF;		if (advertise & SUPPORTED_1000baseT_Full)			adv |= ADVERTISE_1000FULL;		err = phy_write(phydev, MII_CTRL1000, adv);		if (err < 0)			return err;	}	return adv;}
4520	/local/tlutelli/issta_data/temp/c/2005_temp/2005/4520/e13934563db047043ccead26412f552375cea90c/phy_device.c/clean/drivers/net/phy/phy_device.c