Home
last modified time | relevance | path

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

123456789

/linux-6.3-rc2/drivers/net/phy/
A 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()
/linux-6.3-rc2/drivers/net/ethernet/marvell/octeontx2/af/
A Drpm.c188 u8 *tx_pause, u8 *rx_pause) in rpm_lmac_get_pause_frm_status() argument
199 *tx_pause = !(cfg & RPMX_MTI_MAC100X_COMMAND_CONFIG_TX_P_DISABLE); in rpm_lmac_get_pause_frm_status()
290 if (tx_pause) { in rpm2_lmac_cfg_bp()
310 if (tx_pause) { in rpm_lmac_cfg_bp()
325 int rpm_lmac_enadis_pause_frm(void *rpmd, int lmac_id, u8 tx_pause, in rpm_lmac_enadis_pause_frm() argument
343 cfg |= tx_pause ? 0x0 : RPMX_MTI_MAC100X_COMMAND_CONFIG_TX_P_DISABLE; in rpm_lmac_enadis_pause_frm()
347 rpm2_lmac_cfg_bp(rpm, lmac_id, tx_pause, rx_pause); in rpm_lmac_enadis_pause_frm()
349 rpm_lmac_cfg_bp(rpm, lmac_id, tx_pause, rx_pause); in rpm_lmac_enadis_pause_frm()
619 if (tx_pause) { in rpm_lmac_pfc_config()
629 if (!rx_pause && !tx_pause) in rpm_lmac_pfc_config()
[all …]
A Dlmac_common.h104 u8 *tx_pause,
109 u8 tx_pause,
124 u8 tx_pause, u8 rx_pause, u16 pfc_en);
127 u8 *tx_pause, u8 *rx_pause);
A Drpm.h117 int rpm_lmac_get_pause_frm_status(void *cgxd, int lmac_id, u8 *tx_pause,
120 int rpm_lmac_enadis_pause_frm(void *rpmd, int lmac_id, u8 tx_pause,
127 int rpm_lmac_pfc_config(void *rpmd, int lmac_id, u8 tx_pause, u8 rx_pause,
129 int rpm_lmac_get_pfc_frm_cfg(void *rpmd, int lmac_id, u8 *tx_pause,
A Dcgx.h158 u8 *tx_pause, u8 *rx_pause);
160 u8 tx_pause, u8 rx_pause);
178 int cgx_lmac_pfc_config(void *cgxd, int lmac_id, u8 tx_pause, u8 rx_pause,
180 int cgx_lmac_get_pfc_frm_cfg(void *cgxd, int lmac_id, u8 *tx_pause,
182 int verify_lmac_fc_cfg(void *cgxd, int lmac_id, u8 tx_pause, u8 rx_pause,
A Dcgx.c610 u8 *tx_pause, u8 *rx_pause) in cgx_lmac_get_pause_frm_status() argument
625 *tx_pause = !!(cfg & CGX_SMUX_TX_CTL_L2P_BP_CONV); in cgx_lmac_get_pause_frm_status()
633 u8 rx_pause, tx_pause; in cgx_lmac_enadis_rx_pause_fwding() local
805 u8 tx_pause, u8 rx_pause) in cgx_lmac_enadis_pause_frm() argument
823 cfg |= tx_pause ? CGX_SMUX_TX_CTL_L2P_BP_CONV : 0x0; in cgx_lmac_enadis_pause_frm()
827 if (tx_pause) { in cgx_lmac_enadis_pause_frm()
904 if (!tx_pause) in verify_lmac_fc_cfg()
925 int cgx_lmac_pfc_config(void *cgxd, int lmac_id, u8 tx_pause, in cgx_lmac_pfc_config() argument
935 if (tx_pause && !pfc_en) in cgx_lmac_pfc_config()
951 if (tx_pause) { in cgx_lmac_pfc_config()
[all …]
A Drvu_cgx.c922 int rvu_cgx_cfg_pause_frm(struct rvu *rvu, u16 pcifunc, u8 tx_pause, u8 rx_pause) in rvu_cgx_cfg_pause_frm() argument
951 if (verify_lmac_fc_cfg(cgxd, lmac_id, tx_pause, rx_pause, in rvu_cgx_cfg_pause_frm()
958 return mac_ops->mac_enadis_pause_frm(cgxd, lmac_id, tx_pause, rx_pause); in rvu_cgx_cfg_pause_frm()
982 err = rvu_cgx_cfg_pause_frm(rvu, req->hdr.pcifunc, req->tx_pause, req->rx_pause); in rvu_mbox_handler_cgx_cfg_pause_frm()
984 mac_ops->mac_get_pause_frm_status(cgxd, lmac_id, &rsp->tx_pause, &rsp->rx_pause); in rvu_mbox_handler_cgx_cfg_pause_frm()
1188 int rvu_cgx_prio_flow_ctrl_cfg(struct rvu *rvu, u16 pcifunc, u8 tx_pause, in rvu_cgx_prio_flow_ctrl_cfg() argument
1215 if (verify_lmac_fc_cfg(cgxd, lmac_id, tx_pause, rx_pause, in rvu_cgx_prio_flow_ctrl_cfg()
1222 return mac_ops->pfc_config(cgxd, lmac_id, tx_pause, rx_pause, pfc_en); in rvu_cgx_prio_flow_ctrl_cfg()
1245 err = rvu_cgx_prio_flow_ctrl_cfg(rvu, req->hdr.pcifunc, req->tx_pause, in rvu_mbox_handler_cgx_prio_flow_ctrl_cfg()
1248 mac_ops->mac_get_pfc_frm_cfg(cgxd, lmac_id, &rsp->tx_pause, &rsp->rx_pause); in rvu_mbox_handler_cgx_prio_flow_ctrl_cfg()
/linux-6.3-rc2/drivers/net/ethernet/apm/xgene/
A 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()
A 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()
/linux-6.3-rc2/drivers/net/ethernet/mellanox/mlx4/
A 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()
A Dmlx4_stats.h79 u64 tx_pause; member
108 __be64 tx_pause; member
/linux-6.3-rc2/drivers/net/ethernet/freescale/dpaa2/
A 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()
/linux-6.3-rc2/drivers/net/wireless/marvell/mwifiex/
A Dsta_event.c341 tp->peermac, tp->tx_pause, in mwifiex_process_uap_tx_pause()
345 if (tp->tx_pause) in mwifiex_process_uap_tx_pause()
350 mwifiex_update_ralist_tx_pause(priv, tp->peermac, tp->tx_pause); in mwifiex_process_uap_tx_pause()
354 if (sta_ptr && sta_ptr->tx_pause != tp->tx_pause) { in mwifiex_process_uap_tx_pause()
355 sta_ptr->tx_pause = tp->tx_pause; in mwifiex_process_uap_tx_pause()
358 tp->tx_pause); in mwifiex_process_uap_tx_pause()
375 tp->peermac, tp->tx_pause, in mwifiex_process_sta_tx_pause()
379 if (tp->tx_pause) in mwifiex_process_sta_tx_pause()
391 if (sta_ptr && sta_ptr->tx_pause != tp->tx_pause) { in mwifiex_process_sta_tx_pause()
392 sta_ptr->tx_pause = tp->tx_pause; in mwifiex_process_sta_tx_pause()
[all …]
A Dwmm.h108 u8 tx_pause);
110 u8 *mac, u8 tx_pause);
A Dwmm.c171 ra_list->tx_paused = node->tx_pause; in mwifiex_ralist_add()
642 u8 tx_pause) in mwifiex_update_ralist_tx_pause() argument
652 if (ra_list && ra_list->tx_paused != tx_pause) { in mwifiex_update_ralist_tx_pause()
654 ra_list->tx_paused = tx_pause; in mwifiex_update_ralist_tx_pause()
655 if (tx_pause) in mwifiex_update_ralist_tx_pause()
666 if (tx_pause) in mwifiex_update_ralist_tx_pause()
681 u8 *mac, u8 tx_pause) in mwifiex_update_ralist_tx_pause_in_tdls_cs() argument
695 if (ra_list->tx_paused != tx_pause) { in mwifiex_update_ralist_tx_pause_in_tdls_cs()
697 ra_list->tx_paused = tx_pause; in mwifiex_update_ralist_tx_pause_in_tdls_cs()
698 if (tx_pause) in mwifiex_update_ralist_tx_pause_in_tdls_cs()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/qlogic/netxen/
A Dnetxen_nic_ethtool.c494 pause->tx_pause = !(netxen_gb_get_gb0_mask(val)); in netxen_nic_get_pauseparam()
497 pause->tx_pause = !(netxen_gb_get_gb1_mask(val)); in netxen_nic_get_pauseparam()
500 pause->tx_pause = !(netxen_gb_get_gb2_mask(val)); in netxen_nic_get_pauseparam()
504 pause->tx_pause = !(netxen_gb_get_gb3_mask(val)); in netxen_nic_get_pauseparam()
513 pause->tx_pause = !(netxen_xg_get_xg0_mask(val)); in netxen_nic_get_pauseparam()
552 if (pause->tx_pause) in netxen_nic_set_pauseparam()
558 if (pause->tx_pause) in netxen_nic_set_pauseparam()
564 if (pause->tx_pause) in netxen_nic_set_pauseparam()
571 if (pause->tx_pause) in netxen_nic_set_pauseparam()
583 if (pause->tx_pause) in netxen_nic_set_pauseparam()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/oki-semi/pch_gbe/
A Dpch_gbe_ethtool.c392 pause->tx_pause = 1; in pch_gbe_get_pauseparam()
395 pause->tx_pause = 1; in pch_gbe_get_pauseparam()
415 if ((pause->rx_pause) && (pause->tx_pause)) in pch_gbe_set_pauseparam()
417 else if ((pause->rx_pause) && (!pause->tx_pause)) in pch_gbe_set_pauseparam()
419 else if ((!pause->rx_pause) && (pause->tx_pause)) in pch_gbe_set_pauseparam()
421 else if ((!pause->rx_pause) && (!pause->tx_pause)) in pch_gbe_set_pauseparam()
/linux-6.3-rc2/drivers/net/ethernet/faraday/
A Dftgmac100.c105 bool tx_pause; member
237 if (priv->tx_pause) in ftgmac100_config_pause()
1115 pause->tx_pause = priv->tx_pause; in ftgmac100_get_pauseparam()
1126 priv->tx_pause = pause->tx_pause; in ftgmac100_set_pauseparam()
1361 bool tx_pause, rx_pause; in ftgmac100_adjust_link() local
1372 rx_pause = tx_pause = phydev->pause; in ftgmac100_adjust_link()
1374 tx_pause = !rx_pause; in ftgmac100_adjust_link()
1377 tx_pause = priv->tx_pause; in ftgmac100_adjust_link()
1384 tx_pause == priv->tx_pause) in ftgmac100_adjust_link()
1396 priv->tx_pause = tx_pause; in ftgmac100_adjust_link()
[all …]
/linux-6.3-rc2/drivers/net/ethernet/asix/
A Dax88796c_ioctl.c49 pause->tx_pause = !!(ax_local->flowctrl & AX_FC_TX); in ax88796c_get_pauseparam()
63 fc = pause->tx_pause ? AX_FC_TX : 0; in ax88796c_set_pauseparam()
70 phy_set_asym_pause(ax_local->phydev, pause->tx_pause, in ax88796c_set_pauseparam()
/linux-6.3-rc2/drivers/net/ethernet/microchip/lan966x/
A Dlan966x_phylink.c51 bool tx_pause, bool rx_pause) in lan966x_phylink_mac_link_up() argument
59 port_config->pause |= tx_pause ? MLO_PAUSE_TX : 0; in lan966x_phylink_mac_link_up()
/linux-6.3-rc2/drivers/net/ethernet/microchip/sparx5/
A Dsparx5_phylink.c50 bool tx_pause, bool rx_pause) in sparx5_phylink_mac_link_up() argument
59 conf.pause |= tx_pause ? MLO_PAUSE_TX : 0; in sparx5_phylink_mac_link_up()
/linux-6.3-rc2/drivers/net/ethernet/marvell/octeontx2/nic/
A Dotx2_dcbnl.c311 req->tx_pause = true; in otx2_config_priority_flow_ctrl()
314 req->tx_pause = false; in otx2_config_priority_flow_ctrl()
321 if (req->rx_pause != rsp->rx_pause || req->tx_pause != rsp->tx_pause) { in otx2_config_priority_flow_ctrl()
/linux-6.3-rc2/drivers/net/ethernet/intel/ixgb/
A 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()
/linux-6.3-rc2/drivers/net/ethernet/qualcomm/emac/
A Demac-ethtool.c180 pause->tx_pause = adpt->tx_flow_control ? 1 : 0; in emac_get_pauseparam()
190 adpt->tx_flow_control = pause->tx_pause != 0; in emac_set_pauseparam()
/linux-6.3-rc2/drivers/net/ethernet/broadcom/genet/
A Dbcmmii.c50 bool tx_pause = 0, rx_pause = 0; in bcmgenet_mac_config() local
53 phy_get_pause(phydev, &tx_pause, &rx_pause); in bcmgenet_mac_config()
55 if (!tx_pause) in bcmgenet_mac_config()
64 if (!priv->tx_pause) in bcmgenet_mac_config()

Completed in 48 milliseconds

123456789