Searched refs:rmtadv (Results 1 – 7 of 7) sorted by relevance
/linux-3.4.99/include/linux/ |
D | mii.h | 465 static inline u8 mii_resolve_flowctrl_fdx(u16 lcladv, u16 rmtadv) in mii_resolve_flowctrl_fdx() argument 469 if (lcladv & rmtadv & ADVERTISE_PAUSE_CAP) { in mii_resolve_flowctrl_fdx() 471 } else if (lcladv & rmtadv & ADVERTISE_PAUSE_ASYM) { in mii_resolve_flowctrl_fdx() 474 else if (rmtadv & ADVERTISE_PAUSE_CAP) in mii_resolve_flowctrl_fdx()
|
/linux-3.4.99/drivers/net/ethernet/sfc/ |
D | mcdi_phy.c | 450 u32 rmtadv; in efx_mcdi_phy_check_fcntl() local 461 rmtadv = 0; in efx_mcdi_phy_check_fcntl() 463 rmtadv |= ADVERTISED_Pause; in efx_mcdi_phy_check_fcntl() 465 rmtadv |= ADVERTISED_Asym_Pause; in efx_mcdi_phy_check_fcntl() 467 if ((efx->wanted_fc & EFX_FC_TX) && rmtadv == ADVERTISED_Asym_Pause) in efx_mcdi_phy_check_fcntl()
|
/linux-3.4.99/drivers/net/usb/ |
D | smsc95xx.c | 420 u16 lcladv, u16 rmtadv) in smsc95xx_phy_update_flowcontrol() argument 431 u8 cap = mii_resolve_flowctrl_fdx(lcladv, rmtadv); in smsc95xx_phy_update_flowcontrol() 462 u16 lcladv, rmtadv; in smsc95xx_link_reset() local 473 rmtadv = smsc95xx_mdio_read(dev->net, mii->phy_id, MII_LPA); in smsc95xx_link_reset() 477 ethtool_cmd_speed(&ecmd), ecmd.duplex, lcladv, rmtadv); in smsc95xx_link_reset() 491 smsc95xx_phy_update_flowcontrol(dev, ecmd.duplex, lcladv, rmtadv); in smsc95xx_link_reset()
|
D | smsc75xx.c | 470 u16 lcladv, u16 rmtadv) in smsc75xx_update_flowcontrol() argument 476 u8 cap = mii_resolve_flowctrl_fdx(lcladv, rmtadv); in smsc75xx_update_flowcontrol() 507 u16 lcladv, rmtadv; in smsc75xx_link_reset() local 521 rmtadv = smsc75xx_mdio_read(dev->net, mii->phy_id, MII_LPA); in smsc75xx_link_reset() 525 ecmd.duplex, lcladv, rmtadv); in smsc75xx_link_reset() 527 return smsc75xx_update_flowcontrol(dev, ecmd.duplex, lcladv, rmtadv); in smsc75xx_link_reset()
|
/linux-3.4.99/drivers/net/ethernet/smsc/ |
D | smsc9420.c | 1108 u16 rmtadv = phy_read(phy_dev, MII_LPA); in smsc9420_phy_update_flowcontrol() local 1109 u8 cap = mii_resolve_flowctrl_fdx(lcladv, rmtadv); in smsc9420_phy_update_flowcontrol()
|
D | smsc911x.c | 888 u16 rmtadv = phy_read(phy_dev, MII_LPA); in smsc911x_phy_update_flowcontrol() local 889 u8 cap = mii_resolve_flowctrl_fdx(lcladv, rmtadv); in smsc911x_phy_update_flowcontrol()
|
/linux-3.4.99/drivers/net/ethernet/broadcom/ |
D | tg3.c | 1720 static u8 tg3_resolve_flowctrl_1000X(u16 lcladv, u16 rmtadv) in tg3_resolve_flowctrl_1000X() argument 1724 if (lcladv & rmtadv & ADVERTISE_1000XPAUSE) { in tg3_resolve_flowctrl_1000X() 1726 } else if (lcladv & rmtadv & ADVERTISE_1000XPSE_ASYM) { in tg3_resolve_flowctrl_1000X() 1729 if (rmtadv & ADVERTISE_1000XPAUSE) in tg3_resolve_flowctrl_1000X() 1736 static void tg3_setup_flow_control(struct tg3 *tp, u32 lcladv, u32 rmtadv) in tg3_setup_flow_control() argument 1750 flowctrl = tg3_resolve_flowctrl_1000X(lcladv, rmtadv); in tg3_setup_flow_control() 1752 flowctrl = mii_resolve_flowctrl_fdx(lcladv, rmtadv); in tg3_setup_flow_control() 4082 static bool tg3_phy_copper_fetch_rmtadv(struct tg3 *tp, u32 *rmtadv) in tg3_phy_copper_fetch_rmtadv() argument 4095 if (tg3_readphy(tp, MII_LPA, rmtadv)) in tg3_phy_copper_fetch_rmtadv() 4098 lpeth |= mii_lpa_to_ethtool_lpa_t(*rmtadv); in tg3_phy_copper_fetch_rmtadv()
|