Home
last modified time | relevance | path

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

/Linux-v5.4/drivers/net/ethernet/broadcom/
Dbnx2.c1766 u32 new_adv = 0; in bnx2_setup_serdes_phy() local
1838 new_adv |= ADVERTISE_1000XFULL; in bnx2_setup_serdes_phy()
1840 new_adv |= bnx2_phy_get_pause_adv(bp); in bnx2_setup_serdes_phy()
1846 if ((adv != new_adv) || ((bmcr & BMCR_ANENABLE) == 0)) { in bnx2_setup_serdes_phy()
1855 bnx2_write_phy(bp, bp->mii_adv, new_adv); in bnx2_setup_serdes_phy()
2083 u32 bmcr, adv_reg, new_adv = 0; in bnx2_setup_copper_phy() local
2092 new_adv = ADVERTISE_CSMA | ethtool_adv_to_mii_adv_t(bp->advertising); in bnx2_setup_copper_phy()
2098 new_adv |= bnx2_phy_get_pause_adv(bp); in bnx2_setup_copper_phy()
2105 (adv_reg != new_adv) || in bnx2_setup_copper_phy()
2108 bnx2_write_phy(bp, bp->mii_adv, new_adv); in bnx2_setup_copper_phy()
[all …]
Dtg3.c4335 u32 val, new_adv; in tg3_phy_autoneg_cfg() local
4337 new_adv = ADVERTISE_CSMA; in tg3_phy_autoneg_cfg()
4338 new_adv |= ethtool_adv_to_mii_adv_t(advertise) & ADVERTISE_ALL; in tg3_phy_autoneg_cfg()
4339 new_adv |= mii_advertise_flowctrl(flowctrl); in tg3_phy_autoneg_cfg()
4341 err = tg3_writephy(tp, MII_ADVERTISE, new_adv); in tg3_phy_autoneg_cfg()
4346 new_adv = ethtool_adv_to_mii_ctrl1000_t(advertise); in tg3_phy_autoneg_cfg()
4350 new_adv |= CTL1000_AS_MASTER | CTL1000_ENABLE_MASTER; in tg3_phy_autoneg_cfg()
4352 err = tg3_writephy(tp, MII_CTRL1000, new_adv); in tg3_phy_autoneg_cfg()