| /linux/drivers/net/phy/ |
| H A D | linkmode.c | 26 bool *tx_pause, bool *rx_pause) in linkmode_resolve_pause() argument 33 *rx_pause = true; in linkmode_resolve_pause() 37 *rx_pause = linkmode_test_bit(ETHTOOL_LINK_MODE_Pause_BIT, in linkmode_resolve_pause() 41 *rx_pause = false; in linkmode_resolve_pause()
|
| /linux/drivers/net/ethernet/apm/xgene/ |
| H A D | xgene_enet_ethtool.c | 287 pp->rx_pause = pdata->rx_pause; in xgene_get_pauseparam() 306 pdata->rx_pause = pp->rx_pause; in xgene_set_pauseparam() 308 phy_set_asym_pause(phydev, pp->rx_pause, pp->tx_pause); in xgene_set_pauseparam() 312 pdata->mac_ops->flowctl_rx(pdata, pdata->rx_pause); in xgene_set_pauseparam() 319 pdata->rx_pause = pp->rx_pause; in xgene_set_pauseparam() 322 pdata->mac_ops->flowctl_rx(pdata, pdata->rx_pause); in xgene_set_pauseparam()
|
| /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 195 rx_pause = !!(rx_ppp || tx_ppp) ? 0 : prof->rx_pause; in mlx4_en_dcbnl_set_all() 200 rx_pause = prof->rx_pause; in mlx4_en_dcbnl_set_all() 206 tx_pause, tx_ppp, rx_pause, rx_ppp)) { in mlx4_en_dcbnl_set_all() 214 prof->rx_pause = rx_pause; in mlx4_en_dcbnl_set_all() 414 u32 tx_pause, tx_ppp, rx_pause, rx_ppp; in mlx4_en_dcbnl_ieee_setpfc() local 423 rx_pause = prof->rx_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() 441 prof->rx_pause = rx_pause; in mlx4_en_dcbnl_ieee_setpfc()
|
| H A D | mlx4_stats.h | 65 u64 rx_pause; member 100 __be64 rx_pause; member
|
| H A D | en_port.c | 401 priv->rx_priority_flowstats[i].rx_pause = in mlx4_en_DUMP_ETH_STATS() 402 be64_to_cpu(flowstats[i].rx_pause); in mlx4_en_DUMP_ETH_STATS() 416 priv->rx_flowstats.rx_pause = in mlx4_en_DUMP_ETH_STATS() 417 be64_to_cpu(flowstats[0].rx_pause); in mlx4_en_DUMP_ETH_STATS()
|
| /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 206 *rx_pause = !(cfg & RPMX_MTI_MAC100X_COMMAND_CONFIG_RX_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 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 334 u8 rx_pause) in rpm_lmac_enadis_pause_frm() argument 344 cfg |= rx_pause ? 0x0 : RPMX_MTI_MAC100X_COMMAND_CONFIG_RX_P_DISABLE; in rpm_lmac_enadis_pause_frm() 346 cfg |= rx_pause ? 0x0 : RPMX_MTI_MAC100X_COMMAND_CONFIG_PAUSE_IGNORE; 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() 633 int rpm_lmac_pfc_config(void *rpmd, int lmac_id, u8 tx_pause, u8 rx_pause, u16 pfc_en) in rpm_lmac_pfc_config() argument [all …]
|
| H A D | lmac_common.h | 106 u8 *rx_pause); 111 u8 rx_pause); 125 u8 tx_pause, u8 rx_pause, u16 pfc_en); 128 u8 *tx_pause, u8 *rx_pause);
|
| H A D | rpm.h | 126 u8 *rx_pause); 129 u8 rx_pause); 135 int rpm_lmac_pfc_config(void *rpmd, int lmac_id, u8 tx_pause, u8 rx_pause, 138 u8 *rx_pause);
|
| H A D | cgx.c | 639 u8 *tx_pause, u8 *rx_pause) in cgx_lmac_get_pause_frm_status() argument 651 *rx_pause = !!(cfg & CGX_SMUX_RX_FRM_CTL_CTL_BCK); 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() 679 is_pfc_enabled = rx_pause ? false : true; in cgx_lmac_enadis_rx_pause_fwding() 863 u8 tx_pause, u8 rx_pause) in cgx_lmac_enadis_pause_frm() argument 876 cfg |= rx_pause ? CGX_GMP_GMI_RXX_FRM_CTL_CTL_BCK : 0x0; in cgx_lmac_enadis_pause_frm() 881 cfg |= rx_pause ? CGX_SMUX_RX_FRM_CTL_CTL_BCK : 0x0; 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 962 if (!rx_pause) in verify_lmac_fc_cfg() [all …]
|
| /linux/drivers/net/ethernet/oki-semi/pch_gbe/ |
| H A D | pch_gbe_ethtool.c | 390 pause->rx_pause = 1; in pch_gbe_get_pauseparam() 394 pause->rx_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/faraday/ |
| H A D | ftgmac100.c | 119 bool rx_pause; member 267 if (priv->rx_pause) in ftgmac100_config_pause() 1162 pause->rx_pause = priv->rx_pause; in ftgmac100_get_pauseparam() 1173 priv->rx_pause = pause->rx_pause; in ftgmac100_set_pauseparam() 1176 phy_set_asym_pause(phydev, pause->rx_pause, pause->tx_pause); in ftgmac100_set_pauseparam() 1407 bool tx_pause, rx_pause; in ftgmac100_adjust_link() local 1418 rx_pause = tx_pause = phydev->pause; in ftgmac100_adjust_link() 1420 tx_pause = !rx_pause; in ftgmac100_adjust_link() 1422 rx_pause = priv->rx_pause; in ftgmac100_adjust_link() 1429 rx_pause == priv->rx_pause && in ftgmac100_adjust_link() [all …]
|
| /linux/drivers/net/ethernet/asix/ |
| H A D | ax88796c_ioctl.c | 50 pause->rx_pause = !!(ax_local->flowctrl & AX_FC_RX); in ax88796c_get_pauseparam() 64 fc |= pause->rx_pause ? AX_FC_RX : 0; in ax88796c_set_pauseparam() 71 pause->rx_pause); in ax88796c_set_pauseparam()
|
| /linux/drivers/net/ethernet/netronome/nfp/nfpcore/ |
| H A D | nfp_nsp_eth.c | 190 dst->rx_pause = true; in nfp_eth_port_translate() 195 dst->rx_pause = FIELD_GET(NSP_ETH_STATE_RX_PAUSE, state); in nfp_eth_port_translate() 669 static int __nfp_eth_set_rxpause(struct nfp_nsp *nsp, unsigned int rx_pause) in __nfp_eth_set_rxpause() argument 672 rx_pause, NSP_ETH_CTRL_SET_RX_PAUSE); in __nfp_eth_set_rxpause() 689 unsigned int tx_pause, unsigned int rx_pause) in nfp_eth_set_pauseparam() argument 711 err = __nfp_eth_set_rxpause(nsp, rx_pause); in nfp_eth_set_pauseparam()
|
| H A D | nfp_nsp.h | 232 bool rx_pause; member 263 unsigned int tx_pause, unsigned int rx_pause);
|
| /linux/drivers/net/ethernet/chelsio/cxgb3/ |
| H A D | xgmac.c | 493 mac->rx_pause = s->rx_pause; in t3_mac_enable() 543 if (tx_mcnt == mac->tx_mcnt && mac->rx_pause == s->rx_pause) { in t3b2_mac_watchdog_task() 577 mac->rx_pause = s->rx_pause; in t3b2_mac_watchdog_task() 614 RMON_UPDATE(mac, rx_pause, RX_PAUSE_FRAMES); in t3_mac_update_stats()
|
| /linux/drivers/net/ethernet/hisilicon/hibmcge/ |
| H A D | hbg_mdio.c | 124 bool rx_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/qualcomm/emac/ |
| H A D | emac-ethtool.c | 179 pause->rx_pause = adpt->rx_flow_control ? 1 : 0; in emac_get_pauseparam() 189 adpt->rx_flow_control = pause->rx_pause != 0; in emac_set_pauseparam()
|
| /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() 981 else if (pdata->rx_pause) in xgbe_phy_fc_string() 1035 if (pdata->rx_pause != pdata->phy.rx_pause) { in xgbe_phy_adjust_link() 1037 pdata->rx_pause = pdata->phy.rx_pause; in xgbe_phy_adjust_link() 1563 pdata->phy.rx_pause = pdata->rx_pause; in xgbe_phy_init() 1569 if (pdata->rx_pause) { in xgbe_phy_init()
|
| /linux/net/ethtool/ |
| H A D | pause.c | 152 nla_put_u8(skb, ETHTOOL_A_PAUSE_RX, !!pauseparam->rx_pause) || in pause_fill_reply() 195 ethnl_update_bool32(¶ms.rx_pause, tb[ETHTOOL_A_PAUSE_RX], &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() 318 } else if (pause_info.rx_pause) { in hinic_get_link_ksettings() 840 pause->rx_pause = nic_cfg->rx_pause; in hinic_get_pauseparam() 843 pause->rx_pause = pause_info.rx_pause; in hinic_get_pauseparam() 865 pause_info.rx_pause = pause->rx_pause; in hinic_set_pauseparam() 876 nic_dev->hwdev->func_to_io.nic_cfg.rx_pause = pause->rx_pause; in hinic_set_pauseparam()
|
| H A D | hinic_hw_io.h | 55 u32 rx_pause; member
|
| /linux/drivers/net/ethernet/atheros/alx/ |
| H A D | ethtool.c | 222 pause->rx_pause = !!(hw->flowctrl & ALX_FC_RX); in alx_get_pauseparam() 238 if (pause->rx_pause) in alx_set_pauseparam()
|
| /linux/drivers/net/ethernet/brocade/bna/ |
| H A D | bnad_ethtool.c | 507 pauseparam->rx_pause = bnad->bna.enet.pause_config.rx_pause; in bnad_get_pauseparam() 523 if (pauseparam->rx_pause != bnad->bna.enet.pause_config.rx_pause || in bnad_set_pauseparam() 525 pause_config.rx_pause = pauseparam->rx_pause; in bnad_set_pauseparam()
|
| /linux/include/linux/ |
| H A D | linkmode.h | 81 bool *tx_pause, bool *rx_pause);
|
| /linux/drivers/net/ethernet/tehuti/ |
| H A D | tn40_phy.c | 17 int speed, int duplex, bool tx_pause, bool rx_pause) in tn40_link_up() argument
|