/linux/drivers/net/phy/ |
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()
|
A D | phylink.c | 456 bool tx_pause, rx_pause; in phylink_resolve_flow() local 462 &tx_pause, &rx_pause); in phylink_resolve_flow() 465 if (rx_pause) in phylink_resolve_flow() 1005 bool tx_pause, rx_pause; in phylink_phy_change() local 1015 if (rx_pause) in phylink_phy_change() 1808 pause->rx_pause != pause->tx_pause) in phylink_ethtool_set_pauseparam() 1814 if (pause->rx_pause) in phylink_ethtool_set_pauseparam() 1834 pause->rx_pause); in phylink_ethtool_set_pauseparam() 2490 bool tx_pause, rx_pause; in phylink_decode_c37_word() local 2510 &tx_pause, &rx_pause); in phylink_decode_c37_word() [all …]
|
/linux/drivers/net/ethernet/mellanox/mlx4/ |
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() 417 u32 tx_pause, tx_ppp, rx_pause, rx_ppp; in mlx4_en_dcbnl_ieee_setpfc() local 426 rx_pause = prof->rx_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() 444 prof->rx_pause = rx_pause; in mlx4_en_dcbnl_ieee_setpfc()
|
A D | mlx4_stats.h | 65 u64 rx_pause; member 100 __be64 rx_pause; member
|
/linux/drivers/net/ethernet/apm/xgene/ |
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()
|
A D | xgene_enet_hw.c | 592 xgene_gmac_flowctl_rx(pdata, pdata->rx_pause); in xgene_gmac_init() 763 u32 rx_pause, tx_pause; in xgene_enet_flowctrl_cfg() local 772 if (pdata->rx_pause) in xgene_enet_flowctrl_cfg() 785 rx_pause = !!(flowctl & FLOW_CTRL_RX); in xgene_enet_flowctrl_cfg() 792 if (rx_pause != pdata->rx_pause) { in xgene_enet_flowctrl_cfg() 793 pdata->rx_pause = rx_pause; in xgene_enet_flowctrl_cfg() 794 pdata->mac_ops->flowctl_rx(pdata, pdata->rx_pause); in xgene_enet_flowctrl_cfg()
|
/linux/drivers/net/ethernet/marvell/octeontx2/af/ |
A D | rpm.c | 77 u8 *tx_pause, u8 *rx_pause) in rpm_lmac_get_pause_frm_status() argument 86 *rx_pause = !(cfg & RPMX_MTI_MAC100X_COMMAND_CONFIG_RX_P_DISABLE); in rpm_lmac_get_pause_frm_status() 94 u8 rx_pause) in rpm_lmac_enadis_pause_frm() argument 104 cfg |= rx_pause ? 0x0 : RPMX_MTI_MAC100X_COMMAND_CONFIG_RX_P_DISABLE; in rpm_lmac_enadis_pause_frm() 106 cfg |= rx_pause ? 0x0 : RPMX_MTI_MAC100X_COMMAND_CONFIG_PAUSE_IGNORE; in rpm_lmac_enadis_pause_frm()
|
A D | rpm.h | 53 u8 *rx_pause); 56 u8 rx_pause);
|
A D | lmac_common.h | 95 u8 *rx_pause); 100 u8 rx_pause);
|
A D | cgx.h | 155 u8 *tx_pause, u8 *rx_pause); 157 u8 tx_pause, u8 rx_pause);
|
/linux/drivers/net/ethernet/freescale/fman/ |
A D | mac.c | 370 void fman_get_pause_cfg(struct mac_device *mac_dev, bool *rx_pause, in fman_get_pause_cfg() argument 377 *rx_pause = *tx_pause = false; in fman_get_pause_cfg() 386 *rx_pause = mac_dev->rx_pause_req; in fman_get_pause_cfg() 410 *rx_pause = true; in fman_get_pause_cfg() 424 bool rx_pause, tx_pause; in adjust_link_dtsec() local 435 fman_get_pause_cfg(mac_dev, &rx_pause, &tx_pause); in adjust_link_dtsec() 436 err = fman_set_mac_active_pause(mac_dev, rx_pause, tx_pause); in adjust_link_dtsec() 446 bool rx_pause, tx_pause; in adjust_link_memac() local 452 fman_get_pause_cfg(mac_dev, &rx_pause, &tx_pause); in adjust_link_memac() 453 err = fman_set_mac_active_pause(mac_dev, rx_pause, tx_pause); in adjust_link_memac()
|
/linux/drivers/net/ethernet/oki-semi/pch_gbe/ |
A D | pch_gbe_ethtool.c | 382 pause->rx_pause = 1; in pch_gbe_get_pauseparam() 386 pause->rx_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()
|
/linux/drivers/net/ethernet/faraday/ |
A D | ftgmac100.c | 106 bool rx_pause; member 231 if (priv->rx_pause) in ftgmac100_config_pause() 996 bool tx_pause, rx_pause; in ftgmac100_adjust_link() local 1007 rx_pause = tx_pause = phydev->pause; in ftgmac100_adjust_link() 1009 tx_pause = !rx_pause; in ftgmac100_adjust_link() 1011 rx_pause = priv->rx_pause; in ftgmac100_adjust_link() 1018 rx_pause == priv->rx_pause && in ftgmac100_adjust_link() 1030 priv->rx_pause = rx_pause; in ftgmac100_adjust_link() 1221 pause->rx_pause = priv->rx_pause; in ftgmac100_get_pauseparam() 1232 priv->rx_pause = pause->rx_pause; in ftgmac100_set_pauseparam() [all …]
|
/linux/drivers/net/ethernet/freescale/dpaa/ |
A D | dpaa_ethtool.c | 157 epause->rx_pause = mac_dev->rx_pause_active; in dpaa_get_pauseparam() 166 bool rx_pause, tx_pause; in dpaa_set_pauseparam() local 187 mac_dev->rx_pause_req = !!epause->rx_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()
|
/linux/drivers/net/ethernet/asix/ |
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/chelsio/cxgb3/ |
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/amd/xgbe/ |
A D | xgbe-mdio.c | 1064 if (pdata->tx_pause && pdata->rx_pause) in xgbe_phy_fc_string() 1066 else if (pdata->rx_pause) in xgbe_phy_fc_string() 1118 if (pdata->rx_pause != pdata->phy.rx_pause) { in xgbe_phy_adjust_link() 1120 pdata->rx_pause = pdata->phy.rx_pause; in xgbe_phy_adjust_link() 1590 pdata->phy.rx_pause = pdata->rx_pause; in xgbe_phy_init() 1596 if (pdata->rx_pause) { in xgbe_phy_init()
|
A D | xgbe-ethtool.c | 267 pause->rx_pause = pdata->phy.rx_pause; in xgbe_get_pauseparam() 285 pdata->phy.rx_pause = pause->rx_pause; in xgbe_set_pauseparam() 290 if (pause->rx_pause) { in xgbe_set_pauseparam()
|
/linux/drivers/net/ethernet/intel/ixgb/ |
A D | ixgb_ethtool.c | 141 pause->rx_pause = 1; in ixgb_get_pauseparam() 145 pause->rx_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/drivers/net/ethernet/broadcom/genet/ |
A D | bcmmii.c | 50 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() 57 if (!rx_pause) in bcmgenet_mac_config() 62 if (!priv->rx_pause) in bcmgenet_mac_config()
|
/linux/drivers/net/ethernet/qualcomm/emac/ |
A D | emac-ethtool.c | 175 pause->rx_pause = adpt->rx_flow_control ? 1 : 0; in emac_get_pauseparam() 185 adpt->rx_flow_control = pause->rx_pause != 0; in emac_set_pauseparam()
|
/linux/net/ethtool/ |
A D | pause.c | 106 nla_put_u8(skb, ETHTOOL_A_PAUSE_RX, !!pauseparam->rx_pause) || in pause_fill_reply() 168 ethnl_update_bool32(¶ms.rx_pause, tb[ETHTOOL_A_PAUSE_RX], &mod); in ethnl_set_pause()
|
/linux/drivers/net/ethernet/huawei/hinic/ |
A D | hinic_ethtool.c | 315 if (pause_info.rx_pause && pause_info.tx_pause) { in hinic_get_link_ksettings() 319 } else if (pause_info.rx_pause) { in hinic_get_link_ksettings() 837 pause->rx_pause = nic_cfg->rx_pause; in hinic_get_pauseparam() 840 pause->rx_pause = pause_info.rx_pause; in hinic_get_pauseparam() 862 pause_info.rx_pause = pause->rx_pause; in hinic_set_pauseparam() 873 nic_dev->hwdev->func_to_io.nic_cfg.rx_pause = pause->rx_pause; in hinic_set_pauseparam()
|
/linux/include/linux/mlx5/ |
A D | port.h | 172 int mlx5_set_port_pause(struct mlx5_core_dev *dev, u32 rx_pause, u32 tx_pause); 174 u32 *rx_pause, u32 *tx_pause);
|
/linux/include/linux/ |
A D | phylink.h | 115 bool tx_pause, bool rx_pause); 336 int speed, int duplex, bool tx_pause, bool rx_pause);
|