| /linux/drivers/net/phy/ |
| H A D | linkmode.c | 26 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/drivers/net/ethernet/mellanox/mlx4/ |
| H A D | en_dcb_nl.c | 161 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() 414 u32 tx_pause, tx_ppp, rx_pause, rx_ppp; in mlx4_en_dcbnl_ieee_setpfc() local 424 tx_pause = prof->tx_pause && !pfc->pfc_en; in mlx4_en_dcbnl_ieee_setpfc() 430 tx_pause, tx_ppp, rx_pause, rx_ppp); in mlx4_en_dcbnl_ieee_setpfc() 437 rx_ppp, rx_pause, tx_ppp, tx_pause); in mlx4_en_dcbnl_ieee_setpfc() 442 prof->tx_pause = tx_pause; in mlx4_en_dcbnl_ieee_setpfc()
|
| H A D | mlx4_stats.h | 79 u64 tx_pause; member 108 __be64 tx_pause; member
|
| H A D | en_ethtool.c | 776 if (priv->prof->tx_pause) in ethtool_get_ptys_link_ksettings() 779 if (priv->prof->tx_pause ^ priv->prof->rx_pause) in ethtool_get_ptys_link_ksettings() 1067 u8 tx_pause, tx_ppp, rx_pause, rx_ppp; in mlx4_en_set_pauseparam() local 1073 tx_pause = !!(pause->tx_pause); in mlx4_en_set_pauseparam() 1075 rx_ppp = (tx_pause || rx_pause) ? 0 : priv->prof->rx_ppp; in mlx4_en_set_pauseparam() 1076 tx_ppp = (tx_pause || rx_pause) ? 0 : priv->prof->tx_ppp; in mlx4_en_set_pauseparam() 1080 tx_pause, tx_ppp, rx_pause, rx_ppp); in mlx4_en_set_pauseparam() 1087 rx_ppp, rx_pause, tx_ppp, tx_pause); in mlx4_en_set_pauseparam() 1089 priv->prof->tx_pause = tx_pause; in mlx4_en_set_pauseparam() 1108 stats->tx_pause_frames = priv->tx_flowstats.tx_pause; in mlx4_en_get_pause_stats() [all …]
|
| /linux/drivers/net/ethernet/apm/xgene/ |
| H A D | xgene_enet_ethtool.c | 286 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()
|
| /linux/drivers/net/ethernet/marvell/octeontx2/af/ |
| H A D | rpm.c | 196 u8 *tx_pause, u8 *rx_pause) in rpm_lmac_get_pause_frm_status() argument 207 *tx_pause = !(cfg & RPMX_MTI_MAC100X_COMMAND_CONFIG_TX_P_DISABLE); in rpm_lmac_get_pause_frm_status() 293 static void rpm2_lmac_cfg_bp(rpm_t *rpm, int lmac_id, u8 tx_pause, u8 rx_pause) in rpm2_lmac_cfg_bp() argument 298 if (tx_pause) { in rpm2_lmac_cfg_bp() 313 static void rpm_lmac_cfg_bp(rpm_t *rpm, int lmac_id, u8 tx_pause, u8 rx_pause) in rpm_lmac_cfg_bp() argument 318 if (tx_pause) { in rpm_lmac_cfg_bp() 333 int rpm_lmac_enadis_pause_frm(void *rpmd, int lmac_id, u8 tx_pause, in rpm_lmac_enadis_pause_frm() argument 351 cfg |= tx_pause ? 0x0 : RPMX_MTI_MAC100X_COMMAND_CONFIG_TX_P_DISABLE; in rpm_lmac_enadis_pause_frm() 355 rpm2_lmac_cfg_bp(rpm, lmac_id, tx_pause, rx_pause); in rpm_lmac_enadis_pause_frm() 357 rpm_lmac_cfg_bp(rpm, lmac_id, tx_pause, rx_pause); in rpm_lmac_enadis_pause_frm() [all …]
|
| H A D | lmac_common.h | 105 u8 *tx_pause, 110 u8 tx_pause, 125 u8 tx_pause, u8 rx_pause, u16 pfc_en); 128 u8 *tx_pause, u8 *rx_pause);
|
| H A D | rpm.h | 125 int rpm_lmac_get_pause_frm_status(void *cgxd, int lmac_id, u8 *tx_pause, 128 int rpm_lmac_enadis_pause_frm(void *rpmd, int lmac_id, u8 tx_pause, 135 int rpm_lmac_pfc_config(void *rpmd, int lmac_id, u8 tx_pause, u8 rx_pause, 137 int rpm_lmac_get_pfc_frm_cfg(void *rpmd, int lmac_id, u8 *tx_pause,
|
| H A D | cgx.c | 639 u8 *tx_pause, u8 *rx_pause) in cgx_lmac_get_pause_frm_status() argument 654 *tx_pause = !!(cfg & CGX_SMUX_TX_CTL_L2P_BP_CONV); in cgx_lmac_get_pause_frm_status() 662 u8 rx_pause, tx_pause; in cgx_lmac_enadis_rx_pause_fwding() local 678 cgx_lmac_get_pause_frm_status(cgx, lmac_id, &rx_pause, &tx_pause); in cgx_lmac_enadis_rx_pause_fwding() 863 u8 tx_pause, u8 rx_pause) in cgx_lmac_enadis_pause_frm() argument 886 cfg |= tx_pause ? CGX_SMUX_TX_CTL_L2P_BP_CONV : 0x0; in cgx_lmac_enadis_pause_frm() 890 if (tx_pause) { in cgx_lmac_enadis_pause_frm() 952 int verify_lmac_fc_cfg(void *cgxd, int lmac_id, u8 tx_pause, u8 rx_pause, in verify_lmac_fc_cfg() argument 967 if (!tx_pause) in verify_lmac_fc_cfg() 979 if (!tx_pause && bitmap_weight(lmac->tx_fc_pfvf_bmap.bmap, lmac->tx_fc_pfvf_bmap.max)) { in verify_lmac_fc_cfg() [all …]
|
| H A D | rvu_cgx.c | 1001 int rvu_cgx_cfg_pause_frm(struct rvu *rvu, u16 pcifunc, u8 tx_pause, u8 rx_pause) in rvu_cgx_cfg_pause_frm() argument 1030 if (verify_lmac_fc_cfg(cgxd, lmac_id, tx_pause, rx_pause, in rvu_cgx_cfg_pause_frm() 1037 return mac_ops->mac_enadis_pause_frm(cgxd, lmac_id, tx_pause, rx_pause); in rvu_cgx_cfg_pause_frm() 1061 err = rvu_cgx_cfg_pause_frm(rvu, req->hdr.pcifunc, req->tx_pause, req->rx_pause); in rvu_mbox_handler_cgx_cfg_pause_frm() 1063 mac_ops->mac_get_pause_frm_status(cgxd, lmac_id, &rsp->tx_pause, &rsp->rx_pause); in rvu_mbox_handler_cgx_cfg_pause_frm() 1277 int rvu_cgx_prio_flow_ctrl_cfg(struct rvu *rvu, u16 pcifunc, u8 tx_pause, in rvu_cgx_prio_flow_ctrl_cfg() argument 1304 if (verify_lmac_fc_cfg(cgxd, lmac_id, tx_pause, rx_pause, in rvu_cgx_prio_flow_ctrl_cfg() 1311 return mac_ops->pfc_config(cgxd, lmac_id, tx_pause, rx_pause, pfc_en); in rvu_cgx_prio_flow_ctrl_cfg() 1334 err = rvu_cgx_prio_flow_ctrl_cfg(rvu, req->hdr.pcifunc, req->tx_pause, in rvu_mbox_handler_cgx_prio_flow_ctrl_cfg() 1337 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/drivers/net/wireless/marvell/mwifiex/ |
| H A D | sta_event.c | 345 tp->peermac, tp->tx_pause, in mwifiex_process_uap_tx_pause() 349 if (tp->tx_pause) in mwifiex_process_uap_tx_pause() 354 mwifiex_update_ralist_tx_pause(priv, tp->peermac, tp->tx_pause); in mwifiex_process_uap_tx_pause() 358 if (sta_ptr && sta_ptr->tx_pause != tp->tx_pause) { in mwifiex_process_uap_tx_pause() 359 sta_ptr->tx_pause = tp->tx_pause; in mwifiex_process_uap_tx_pause() 362 tp->tx_pause); in mwifiex_process_uap_tx_pause() 379 tp->peermac, tp->tx_pause, in mwifiex_process_sta_tx_pause() 383 if (tp->tx_pause) in mwifiex_process_sta_tx_pause() 395 if (sta_ptr && sta_ptr->tx_pause != tp->tx_pause) { in mwifiex_process_sta_tx_pause() 396 sta_ptr->tx_pause = tp->tx_pause; in mwifiex_process_sta_tx_pause() [all …]
|
| H A D | wmm.c | 171 ra_list->tx_paused = node->tx_pause; in mwifiex_ralist_add() 638 u8 tx_pause) in mwifiex_update_ralist_tx_pause() argument 648 if (ra_list && ra_list->tx_paused != tx_pause) { in mwifiex_update_ralist_tx_pause() 650 ra_list->tx_paused = tx_pause; in mwifiex_update_ralist_tx_pause() 651 if (tx_pause) in mwifiex_update_ralist_tx_pause() 662 if (tx_pause) in mwifiex_update_ralist_tx_pause() 677 u8 *mac, u8 tx_pause) in mwifiex_update_ralist_tx_pause_in_tdls_cs() argument 691 if (ra_list->tx_paused != tx_pause) { in mwifiex_update_ralist_tx_pause_in_tdls_cs() 693 ra_list->tx_paused = tx_pause; in mwifiex_update_ralist_tx_pause_in_tdls_cs() 694 if (tx_pause) in mwifiex_update_ralist_tx_pause_in_tdls_cs() [all …]
|
| H A D | wmm.h | 93 u8 tx_pause); 95 u8 *mac, u8 tx_pause);
|
| /linux/drivers/net/ethernet/freescale/dpaa2/ |
| H A D | dpaa2-eth-dcb.c | 66 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/drivers/net/ethernet/oki-semi/pch_gbe/ |
| H A D | pch_gbe_ethtool.c | 392 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/drivers/net/ethernet/asix/ |
| H A D | ax88796c_ioctl.c | 49 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/drivers/net/ethernet/netronome/nfp/nfpcore/ |
| H A D | nfp_nsp_eth.c | 189 dst->tx_pause = true; in nfp_eth_port_translate() 194 dst->tx_pause = FIELD_GET(NSP_ETH_STATE_TX_PAUSE, state); in nfp_eth_port_translate() 654 static int __nfp_eth_set_txpause(struct nfp_nsp *nsp, unsigned int tx_pause) in __nfp_eth_set_txpause() argument 657 tx_pause, NSP_ETH_CTRL_SET_TX_PAUSE); in __nfp_eth_set_txpause() 689 unsigned int tx_pause, unsigned int rx_pause) in nfp_eth_set_pauseparam() argument 705 err = __nfp_eth_set_txpause(nsp, tx_pause); in nfp_eth_set_pauseparam()
|
| H A D | nfp_nsp.h | 233 bool tx_pause; member 263 unsigned int tx_pause, unsigned int rx_pause);
|
| /linux/drivers/net/ethernet/hisilicon/hibmcge/ |
| H A D | hbg_mdio.c | 125 bool tx_pause; in hbg_flowctrl_cfg() local 130 phy_get_pause(phydev, &tx_pause, &rx_pause); in hbg_flowctrl_cfg() 131 hbg_hw_set_pause_enable(priv, tx_pause, rx_pause); in hbg_flowctrl_cfg()
|
| /linux/drivers/net/ethernet/freescale/enetc/ |
| H A D | enetc4_pf.c | 750 static void enetc4_set_tx_pause(struct enetc_pf *pf, int num_rxbdr, bool tx_pause) in enetc4_set_rx_pause() 760 rbmr = u32_replace_bits(old_rbmr, tx_pause ? 1 : 0, ENETC_RBMR_CM); in enetc4_set_tx_pause() 767 if (tx_pause) { in enetc4_set_tx_pause() 907 int duplex, bool tx_pause, bool rx_pause) in enetc4_link_init() 929 tx_pause = false; in enetc4_psi_wq_task_init() 931 if (tx_pause || rx_pause) in enetc4_psi_wq_task_init() 937 tx_pause = false; in enetc4_pf_netdev_create() 942 enetc4_set_tx_pause(pf, priv->num_rx_rings, tx_pause); in enetc4_pf_netdev_create() 759 enetc4_set_tx_pause(struct enetc_pf * pf,int num_rxbdr,bool tx_pause) enetc4_set_tx_pause() argument 819 enetc4_pl_mac_link_up(struct phylink_config * config,struct phy_device * phy,unsigned int mode,phy_interface_t interface,int speed,int duplex,bool tx_pause,bool rx_pause) enetc4_pl_mac_link_up() argument
|
| /linux/drivers/net/ethernet/broadcom/genet/ |
| H A D | bcmmii.c | 49 bool tx_pause = 0, rx_pause = 0; in bcmgenet_mac_config() local 52 phy_get_pause(phydev, &tx_pause, &rx_pause); in bcmgenet_mac_config() 54 if (!tx_pause) in bcmgenet_mac_config() 63 if (!priv->tx_pause) in bcmgenet_mac_config()
|
| /linux/drivers/net/ethernet/amd/xgbe/ |
| H A D | xgbe-mdio.c | 979 if (pdata->tx_pause && pdata->rx_pause) in xgbe_phy_fc_string() 983 else if (pdata->tx_pause) in xgbe_phy_fc_string() 1029 if (pdata->tx_pause != pdata->phy.tx_pause) { in xgbe_phy_adjust_link() 1031 pdata->tx_pause = pdata->phy.tx_pause; in xgbe_phy_adjust_link() 1562 pdata->phy.tx_pause = pdata->tx_pause; in xgbe_phy_init() 1574 if (pdata->tx_pause) { in xgbe_phy_init()
|
| /linux/drivers/net/ethernet/qualcomm/emac/ |
| H A D | emac-ethtool.c | 180 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/net/ethtool/ |
| H A D | pause.c | 153 nla_put_u8(skb, ETHTOOL_A_PAUSE_TX, !!pauseparam->tx_pause)) in pause_fill_reply() 196 ethnl_update_bool32(¶ms.tx_pause, tb[ETHTOOL_A_PAUSE_TX], &mod); in ethnl_set_pause()
|
| /linux/drivers/net/ethernet/huawei/hinic/ |
| H A D | hinic_ethtool.c | 314 if (pause_info.rx_pause && pause_info.tx_pause) { in hinic_get_link_ksettings() 316 } else if (pause_info.tx_pause) { in hinic_get_link_ksettings() 841 pause->tx_pause = nic_cfg->tx_pause; in hinic_get_pauseparam() 844 pause->tx_pause = pause_info.tx_pause; in hinic_get_pauseparam() 866 pause_info.tx_pause = pause->tx_pause; in hinic_set_pauseparam() 877 nic_dev->hwdev->func_to_io.nic_cfg.tx_pause = pause->tx_pause; in hinic_set_pauseparam()
|