Home
last modified time | relevance | path

Searched refs:rmtadv (Results 1 – 11 of 11) sorted by relevance

/Linux-v6.1/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()
541 else if (rmtadv & ADVERTISE_PAUSE_CAP) in mii_resolve_flowctrl_fdx()
/Linux-v6.1/drivers/net/ethernet/sfc/siena/
Dmcdi_port_common.c378 u32 rmtadv; in efx_mcdi_phy_check_fcntl() local
390 rmtadv = 0; in efx_mcdi_phy_check_fcntl()
392 rmtadv |= ADVERTISED_Pause; in efx_mcdi_phy_check_fcntl()
394 rmtadv |= ADVERTISED_Asym_Pause; in efx_mcdi_phy_check_fcntl()
396 if ((efx->wanted_fc & EFX_FC_TX) && rmtadv == ADVERTISED_Asym_Pause) in efx_mcdi_phy_check_fcntl()
/Linux-v6.1/drivers/net/ethernet/sfc/
Dmcdi_port_common.c377 u32 rmtadv; in efx_mcdi_phy_check_fcntl() local
389 rmtadv = 0; in efx_mcdi_phy_check_fcntl()
391 rmtadv |= ADVERTISED_Pause; in efx_mcdi_phy_check_fcntl()
393 rmtadv |= ADVERTISED_Asym_Pause; in efx_mcdi_phy_check_fcntl()
395 if ((efx->wanted_fc & EFX_FC_TX) && rmtadv == ADVERTISED_Asym_Pause) in efx_mcdi_phy_check_fcntl()
/Linux-v6.1/drivers/net/ethernet/apm/xgene/
Dxgene_enet_hw.c762 u16 lcladv, rmtadv = 0; in xgene_enet_flowctrl_cfg() local
778 rmtadv = LPA_PAUSE_CAP; in xgene_enet_flowctrl_cfg()
781 rmtadv |= LPA_PAUSE_ASYM; in xgene_enet_flowctrl_cfg()
783 flowctl = mii_resolve_flowctrl_fdx(lcladv, rmtadv); in xgene_enet_flowctrl_cfg()
/Linux-v6.1/drivers/net/usb/
Dsmsc75xx.c587 u16 lcladv, u16 rmtadv) in smsc75xx_update_flowcontrol() argument
593 u8 cap = mii_resolve_flowctrl_fdx(lcladv, rmtadv); in smsc75xx_update_flowcontrol()
630 u16 lcladv, rmtadv; in smsc75xx_link_reset() local
646 rmtadv = smsc75xx_mdio_read(dev->net, mii->phy_id, MII_LPA); in smsc75xx_link_reset()
649 ethtool_cmd_speed(&ecmd), ecmd.duplex, lcladv, rmtadv); in smsc75xx_link_reset()
651 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.c9078 u16 bmcr, lcladv, rmtadv; in rtl8152_get_pauseparam() local
9088 rmtadv = r8152_mdio_read(tp, MII_LPA); in rtl8152_get_pauseparam()
9103 cap = mii_resolve_flowctrl_fdx(lcladv, rmtadv); in rtl8152_get_pauseparam()
/Linux-v6.1/drivers/net/ethernet/smsc/
Dsmsc9420.c1049 u16 rmtadv = phy_read(phy_dev, MII_LPA); in smsc9420_phy_update_flowcontrol() local
1050 u8 cap = mii_resolve_flowctrl_fdx(lcladv, rmtadv); in smsc9420_phy_update_flowcontrol()
Dsmsc911x.c920 u16 rmtadv = phy_read(phy_dev, MII_LPA); in smsc911x_phy_update_flowcontrol() local
921 u8 cap = mii_resolve_flowctrl_fdx(lcladv, rmtadv); in smsc911x_phy_update_flowcontrol()
/Linux-v6.1/drivers/net/ethernet/cortina/
Dgemini.c333 u16 rmtadv = phy_read(phydev, MII_LPA); in gmac_speed_set() local
334 u8 cap = mii_resolve_flowctrl_fdx(lcladv, rmtadv); in gmac_speed_set()
/Linux-v6.1/drivers/net/ethernet/broadcom/
Dtg3.c1943 static u8 tg3_resolve_flowctrl_1000X(u16 lcladv, u16 rmtadv) in tg3_resolve_flowctrl_1000X() argument
1947 if (lcladv & rmtadv & ADVERTISE_1000XPAUSE) { in tg3_resolve_flowctrl_1000X()
1949 } else if (lcladv & rmtadv & ADVERTISE_1000XPSE_ASYM) { in tg3_resolve_flowctrl_1000X()
1952 if (rmtadv & ADVERTISE_1000XPAUSE) in tg3_resolve_flowctrl_1000X()
1959 static void tg3_setup_flow_control(struct tg3 *tp, u32 lcladv, u32 rmtadv) in tg3_setup_flow_control() argument
1973 flowctrl = tg3_resolve_flowctrl_1000X(lcladv, rmtadv); in tg3_setup_flow_control()
1975 flowctrl = mii_resolve_flowctrl_fdx(lcladv, rmtadv); in tg3_setup_flow_control()
4685 static bool tg3_phy_copper_fetch_rmtadv(struct tg3 *tp, u32 *rmtadv) in tg3_phy_copper_fetch_rmtadv() argument
4698 if (tg3_readphy(tp, MII_LPA, rmtadv)) in tg3_phy_copper_fetch_rmtadv()
4701 lpeth |= mii_lpa_to_ethtool_lpa_t(*rmtadv); in tg3_phy_copper_fetch_rmtadv()