Lines Matching refs:adv

312 	u16 ctl, adv;  in genmii_setup_aneg()  local
321 adv = sungem_phy_read(phy, MII_ADVERTISE); in genmii_setup_aneg()
322 adv &= ~(ADVERTISE_ALL | ADVERTISE_100BASE4); in genmii_setup_aneg()
324 adv |= ADVERTISE_10HALF; in genmii_setup_aneg()
326 adv |= ADVERTISE_10FULL; in genmii_setup_aneg()
328 adv |= ADVERTISE_100HALF; in genmii_setup_aneg()
330 adv |= ADVERTISE_100FULL; in genmii_setup_aneg()
331 sungem_phy_write(phy, MII_ADVERTISE, adv); in genmii_setup_aneg()
468 u16 ctl, adv; in bcm54xx_setup_aneg() local
477 adv = sungem_phy_read(phy, MII_ADVERTISE); in bcm54xx_setup_aneg()
478 adv &= ~(ADVERTISE_ALL | ADVERTISE_100BASE4); in bcm54xx_setup_aneg()
480 adv |= ADVERTISE_10HALF; in bcm54xx_setup_aneg()
482 adv |= ADVERTISE_10FULL; in bcm54xx_setup_aneg()
484 adv |= ADVERTISE_100HALF; in bcm54xx_setup_aneg()
486 adv |= ADVERTISE_100FULL; in bcm54xx_setup_aneg()
488 adv |= ADVERTISE_PAUSE_CAP; in bcm54xx_setup_aneg()
490 adv |= ADVERTISE_PAUSE_ASYM; in bcm54xx_setup_aneg()
491 sungem_phy_write(phy, MII_ADVERTISE, adv); in bcm54xx_setup_aneg()
494 adv = sungem_phy_read(phy, MII_1000BASETCONTROL); in bcm54xx_setup_aneg()
495 adv &= ~(MII_1000BASETCONTROL_FULLDUPLEXCAP|MII_1000BASETCONTROL_HALFDUPLEXCAP); in bcm54xx_setup_aneg()
497 adv |= MII_1000BASETCONTROL_HALFDUPLEXCAP; in bcm54xx_setup_aneg()
499 adv |= MII_1000BASETCONTROL_FULLDUPLEXCAP; in bcm54xx_setup_aneg()
500 sungem_phy_write(phy, MII_1000BASETCONTROL, adv); in bcm54xx_setup_aneg()
744 u16 ctl, adv; in marvell_setup_aneg() local
753 adv = sungem_phy_read(phy, MII_ADVERTISE); in marvell_setup_aneg()
754 adv &= ~(ADVERTISE_ALL | ADVERTISE_100BASE4); in marvell_setup_aneg()
756 adv |= ADVERTISE_10HALF; in marvell_setup_aneg()
758 adv |= ADVERTISE_10FULL; in marvell_setup_aneg()
760 adv |= ADVERTISE_100HALF; in marvell_setup_aneg()
762 adv |= ADVERTISE_100FULL; in marvell_setup_aneg()
764 adv |= ADVERTISE_PAUSE_CAP; in marvell_setup_aneg()
766 adv |= ADVERTISE_PAUSE_ASYM; in marvell_setup_aneg()
767 sungem_phy_write(phy, MII_ADVERTISE, adv); in marvell_setup_aneg()
775 adv = sungem_phy_read(phy, MII_M1011_PHY_SPEC_CONTROL); in marvell_setup_aneg()
776 adv |= MII_M1011_PHY_SPEC_CONTROL_AUTO_MDIX; in marvell_setup_aneg()
777 adv &= ~(MII_1000BASETCONTROL_FULLDUPLEXCAP | in marvell_setup_aneg()
780 adv |= MII_1000BASETCONTROL_HALFDUPLEXCAP; in marvell_setup_aneg()
782 adv |= MII_1000BASETCONTROL_FULLDUPLEXCAP; in marvell_setup_aneg()
783 sungem_phy_write(phy, MII_1000BASETCONTROL, adv); in marvell_setup_aneg()