Home
last modified time | relevance | path

Searched refs:wanted_fc (Results 1 – 10 of 10) sorted by relevance

/drivers/net/ethernet/sfc/
Dethtool.c710 u8 wanted_fc, old_fc; in efx_ethtool_set_pauseparam() local
717 wanted_fc = ((pause->rx_pause ? EFX_FC_RX : 0) | in efx_ethtool_set_pauseparam()
721 if ((wanted_fc & EFX_FC_TX) && !(wanted_fc & EFX_FC_RX)) { in efx_ethtool_set_pauseparam()
728 if ((wanted_fc & EFX_FC_AUTO) && !efx->link_advertising) { in efx_ethtool_set_pauseparam()
740 reset = (wanted_fc & EFX_FC_TX) && !(efx->wanted_fc & EFX_FC_TX); in efx_ethtool_set_pauseparam()
755 old_fc = efx->wanted_fc; in efx_ethtool_set_pauseparam()
756 efx_link_set_wanted_fc(efx, wanted_fc); in efx_ethtool_set_pauseparam()
758 (efx->wanted_fc ^ old_fc) & EFX_FC_AUTO) { in efx_ethtool_set_pauseparam()
784 pause->rx_pause = !!(efx->wanted_fc & EFX_FC_RX); in efx_ethtool_get_pauseparam()
785 pause->tx_pause = !!(efx->wanted_fc & EFX_FC_TX); in efx_ethtool_get_pauseparam()
[all …]
Dmcdi_mac.c34 switch (efx->wanted_fc) { in efx_mcdi_set_mac()
45 if (efx->wanted_fc & EFX_FC_AUTO) in efx_mcdi_set_mac()
Dmdio_10g.c291 if (!(efx->wanted_fc & EFX_FC_AUTO)) in efx_mdio_get_pause()
292 return efx->wanted_fc; in efx_mdio_get_pause()
297 mii_advertise_flowctrl(efx->wanted_fc), in efx_mdio_get_pause()
Dmcdi_phy.c394 efx->wanted_fc = EFX_FC_RX | EFX_FC_TX; in efx_mcdi_phy_probe()
396 efx->wanted_fc |= EFX_FC_AUTO; in efx_mcdi_phy_probe()
397 efx_link_set_wanted_fc(efx, efx->wanted_fc); in efx_mcdi_phy_probe()
458 if (efx->wanted_fc & EFX_FC_AUTO) in efx_mcdi_phy_check_fcntl()
467 if ((efx->wanted_fc & EFX_FC_TX) && rmtadv == ADVERTISED_Asym_Pause) in efx_mcdi_phy_check_fcntl()
Defx.c947 efx->wanted_fc |= (EFX_FC_TX | EFX_FC_RX); in efx_link_set_advertising()
949 efx->wanted_fc &= ~(EFX_FC_TX | EFX_FC_RX); in efx_link_set_advertising()
951 efx->wanted_fc ^= EFX_FC_TX; in efx_link_set_advertising()
955 void efx_link_set_wanted_fc(struct efx_nic *efx, u8 wanted_fc) in efx_link_set_wanted_fc() argument
957 efx->wanted_fc = wanted_fc; in efx_link_set_wanted_fc()
959 if (wanted_fc & EFX_FC_RX) in efx_link_set_wanted_fc()
965 if (wanted_fc & EFX_FC_TX) in efx_link_set_wanted_fc()
Dfalcon.c642 efx->link_state.fc = efx->wanted_fc; in falcon_loopback_link_poll()
856 efx->wanted_fc = EFX_FC_RX | EFX_FC_TX; in falcon_probe_port()
858 efx->wanted_fc = EFX_FC_RX; in falcon_probe_port()
860 efx->wanted_fc |= EFX_FC_AUTO; in falcon_probe_port()
Dtenxpress.c209 efx_link_set_wanted_fc(efx, efx->wanted_fc); in tenxpress_phy_init()
Dqt202x_phy.c395 efx->link_state.fc = efx->wanted_fc; in qt202x_phy_poll()
Dtxc43128_phy.c500 efx->link_state.fc = efx->wanted_fc; in txc43128_phy_poll()
Dnet_driver.h870 u8 wanted_fc; member