Home
last modified time | relevance | path

Searched refs:new_adv (Results 1 – 2 of 2) sorted by relevance

/Linux-v5.10/drivers/net/ethernet/broadcom/
Dbnx2.c1760 u32 new_adv = 0; in bnx2_setup_serdes_phy() local
1832 new_adv |= ADVERTISE_1000XFULL; in bnx2_setup_serdes_phy()
1834 new_adv |= bnx2_phy_get_pause_adv(bp); in bnx2_setup_serdes_phy()
1840 if ((adv != new_adv) || ((bmcr & BMCR_ANENABLE) == 0)) { in bnx2_setup_serdes_phy()
1849 bnx2_write_phy(bp, bp->mii_adv, new_adv); in bnx2_setup_serdes_phy()
2077 u32 bmcr, adv_reg, new_adv = 0; in bnx2_setup_copper_phy() local
2086 new_adv = ADVERTISE_CSMA | ethtool_adv_to_mii_adv_t(bp->advertising); in bnx2_setup_copper_phy()
2092 new_adv |= bnx2_phy_get_pause_adv(bp); in bnx2_setup_copper_phy()
2099 (adv_reg != new_adv) || in bnx2_setup_copper_phy()
2102 bnx2_write_phy(bp, bp->mii_adv, new_adv); in bnx2_setup_copper_phy()
[all …]
Dtg3.c4329 u32 val, new_adv; in tg3_phy_autoneg_cfg() local
4331 new_adv = ADVERTISE_CSMA; in tg3_phy_autoneg_cfg()
4332 new_adv |= ethtool_adv_to_mii_adv_t(advertise) & ADVERTISE_ALL; in tg3_phy_autoneg_cfg()
4333 new_adv |= mii_advertise_flowctrl(flowctrl); in tg3_phy_autoneg_cfg()
4335 err = tg3_writephy(tp, MII_ADVERTISE, new_adv); in tg3_phy_autoneg_cfg()
4340 new_adv = ethtool_adv_to_mii_ctrl1000_t(advertise); in tg3_phy_autoneg_cfg()
4344 new_adv |= CTL1000_AS_MASTER | CTL1000_ENABLE_MASTER; in tg3_phy_autoneg_cfg()
4346 err = tg3_writephy(tp, MII_CTRL1000, new_adv); in tg3_phy_autoneg_cfg()