Home
last modified time | relevance | path

Searched refs:tx_pause (Results 1 – 25 of 184) sorted by relevance

12345678

/drivers/net/phy/
Dlinkmode.c26 bool *tx_pause, bool *rx_pause) in linkmode_resolve_pause() argument
32 *tx_pause = true; in linkmode_resolve_pause()
35 *tx_pause = linkmode_test_bit(ETHTOOL_LINK_MODE_Pause_BIT, in linkmode_resolve_pause()
40 *tx_pause = false; in linkmode_resolve_pause()
Dphylink.c409 bool tx_pause, rx_pause; in phylink_resolve_flow() local
415 &tx_pause, &rx_pause); in phylink_resolve_flow()
416 if (tx_pause) in phylink_resolve_flow()
953 bool tx_pause, rx_pause; in phylink_phy_change() local
955 phy_get_pause(phydev, &tx_pause, &rx_pause); in phylink_phy_change()
961 if (tx_pause) in phylink_phy_change()
1731 pause->tx_pause = !!(pl->link_config.pause & MLO_PAUSE_TX); in phylink_ethtool_get_pauseparam()
1757 pause->rx_pause != pause->tx_pause) in phylink_ethtool_set_pauseparam()
1765 if (pause->tx_pause) in phylink_ethtool_set_pauseparam()
1782 linkmode_set_pause(config->advertising, pause->tx_pause, in phylink_ethtool_set_pauseparam()
[all …]
/drivers/net/ethernet/mellanox/mlx4/
Den_dcb_nl.c161 u8 tx_pause, tx_ppp, rx_pause, rx_ppp; in mlx4_en_dcbnl_set_all() local
196 tx_pause = !!(rx_ppp || tx_ppp) ? 0 : prof->tx_pause; in mlx4_en_dcbnl_set_all()
201 tx_pause = prof->tx_pause; in mlx4_en_dcbnl_set_all()
206 tx_pause, tx_ppp, rx_pause, rx_ppp)) { in mlx4_en_dcbnl_set_all()
213 prof->tx_pause = tx_pause; in mlx4_en_dcbnl_set_all()
417 u32 tx_pause, tx_ppp, rx_pause, rx_ppp; in mlx4_en_dcbnl_ieee_setpfc() local
427 tx_pause = prof->tx_pause && !pfc->pfc_en; in mlx4_en_dcbnl_ieee_setpfc()
433 tx_pause, tx_ppp, rx_pause, rx_ppp); in mlx4_en_dcbnl_ieee_setpfc()
440 rx_ppp, rx_pause, tx_ppp, tx_pause); in mlx4_en_dcbnl_ieee_setpfc()
445 prof->tx_pause = tx_pause; in mlx4_en_dcbnl_ieee_setpfc()
Dmlx4_stats.h77 u64 tx_pause; member
106 __be64 tx_pause; member
Den_ethtool.c792 if (priv->prof->tx_pause) in ethtool_get_ptys_link_ksettings()
795 if (priv->prof->tx_pause ^ priv->prof->rx_pause) in ethtool_get_ptys_link_ksettings()
1083 u8 tx_pause, tx_ppp, rx_pause, rx_ppp; in mlx4_en_set_pauseparam() local
1089 tx_pause = !!(pause->tx_pause); in mlx4_en_set_pauseparam()
1091 rx_ppp = (tx_pause || rx_pause) ? 0 : priv->prof->rx_ppp; in mlx4_en_set_pauseparam()
1092 tx_ppp = (tx_pause || rx_pause) ? 0 : priv->prof->tx_ppp; in mlx4_en_set_pauseparam()
1096 tx_pause, tx_ppp, rx_pause, rx_ppp); in mlx4_en_set_pauseparam()
1103 rx_ppp, rx_pause, tx_ppp, tx_pause); in mlx4_en_set_pauseparam()
1105 priv->prof->tx_pause = tx_pause; in mlx4_en_set_pauseparam()
1124 stats->tx_pause_frames = priv->tx_flowstats.tx_pause; in mlx4_en_get_pause_stats()
[all …]
/drivers/net/ethernet/apm/xgene/
Dxgene_enet_ethtool.c286 pp->tx_pause = pdata->tx_pause; in xgene_get_pauseparam()
305 pdata->tx_pause = pp->tx_pause; in xgene_set_pauseparam()
308 phy_set_asym_pause(phydev, pp->rx_pause, pp->tx_pause); in xgene_set_pauseparam()
311 pdata->mac_ops->flowctl_tx(pdata, pdata->tx_pause); in xgene_set_pauseparam()
318 pdata->tx_pause = pp->tx_pause; in xgene_set_pauseparam()
321 pdata->mac_ops->flowctl_tx(pdata, pdata->tx_pause); in xgene_set_pauseparam()
Dxgene_enet_hw.c591 xgene_gmac_flowctl_tx(pdata, pdata->tx_pause); in xgene_gmac_init()
763 u32 rx_pause, tx_pause; in xgene_enet_flowctrl_cfg() local
769 if (pdata->tx_pause) in xgene_enet_flowctrl_cfg()
784 tx_pause = !!(flowctl & FLOW_CTRL_TX); in xgene_enet_flowctrl_cfg()
787 if (tx_pause != pdata->tx_pause) { in xgene_enet_flowctrl_cfg()
788 pdata->tx_pause = tx_pause; in xgene_enet_flowctrl_cfg()
789 pdata->mac_ops->flowctl_tx(pdata, pdata->tx_pause); in xgene_enet_flowctrl_cfg()
/drivers/net/wireless/marvell/mwifiex/
Dsta_event.c353 tp->peermac, tp->tx_pause, in mwifiex_process_uap_tx_pause()
357 if (tp->tx_pause) in mwifiex_process_uap_tx_pause()
362 mwifiex_update_ralist_tx_pause(priv, tp->peermac, tp->tx_pause); in mwifiex_process_uap_tx_pause()
366 if (sta_ptr && sta_ptr->tx_pause != tp->tx_pause) { in mwifiex_process_uap_tx_pause()
367 sta_ptr->tx_pause = tp->tx_pause; in mwifiex_process_uap_tx_pause()
370 tp->tx_pause); in mwifiex_process_uap_tx_pause()
387 tp->peermac, tp->tx_pause, in mwifiex_process_sta_tx_pause()
391 if (tp->tx_pause) in mwifiex_process_sta_tx_pause()
403 if (sta_ptr && sta_ptr->tx_pause != tp->tx_pause) { in mwifiex_process_sta_tx_pause()
404 sta_ptr->tx_pause = tp->tx_pause; in mwifiex_process_sta_tx_pause()
[all …]
Dwmm.c183 ra_list->tx_paused = node->tx_pause; in mwifiex_ralist_add()
654 u8 tx_pause) in mwifiex_update_ralist_tx_pause() argument
664 if (ra_list && ra_list->tx_paused != tx_pause) { in mwifiex_update_ralist_tx_pause()
666 ra_list->tx_paused = tx_pause; in mwifiex_update_ralist_tx_pause()
667 if (tx_pause) in mwifiex_update_ralist_tx_pause()
678 if (tx_pause) in mwifiex_update_ralist_tx_pause()
693 u8 *mac, u8 tx_pause) in mwifiex_update_ralist_tx_pause_in_tdls_cs() argument
707 if (ra_list->tx_paused != tx_pause) { in mwifiex_update_ralist_tx_pause_in_tdls_cs()
709 ra_list->tx_paused = tx_pause; in mwifiex_update_ralist_tx_pause_in_tdls_cs()
710 if (tx_pause) in mwifiex_update_ralist_tx_pause_in_tdls_cs()
[all …]
Dwmm.h120 u8 tx_pause);
122 u8 *mac, u8 tx_pause);
/drivers/net/ethernet/freescale/dpaa2/
Ddpaa2-eth-dcb.c66 bool tx_pause; in dpaa2_eth_dcbnl_ieee_setpfc() local
79 tx_pause = dpaa2_eth_tx_pause_enabled(priv->link_state.options); in dpaa2_eth_dcbnl_ieee_setpfc()
80 if (!dpaa2_eth_rx_pause_enabled(priv->link_state.options) || !tx_pause) in dpaa2_eth_dcbnl_ieee_setpfc()
103 dpaa2_eth_set_rx_taildrop(priv, tx_pause, priv->pfc_enabled); in dpaa2_eth_dcbnl_ieee_setpfc()
/drivers/net/ethernet/qlogic/netxen/
Dnetxen_nic_ethtool.c490 pause->tx_pause = !(netxen_gb_get_gb0_mask(val)); in netxen_nic_get_pauseparam()
493 pause->tx_pause = !(netxen_gb_get_gb1_mask(val)); in netxen_nic_get_pauseparam()
496 pause->tx_pause = !(netxen_gb_get_gb2_mask(val)); in netxen_nic_get_pauseparam()
500 pause->tx_pause = !(netxen_gb_get_gb3_mask(val)); in netxen_nic_get_pauseparam()
509 pause->tx_pause = !(netxen_xg_get_xg0_mask(val)); in netxen_nic_get_pauseparam()
511 pause->tx_pause = !(netxen_xg_get_xg1_mask(val)); in netxen_nic_get_pauseparam()
548 if (pause->tx_pause) in netxen_nic_set_pauseparam()
554 if (pause->tx_pause) in netxen_nic_set_pauseparam()
560 if (pause->tx_pause) in netxen_nic_set_pauseparam()
567 if (pause->tx_pause) in netxen_nic_set_pauseparam()
[all …]
/drivers/net/ethernet/freescale/fman/
Dmac.c382 bool *tx_pause) in fman_get_pause_cfg() argument
388 *rx_pause = *tx_pause = false; in fman_get_pause_cfg()
398 *tx_pause = mac_dev->tx_pause_req; in fman_get_pause_cfg()
423 *tx_pause = true; in fman_get_pause_cfg()
435 bool rx_pause, tx_pause; in adjust_link_dtsec() local
446 fman_get_pause_cfg(mac_dev, &rx_pause, &tx_pause); in adjust_link_dtsec()
447 err = fman_set_mac_active_pause(mac_dev, rx_pause, tx_pause); in adjust_link_dtsec()
457 bool rx_pause, tx_pause; in adjust_link_memac() local
463 fman_get_pause_cfg(mac_dev, &rx_pause, &tx_pause); in adjust_link_memac()
464 err = fman_set_mac_active_pause(mac_dev, rx_pause, tx_pause); in adjust_link_memac()
/drivers/net/ethernet/marvell/octeontx2/af/
Drpm.c117 u8 *tx_pause, u8 *rx_pause) in rpm_lmac_get_pause_frm_status() argument
129 *tx_pause = !(cfg & RPMX_MTI_MAC100X_COMMAND_CONFIG_TX_P_DISABLE); in rpm_lmac_get_pause_frm_status()
133 int rpm_lmac_enadis_pause_frm(void *rpmd, int lmac_id, u8 tx_pause, in rpm_lmac_enadis_pause_frm() argument
151 cfg |= tx_pause ? 0x0 : RPMX_MTI_MAC100X_COMMAND_CONFIG_TX_P_DISABLE; in rpm_lmac_enadis_pause_frm()
155 if (tx_pause) { in rpm_lmac_enadis_pause_frm()
Drpm.h55 int rpm_lmac_get_pause_frm_status(void *cgxd, int lmac_id, u8 *tx_pause,
58 int rpm_lmac_enadis_pause_frm(void *rpmd, int lmac_id, u8 tx_pause,
Dlmac_common.h95 u8 *tx_pause,
100 u8 tx_pause,
Dcgx.h154 u8 *tx_pause, u8 *rx_pause);
156 u8 tx_pause, u8 rx_pause);
/drivers/net/ethernet/oki-semi/pch_gbe/
Dpch_gbe_ethtool.c384 pause->tx_pause = 1; in pch_gbe_get_pauseparam()
387 pause->tx_pause = 1; in pch_gbe_get_pauseparam()
407 if ((pause->rx_pause) && (pause->tx_pause)) in pch_gbe_set_pauseparam()
409 else if ((pause->rx_pause) && (!pause->tx_pause)) in pch_gbe_set_pauseparam()
411 else if ((!pause->rx_pause) && (pause->tx_pause)) in pch_gbe_set_pauseparam()
413 else if ((!pause->rx_pause) && (!pause->tx_pause)) in pch_gbe_set_pauseparam()
/drivers/net/ethernet/faraday/
Dftgmac100.c105 bool tx_pause; member
240 if (priv->tx_pause) in ftgmac100_config_pause()
999 bool tx_pause, rx_pause; in ftgmac100_adjust_link() local
1010 rx_pause = tx_pause = phydev->pause; in ftgmac100_adjust_link()
1012 tx_pause = !rx_pause; in ftgmac100_adjust_link()
1015 tx_pause = priv->tx_pause; in ftgmac100_adjust_link()
1022 tx_pause == priv->tx_pause) in ftgmac100_adjust_link()
1034 priv->tx_pause = tx_pause; in ftgmac100_adjust_link()
1223 pause->tx_pause = priv->tx_pause; in ftgmac100_get_pauseparam()
1234 priv->tx_pause = pause->tx_pause; in ftgmac100_set_pauseparam()
[all …]
/drivers/net/ethernet/freescale/dpaa/
Ddpaa_ethtool.c158 epause->tx_pause = mac_dev->tx_pause_active; in dpaa_get_pauseparam()
166 bool rx_pause, tx_pause; in dpaa_set_pauseparam() local
188 mac_dev->tx_pause_req = !!epause->tx_pause; in dpaa_set_pauseparam()
194 phy_set_asym_pause(phydev, epause->rx_pause, epause->tx_pause); in dpaa_set_pauseparam()
196 fman_get_pause_cfg(mac_dev, &rx_pause, &tx_pause); in dpaa_set_pauseparam()
197 err = fman_set_mac_active_pause(mac_dev, rx_pause, tx_pause); in dpaa_set_pauseparam()
/drivers/net/ethernet/intel/ixgb/
Dixgb_ethtool.c143 pause->tx_pause = 1; in ixgb_get_pauseparam()
146 pause->tx_pause = 1; in ixgb_get_pauseparam()
160 if (pause->rx_pause && pause->tx_pause) in ixgb_set_pauseparam()
162 else if (pause->rx_pause && !pause->tx_pause) in ixgb_set_pauseparam()
164 else if (!pause->rx_pause && pause->tx_pause) in ixgb_set_pauseparam()
166 else if (!pause->rx_pause && !pause->tx_pause) in ixgb_set_pauseparam()
/drivers/net/ethernet/qlogic/qlcnic/
Dqlcnic_ethtool.c809 pause->tx_pause = !(qlcnic_gb_get_gb0_mask(val)); in qlcnic_get_pauseparam()
812 pause->tx_pause = !(qlcnic_gb_get_gb1_mask(val)); in qlcnic_get_pauseparam()
815 pause->tx_pause = !(qlcnic_gb_get_gb2_mask(val)); in qlcnic_get_pauseparam()
819 pause->tx_pause = !(qlcnic_gb_get_gb3_mask(val)); in qlcnic_get_pauseparam()
830 pause->tx_pause = !(qlcnic_xg_get_xg0_mask(val)); in qlcnic_get_pauseparam()
832 pause->tx_pause = !(qlcnic_xg_get_xg1_mask(val)); in qlcnic_get_pauseparam()
874 if (pause->tx_pause) in qlcnic_set_pauseparam()
880 if (pause->tx_pause) in qlcnic_set_pauseparam()
886 if (pause->tx_pause) in qlcnic_set_pauseparam()
893 if (pause->tx_pause) in qlcnic_set_pauseparam()
[all …]
/drivers/net/ethernet/amd/xgbe/
Dxgbe-mdio.c1067 if (pdata->tx_pause && pdata->rx_pause) in xgbe_phy_fc_string()
1071 else if (pdata->tx_pause) in xgbe_phy_fc_string()
1115 if (pdata->tx_pause != pdata->phy.tx_pause) { in xgbe_phy_adjust_link()
1117 pdata->tx_pause = pdata->phy.tx_pause; in xgbe_phy_adjust_link()
1633 pdata->phy.tx_pause = pdata->tx_pause; in xgbe_phy_init()
1645 if (pdata->tx_pause) { in xgbe_phy_init()
/drivers/net/netdevsim/
Dethtool.c29 pause->tx_pause = ns->ethtool.pauseparam.tx; in nsim_get_pauseparam()
41 ns->ethtool.pauseparam.tx = pause->tx_pause; in nsim_set_pauseparam()
/drivers/net/ethernet/qualcomm/emac/
Demac-ethtool.c176 pause->tx_pause = adpt->tx_flow_control ? 1 : 0; in emac_get_pauseparam()
186 adpt->tx_flow_control = pause->tx_pause != 0; in emac_set_pauseparam()

12345678