Home
last modified time | relevance | path

Searched refs:lcladv (Results 1 – 9 of 9) sorted by relevance

/linux-6.6.21/include/linux/
Dmii.h532 static inline u8 mii_resolve_flowctrl_fdx(u16 lcladv, u16 rmtadv) in mii_resolve_flowctrl_fdx() argument
536 if (lcladv & rmtadv & ADVERTISE_PAUSE_CAP) { in mii_resolve_flowctrl_fdx()
538 } else if (lcladv & rmtadv & ADVERTISE_PAUSE_ASYM) { in mii_resolve_flowctrl_fdx()
539 if (lcladv & ADVERTISE_PAUSE_CAP) in mii_resolve_flowctrl_fdx()
/linux-6.6.21/drivers/net/ethernet/apm/xgene/
Dxgene_enet_hw.c762 u16 lcladv, rmtadv = 0; in xgene_enet_flowctrl_cfg() local
775 lcladv = mii_advertise_flowctrl(flowctl); in xgene_enet_flowctrl_cfg()
783 flowctl = mii_resolve_flowctrl_fdx(lcladv, rmtadv); in xgene_enet_flowctrl_cfg()
/linux-6.6.21/drivers/net/usb/
Dsmsc75xx.c589 u16 lcladv, u16 rmtadv) in smsc75xx_update_flowcontrol() argument
595 u8 cap = mii_resolve_flowctrl_fdx(lcladv, rmtadv); in smsc75xx_update_flowcontrol()
632 u16 lcladv, rmtadv; in smsc75xx_link_reset() local
647 lcladv = smsc75xx_mdio_read(dev->net, mii->phy_id, MII_ADVERTISE); in smsc75xx_link_reset()
651 ethtool_cmd_speed(&ecmd), ecmd.duplex, lcladv, rmtadv); in smsc75xx_link_reset()
653 return smsc75xx_update_flowcontrol(dev, ecmd.duplex, lcladv, rmtadv); in smsc75xx_link_reset()
Dlan78xx.c1336 u16 lcladv, u16 rmtadv) in lan78xx_update_flowcontrol() argument
1342 cap = mii_resolve_flowctrl_fdx(lcladv, rmtadv); in lan78xx_update_flowcontrol()
Dr8152.c9187 u16 bmcr, lcladv, rmtadv; in rtl8152_get_pauseparam() local
9196 lcladv = r8152_mdio_read(tp, MII_ADVERTISE); in rtl8152_get_pauseparam()
9212 cap = mii_resolve_flowctrl_fdx(lcladv, rmtadv); in rtl8152_get_pauseparam()
/linux-6.6.21/drivers/net/ethernet/smsc/
Dsmsc9420.c1048 u16 lcladv = phy_read(phy_dev, MII_ADVERTISE); in smsc9420_phy_update_flowcontrol() local
1050 u8 cap = mii_resolve_flowctrl_fdx(lcladv, rmtadv); in smsc9420_phy_update_flowcontrol()
Dsmsc911x.c918 u16 lcladv = phy_read(phy_dev, MII_ADVERTISE); in smsc911x_phy_update_flowcontrol() local
920 u8 cap = mii_resolve_flowctrl_fdx(lcladv, rmtadv); in smsc911x_phy_update_flowcontrol()
/linux-6.6.21/drivers/net/ethernet/cortina/
Dgemini.c332 u16 lcladv = phy_read(phydev, MII_ADVERTISE); in gmac_speed_set() local
334 u8 cap = mii_resolve_flowctrl_fdx(lcladv, rmtadv); in gmac_speed_set()
/linux-6.6.21/drivers/net/ethernet/broadcom/
Dtg3.c1944 static u8 tg3_resolve_flowctrl_1000X(u16 lcladv, u16 rmtadv) in tg3_resolve_flowctrl_1000X() argument
1948 if (lcladv & rmtadv & ADVERTISE_1000XPAUSE) { in tg3_resolve_flowctrl_1000X()
1950 } else if (lcladv & rmtadv & ADVERTISE_1000XPSE_ASYM) { in tg3_resolve_flowctrl_1000X()
1951 if (lcladv & ADVERTISE_1000XPAUSE) in tg3_resolve_flowctrl_1000X()
1960 static void tg3_setup_flow_control(struct tg3 *tp, u32 lcladv, u32 rmtadv) in tg3_setup_flow_control() argument
1974 flowctrl = tg3_resolve_flowctrl_1000X(lcladv, rmtadv); in tg3_setup_flow_control()
1976 flowctrl = mii_resolve_flowctrl_fdx(lcladv, rmtadv); in tg3_setup_flow_control()
4642 static bool tg3_phy_copper_an_config_ok(struct tg3 *tp, u32 *lcladv) in tg3_phy_copper_an_config_ok() argument
4655 if (tg3_readphy(tp, MII_ADVERTISE, lcladv)) in tg3_phy_copper_an_config_ok()
4658 if ((*lcladv & advmsk) != tgtadv) in tg3_phy_copper_an_config_ok()