/openbmc/linux/drivers/net/ethernet/sfc/ |
H A D | ethtool_common.c | 182 pause->rx_pause = !!(efx->wanted_fc & EFX_FC_RX); in efx_ethtool_get_pauseparam() 183 pause->tx_pause = !!(efx->wanted_fc & EFX_FC_TX); in efx_ethtool_get_pauseparam() 184 pause->autoneg = !!(efx->wanted_fc & EFX_FC_AUTO); in efx_ethtool_get_pauseparam() 191 u8 wanted_fc, old_fc; in efx_ethtool_set_pauseparam() local 197 wanted_fc = ((pause->rx_pause ? EFX_FC_RX : 0) | in efx_ethtool_set_pauseparam() 201 if ((wanted_fc & EFX_FC_TX) && !(wanted_fc & EFX_FC_RX)) { in efx_ethtool_set_pauseparam() 208 if ((wanted_fc & EFX_FC_AUTO) && !efx->link_advertising[0]) { in efx_ethtool_set_pauseparam() 217 (wanted_fc & EFX_FC_TX) && !(efx->wanted_fc & EFX_FC_TX)) in efx_ethtool_set_pauseparam() 221 old_fc = efx->wanted_fc; in efx_ethtool_set_pauseparam() 222 efx_link_set_wanted_fc(efx, wanted_fc); in efx_ethtool_set_pauseparam() [all …]
|
H A D | mcdi_port_common.c | 63 efx->wanted_fc |= (EFX_FC_TX | EFX_FC_RX); in efx_link_set_advertising() 65 efx->wanted_fc &= ~(EFX_FC_TX | EFX_FC_RX); in efx_link_set_advertising() 67 efx->wanted_fc ^= EFX_FC_TX; in efx_link_set_advertising() 386 if (efx->wanted_fc & EFX_FC_AUTO) in efx_mcdi_phy_check_fcntl() 395 if ((efx->wanted_fc & EFX_FC_TX) && rmtadv == ADVERTISED_Asym_Pause) in efx_mcdi_phy_check_fcntl() 518 efx->wanted_fc = EFX_FC_RX | EFX_FC_TX; in efx_mcdi_phy_probe() 520 efx->wanted_fc |= EFX_FC_AUTO; in efx_mcdi_phy_probe() 521 efx_link_set_wanted_fc(efx, efx->wanted_fc); in efx_mcdi_phy_probe() 1113 switch (efx->wanted_fc) { in efx_mcdi_set_mac() 1124 if (efx->wanted_fc & EFX_FC_AUTO) in efx_mcdi_set_mac()
|
H A D | efx_common.c | 461 efx->wanted_fc &= ~(EFX_FC_TX | EFX_FC_RX); in efx_link_clear_advertising() 464 void efx_link_set_wanted_fc(struct efx_nic *efx, u8 wanted_fc) in efx_link_set_wanted_fc() argument 466 efx->wanted_fc = wanted_fc; in efx_link_set_wanted_fc() 468 if (wanted_fc & EFX_FC_RX) in efx_link_set_wanted_fc() 474 if (wanted_fc & EFX_FC_TX) in efx_link_set_wanted_fc()
|
H A D | ef100_nic.c | 370 efx->wanted_fc = EFX_FC_RX | EFX_FC_TX; in ef100_phy_probe() 372 efx->wanted_fc |= EFX_FC_AUTO; in ef100_phy_probe() 373 efx_link_set_wanted_fc(efx, efx->wanted_fc); in ef100_phy_probe()
|
H A D | net_driver.h | 1102 u8 wanted_fc; member
|
/openbmc/linux/drivers/net/ethernet/sfc/falcon/ |
H A D | ethtool.c | 688 u8 wanted_fc, old_fc; in ef4_ethtool_set_pauseparam() local 694 wanted_fc = ((pause->rx_pause ? EF4_FC_RX : 0) | in ef4_ethtool_set_pauseparam() 698 if ((wanted_fc & EF4_FC_TX) && !(wanted_fc & EF4_FC_RX)) { in ef4_ethtool_set_pauseparam() 705 if ((wanted_fc & EF4_FC_AUTO) && !efx->link_advertising) { in ef4_ethtool_set_pauseparam() 714 (wanted_fc & EF4_FC_TX) && !(efx->wanted_fc & EF4_FC_TX)) in ef4_ethtool_set_pauseparam() 718 old_fc = efx->wanted_fc; in ef4_ethtool_set_pauseparam() 719 ef4_link_set_wanted_fc(efx, wanted_fc); in ef4_ethtool_set_pauseparam() 721 (efx->wanted_fc ^ old_fc) & EF4_FC_AUTO) { in ef4_ethtool_set_pauseparam() 747 pause->rx_pause = !!(efx->wanted_fc & EF4_FC_RX); in ef4_ethtool_get_pauseparam() 748 pause->tx_pause = !!(efx->wanted_fc & EF4_FC_TX); in ef4_ethtool_get_pauseparam() [all …]
|
H A D | mdio_10g.c | 300 if (!(efx->wanted_fc & EF4_FC_AUTO)) in ef4_mdio_get_pause() 301 return efx->wanted_fc; in ef4_mdio_get_pause() 306 mii_advertise_flowctrl(efx->wanted_fc), in ef4_mdio_get_pause()
|
H A D | efx.c | 930 efx->wanted_fc |= (EF4_FC_TX | EF4_FC_RX); in ef4_link_set_advertising() 932 efx->wanted_fc &= ~(EF4_FC_TX | EF4_FC_RX); in ef4_link_set_advertising() 934 efx->wanted_fc ^= EF4_FC_TX; in ef4_link_set_advertising() 938 void ef4_link_set_wanted_fc(struct ef4_nic *efx, u8 wanted_fc) in ef4_link_set_wanted_fc() argument 940 efx->wanted_fc = wanted_fc; in ef4_link_set_wanted_fc() 942 if (wanted_fc & EF4_FC_RX) in ef4_link_set_wanted_fc() 948 if (wanted_fc & EF4_FC_TX) in ef4_link_set_wanted_fc()
|
H A D | tenxpress.c | 206 ef4_link_set_wanted_fc(efx, efx->wanted_fc); in tenxpress_phy_init()
|
H A D | qt202x_phy.c | 392 efx->link_state.fc = efx->wanted_fc; in qt202x_phy_poll()
|
H A D | txc43128_phy.c | 497 efx->link_state.fc = efx->wanted_fc; in txc43128_phy_poll()
|
H A D | falcon.c | 1477 efx->link_state.fc = efx->wanted_fc; in falcon_loopback_link_poll() 1713 efx->wanted_fc = EF4_FC_RX | EF4_FC_TX; in falcon_probe_port() 1715 efx->wanted_fc = EF4_FC_RX; in falcon_probe_port() 1717 efx->wanted_fc |= EF4_FC_AUTO; in falcon_probe_port()
|
H A D | net_driver.h | 871 u8 wanted_fc; member
|
/openbmc/linux/drivers/net/ethernet/sfc/siena/ |
H A D | ethtool_common.c | 133 pause->rx_pause = !!(efx->wanted_fc & EFX_FC_RX); in efx_siena_ethtool_get_pauseparam() 134 pause->tx_pause = !!(efx->wanted_fc & EFX_FC_TX); in efx_siena_ethtool_get_pauseparam() 135 pause->autoneg = !!(efx->wanted_fc & EFX_FC_AUTO); in efx_siena_ethtool_get_pauseparam() 142 u8 wanted_fc, old_fc; in efx_siena_ethtool_set_pauseparam() local 148 wanted_fc = ((pause->rx_pause ? EFX_FC_RX : 0) | in efx_siena_ethtool_set_pauseparam() 152 if ((wanted_fc & EFX_FC_TX) && !(wanted_fc & EFX_FC_RX)) { in efx_siena_ethtool_set_pauseparam() 159 if ((wanted_fc & EFX_FC_AUTO) && !efx->link_advertising[0]) { in efx_siena_ethtool_set_pauseparam() 168 (wanted_fc & EFX_FC_TX) && !(efx->wanted_fc & EFX_FC_TX)) in efx_siena_ethtool_set_pauseparam() 172 old_fc = efx->wanted_fc; in efx_siena_ethtool_set_pauseparam() 173 efx_siena_link_set_wanted_fc(efx, wanted_fc); in efx_siena_ethtool_set_pauseparam() [all …]
|
H A D | mcdi_port_common.c | 64 efx->wanted_fc |= (EFX_FC_TX | EFX_FC_RX); in efx_siena_link_set_advertising() 66 efx->wanted_fc &= ~(EFX_FC_TX | EFX_FC_RX); in efx_siena_link_set_advertising() 68 efx->wanted_fc ^= EFX_FC_TX; in efx_siena_link_set_advertising() 387 if (efx->wanted_fc & EFX_FC_AUTO) in efx_mcdi_phy_check_fcntl() 396 if ((efx->wanted_fc & EFX_FC_TX) && rmtadv == ADVERTISED_Asym_Pause) in efx_mcdi_phy_check_fcntl() 519 efx->wanted_fc = EFX_FC_RX | EFX_FC_TX; in efx_siena_mcdi_phy_probe() 521 efx->wanted_fc |= EFX_FC_AUTO; in efx_siena_mcdi_phy_probe() 522 efx_siena_link_set_wanted_fc(efx, efx->wanted_fc); in efx_siena_mcdi_phy_probe() 1124 switch (efx->wanted_fc) { in efx_siena_mcdi_set_mac() 1135 if (efx->wanted_fc & EFX_FC_AUTO) in efx_siena_mcdi_set_mac()
|
H A D | efx_common.c | 465 efx->wanted_fc &= ~(EFX_FC_TX | EFX_FC_RX); in efx_siena_link_clear_advertising() 468 void efx_siena_link_set_wanted_fc(struct efx_nic *efx, u8 wanted_fc) in efx_siena_link_set_wanted_fc() argument 470 efx->wanted_fc = wanted_fc; in efx_siena_link_set_wanted_fc() 472 if (wanted_fc & EFX_FC_RX) in efx_siena_link_set_wanted_fc() 478 if (wanted_fc & EFX_FC_TX) in efx_siena_link_set_wanted_fc()
|
H A D | efx_common.h | 29 void efx_siena_link_set_wanted_fc(struct efx_nic *efx, u8 wanted_fc);
|
H A D | net_driver.h | 1070 u8 wanted_fc; member
|