Home
last modified time | relevance | path

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

/linux-6.6.21/drivers/net/ethernet/sfc/siena/
Dethtool_common.c133 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 …]
Dmcdi_port_common.c64 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()
Defx_common.c465 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()
Defx_common.h29 void efx_siena_link_set_wanted_fc(struct efx_nic *efx, u8 wanted_fc);
Dnet_driver.h1070 u8 wanted_fc; member
/linux-6.6.21/drivers/net/ethernet/sfc/
Dethtool_common.c182 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 …]
Dmcdi_port_common.c63 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()
Defx_common.c461 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()
Def100_nic.c370 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()
Dnet_driver.h1102 u8 wanted_fc; member
/linux-6.6.21/drivers/net/ethernet/sfc/falcon/
Dethtool.c688 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 …]
Dmdio_10g.c300 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()
Defx.c930 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()
Dtenxpress.c206 ef4_link_set_wanted_fc(efx, efx->wanted_fc); in tenxpress_phy_init()
Dqt202x_phy.c392 efx->link_state.fc = efx->wanted_fc; in qt202x_phy_poll()
Dtxc43128_phy.c497 efx->link_state.fc = efx->wanted_fc; in txc43128_phy_poll()
Dfalcon.c1477 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()
Dnet_driver.h871 u8 wanted_fc; member