/linux/drivers/net/phy/ |
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()
|
A D | phylink.c | 456 bool tx_pause, rx_pause; in phylink_resolve_flow() local 462 &tx_pause, &rx_pause); in phylink_resolve_flow() 463 if (tx_pause) in phylink_resolve_flow() 1005 bool tx_pause, rx_pause; in phylink_phy_change() local 1013 if (tx_pause) in phylink_phy_change() 1808 pause->rx_pause != pause->tx_pause) in phylink_ethtool_set_pauseparam() 1816 if (pause->tx_pause) in phylink_ethtool_set_pauseparam() 1857 pause->tx_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 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 D | mlx4_stats.h | 79 u64 tx_pause; member 108 __be64 tx_pause; member
|
A D | en_ethtool.c | 795 if (priv->prof->tx_pause) in ethtool_get_ptys_link_ksettings() 798 if (priv->prof->tx_pause ^ priv->prof->rx_pause) in ethtool_get_ptys_link_ksettings() 1086 u8 tx_pause, tx_ppp, rx_pause, rx_ppp; in mlx4_en_set_pauseparam() local 1092 tx_pause = !!(pause->tx_pause); in mlx4_en_set_pauseparam() 1094 rx_ppp = (tx_pause || rx_pause) ? 0 : priv->prof->rx_ppp; in mlx4_en_set_pauseparam() 1095 tx_ppp = (tx_pause || rx_pause) ? 0 : priv->prof->tx_ppp; in mlx4_en_set_pauseparam() 1099 tx_pause, tx_ppp, rx_pause, rx_ppp); in mlx4_en_set_pauseparam() 1106 rx_ppp, rx_pause, tx_ppp, tx_pause); in mlx4_en_set_pauseparam() 1108 priv->prof->tx_pause = tx_pause; in mlx4_en_set_pauseparam() 1127 stats->tx_pause_frames = priv->tx_flowstats.tx_pause; in mlx4_en_get_pause_stats() [all …]
|
/linux/drivers/net/ethernet/apm/xgene/ |
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()
|
A D | xgene_enet_hw.c | 591 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/drivers/net/wireless/marvell/mwifiex/ |
A D | sta_event.c | 353 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() 369 tp->tx_pause); in mwifiex_process_uap_tx_pause() 385 tp->peermac, tp->tx_pause, in mwifiex_process_sta_tx_pause() 389 if (tp->tx_pause) in mwifiex_process_sta_tx_pause() 401 if (sta_ptr && sta_ptr->tx_pause != tp->tx_pause) { in mwifiex_process_sta_tx_pause() 402 sta_ptr->tx_pause = tp->tx_pause; in mwifiex_process_sta_tx_pause() [all …]
|
A D | wmm.c | 183 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 …]
|
A D | wmm.h | 120 u8 tx_pause); 122 u8 *mac, u8 tx_pause);
|
/linux/drivers/net/ethernet/freescale/dpaa2/ |
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/qlogic/netxen/ |
A D | netxen_nic_ethtool.c | 490 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() 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() 579 if (pause->tx_pause) in netxen_nic_set_pauseparam() [all …]
|
/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 89 *tx_pause = !(cfg & RPMX_MTI_MAC100X_COMMAND_CONFIG_TX_P_DISABLE); in rpm_lmac_get_pause_frm_status() 93 int rpm_lmac_enadis_pause_frm(void *rpmd, int lmac_id, u8 tx_pause, in rpm_lmac_enadis_pause_frm() argument 111 cfg |= tx_pause ? 0x0 : RPMX_MTI_MAC100X_COMMAND_CONFIG_TX_P_DISABLE; in rpm_lmac_enadis_pause_frm() 115 if (tx_pause) { in rpm_lmac_enadis_pause_frm()
|
A D | rpm.h | 52 int rpm_lmac_get_pause_frm_status(void *cgxd, int lmac_id, u8 *tx_pause, 55 int rpm_lmac_enadis_pause_frm(void *rpmd, int lmac_id, u8 tx_pause,
|
A D | lmac_common.h | 94 u8 *tx_pause, 99 u8 tx_pause,
|
/linux/drivers/net/ethernet/freescale/fman/ |
A D | mac.c | 371 bool *tx_pause) in fman_get_pause_cfg() argument 377 *rx_pause = *tx_pause = false; in fman_get_pause_cfg() 387 *tx_pause = mac_dev->tx_pause_req; in fman_get_pause_cfg() 412 *tx_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 | 384 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()
|
/linux/drivers/net/ethernet/faraday/ |
A D | ftgmac100.c | 105 bool tx_pause; member 237 if (priv->tx_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() 1012 tx_pause = priv->tx_pause; in ftgmac100_adjust_link() 1019 tx_pause == priv->tx_pause) in ftgmac100_adjust_link() 1031 priv->tx_pause = tx_pause; in ftgmac100_adjust_link() 1220 pause->tx_pause = priv->tx_pause; in ftgmac100_get_pauseparam() 1231 priv->tx_pause = pause->tx_pause; in ftgmac100_set_pauseparam() [all …]
|
/linux/drivers/net/ethernet/freescale/dpaa/ |
A D | dpaa_ethtool.c | 158 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()
|
/linux/drivers/net/ethernet/asix/ |
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/amd/xgbe/ |
A D | xgbe-mdio.c | 1064 if (pdata->tx_pause && pdata->rx_pause) in xgbe_phy_fc_string() 1068 else if (pdata->tx_pause) in xgbe_phy_fc_string() 1112 if (pdata->tx_pause != pdata->phy.tx_pause) { in xgbe_phy_adjust_link() 1114 pdata->tx_pause = pdata->phy.tx_pause; in xgbe_phy_adjust_link() 1589 pdata->phy.tx_pause = pdata->tx_pause; in xgbe_phy_init() 1601 if (pdata->tx_pause) { in xgbe_phy_init()
|
/linux/drivers/net/ethernet/intel/ixgb/ |
A D | ixgb_ethtool.c | 143 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/drivers/net/ethernet/qlogic/qlcnic/ |
A D | qlcnic_ethtool.c | 809 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() 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() 911 if (pause->tx_pause) in qlcnic_set_pauseparam() [all …]
|
/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() 55 if (!tx_pause) in bcmgenet_mac_config() 64 if (!priv->tx_pause) in bcmgenet_mac_config()
|
/linux/drivers/net/ethernet/qualcomm/emac/ |
A D | emac-ethtool.c | 176 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()
|