Home
last modified time | relevance | path

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

/linux/drivers/net/ethernet/sfc/siena/
H A 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 …]
H A 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()
H A 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()
H A Defx_common.h29 void efx_siena_link_set_wanted_fc(struct efx_nic *efx, u8 wanted_fc);
H A Dnet_driver.h1061 u8 wanted_fc; member
/linux/drivers/net/ethernet/sfc/falcon/
H A Dethtool.c682 u8 wanted_fc, old_fc; in ef4_ethtool_set_pauseparam() local
688 wanted_fc = ((pause->rx_pause ? EF4_FC_RX : 0) | in ef4_ethtool_set_pauseparam()
692 if ((wanted_fc & EF4_FC_TX) && !(wanted_fc & EF4_FC_RX)) { in ef4_ethtool_set_pauseparam()
699 if ((wanted_fc & EF4_FC_AUTO) && !efx->link_advertising) { in ef4_ethtool_set_pauseparam()
708 (wanted_fc & EF4_FC_TX) && !(efx->wanted_fc & EF4_FC_TX)) in ef4_ethtool_set_pauseparam()
712 old_fc = efx->wanted_fc; in ef4_ethtool_set_pauseparam()
713 ef4_link_set_wanted_fc(efx, wanted_fc); in ef4_ethtool_set_pauseparam()
715 (efx->wanted_fc ^ old_fc) & EF4_FC_AUTO) { in ef4_ethtool_set_pauseparam()
741 pause->rx_pause = !!(efx->wanted_fc & EF4_FC_RX); in ef4_ethtool_get_pauseparam()
742 pause->tx_pause = !!(efx->wanted_fc & EF4_FC_TX); in ef4_ethtool_get_pauseparam()
[all …]
H A 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()
H A 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()
H A Dtenxpress.c206 ef4_link_set_wanted_fc(efx, efx->wanted_fc); in tenxpress_phy_init()
H A Dqt202x_phy.c392 efx->link_state.fc = efx->wanted_fc; in qt202x_phy_poll()
H A Dtxc43128_phy.c497 efx->link_state.fc = efx->wanted_fc; in txc43128_phy_poll()
H A 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()
/linux/drivers/net/ethernet/sfc/
H A Dethtool_common.c181 pause->rx_pause = !!(efx->wanted_fc & EFX_FC_RX); in efx_ethtool_get_pauseparam()
182 pause->tx_pause = !!(efx->wanted_fc & EFX_FC_TX); in efx_ethtool_get_pauseparam()
183 pause->autoneg = !!(efx->wanted_fc & EFX_FC_AUTO); in efx_ethtool_get_pauseparam()
190 u8 wanted_fc, old_fc; in efx_ethtool_set_pauseparam() local
196 wanted_fc = ((pause->rx_pause ? EFX_FC_RX : 0) | in efx_ethtool_set_pauseparam()
200 if ((wanted_fc & EFX_FC_TX) && !(wanted_fc & EFX_FC_RX)) { in efx_ethtool_set_pauseparam()
207 if ((wanted_fc & EFX_FC_AUTO) && !efx->link_advertising[0]) { in efx_ethtool_set_pauseparam()
216 (wanted_fc & EFX_FC_TX) && !(efx->wanted_fc & EFX_FC_TX)) in efx_ethtool_set_pauseparam()
220 old_fc = efx->wanted_fc; in efx_ethtool_set_pauseparam()
221 efx_link_set_wanted_fc(efx, wanted_fc); in efx_ethtool_set_pauseparam()
[all …]
H A 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()
509 efx->wanted_fc = EFX_FC_RX | EFX_FC_TX; in efx_mcdi_phy_probe()
511 efx->wanted_fc |= EFX_FC_AUTO; in efx_mcdi_phy_probe()
512 efx_link_set_wanted_fc(efx, efx->wanted_fc); in efx_mcdi_phy_probe()
1102 switch (efx->wanted_fc) { in efx_mcdi_set_mac()
1113 if (efx->wanted_fc & EFX_FC_AUTO) in efx_mcdi_set_mac()
H A 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()
H A 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()
H A Dnet_driver.h1138 u8 wanted_fc; member