/drivers/net/phy/ |
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()
|
/drivers/net/ethernet/mellanox/mlx4/ |
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()
|
D | mlx4_stats.h | 79 u64 tx_pause; member 108 __be64 tx_pause; member
|
/drivers/net/ethernet/apm/xgene/ |
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()
|
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()
|
/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rpm.c | 128 u8 *tx_pause, u8 *rx_pause) in rpm_lmac_get_pause_frm_status() argument 139 *tx_pause = !(cfg & RPMX_MTI_MAC100X_COMMAND_CONFIG_TX_P_DISABLE); in rpm_lmac_get_pause_frm_status() 225 int rpm_lmac_enadis_pause_frm(void *rpmd, int lmac_id, u8 tx_pause, in rpm_lmac_enadis_pause_frm() argument 243 cfg |= tx_pause ? 0x0 : RPMX_MTI_MAC100X_COMMAND_CONFIG_TX_P_DISABLE; in rpm_lmac_enadis_pause_frm() 247 if (tx_pause) { in rpm_lmac_enadis_pause_frm() 445 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 465 if (tx_pause) { in rpm_lmac_pfc_config() 475 if (!rx_pause && !tx_pause) in rpm_lmac_pfc_config() 487 int rpm_lmac_get_pfc_frm_cfg(void *rpmd, int lmac_id, u8 *tx_pause, u8 *rx_pause) in rpm_lmac_get_pfc_frm_cfg() argument 498 *tx_pause = !(cfg & RPMX_MTI_MAC100X_COMMAND_CONFIG_TX_P_DISABLE); in rpm_lmac_get_pfc_frm_cfg()
|
D | rpm.h | 86 int rpm_lmac_get_pause_frm_status(void *cgxd, int lmac_id, u8 *tx_pause, 89 int rpm_lmac_enadis_pause_frm(void *rpmd, int lmac_id, u8 tx_pause, 96 int rpm_lmac_pfc_config(void *rpmd, int lmac_id, u8 tx_pause, u8 rx_pause, 98 int rpm_lmac_get_pfc_frm_cfg(void *rpmd, int lmac_id, u8 *tx_pause,
|
D | lmac_common.h | 99 u8 *tx_pause, 104 u8 tx_pause, 119 u8 tx_pause, u8 rx_pause, u16 pfc_en); 122 u8 *tx_pause, u8 *rx_pause);
|
D | cgx.h | 159 u8 *tx_pause, u8 *rx_pause); 161 u8 tx_pause, u8 rx_pause); 179 int cgx_lmac_pfc_config(void *cgxd, int lmac_id, u8 tx_pause, u8 rx_pause, 181 int cgx_lmac_get_pfc_frm_cfg(void *cgxd, int lmac_id, u8 *tx_pause, 183 int verify_lmac_fc_cfg(void *cgxd, int lmac_id, u8 tx_pause, u8 rx_pause,
|
D | cgx.c | 615 u8 *tx_pause, u8 *rx_pause) in cgx_lmac_get_pause_frm_status() argument 630 *tx_pause = !!(cfg & CGX_SMUX_TX_CTL_L2P_BP_CONV); in cgx_lmac_get_pause_frm_status() 638 u8 rx_pause, tx_pause; in cgx_lmac_enadis_rx_pause_fwding() local 654 cgx_lmac_get_pause_frm_status(cgx, lmac_id, &rx_pause, &tx_pause); in cgx_lmac_enadis_rx_pause_fwding() 806 u8 tx_pause, u8 rx_pause) in cgx_lmac_enadis_pause_frm() argument 824 cfg |= tx_pause ? CGX_SMUX_TX_CTL_L2P_BP_CONV : 0x0; in cgx_lmac_enadis_pause_frm() 828 if (tx_pause) { in cgx_lmac_enadis_pause_frm() 890 int verify_lmac_fc_cfg(void *cgxd, int lmac_id, u8 tx_pause, u8 rx_pause, in verify_lmac_fc_cfg() argument 905 if (!tx_pause) in verify_lmac_fc_cfg() 917 if (!tx_pause && bitmap_weight(lmac->tx_fc_pfvf_bmap.bmap, lmac->tx_fc_pfvf_bmap.max)) { in verify_lmac_fc_cfg() [all …]
|
D | rvu_cgx.c | 933 int rvu_cgx_cfg_pause_frm(struct rvu *rvu, u16 pcifunc, u8 tx_pause, u8 rx_pause) in rvu_cgx_cfg_pause_frm() argument 962 if (verify_lmac_fc_cfg(cgxd, lmac_id, tx_pause, rx_pause, in rvu_cgx_cfg_pause_frm() 969 return mac_ops->mac_enadis_pause_frm(cgxd, lmac_id, tx_pause, rx_pause); in rvu_cgx_cfg_pause_frm() 993 err = rvu_cgx_cfg_pause_frm(rvu, req->hdr.pcifunc, req->tx_pause, req->rx_pause); in rvu_mbox_handler_cgx_cfg_pause_frm() 995 mac_ops->mac_get_pause_frm_status(cgxd, lmac_id, &rsp->tx_pause, &rsp->rx_pause); in rvu_mbox_handler_cgx_cfg_pause_frm() 1192 int rvu_cgx_prio_flow_ctrl_cfg(struct rvu *rvu, u16 pcifunc, u8 tx_pause, in rvu_cgx_prio_flow_ctrl_cfg() argument 1219 if (verify_lmac_fc_cfg(cgxd, lmac_id, tx_pause, rx_pause, in rvu_cgx_prio_flow_ctrl_cfg() 1226 return mac_ops->pfc_config(cgxd, lmac_id, tx_pause, rx_pause, pfc_en); in rvu_cgx_prio_flow_ctrl_cfg() 1249 err = rvu_cgx_prio_flow_ctrl_cfg(rvu, req->hdr.pcifunc, req->tx_pause, in rvu_mbox_handler_cgx_prio_flow_ctrl_cfg() 1252 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()
|
/drivers/net/wireless/marvell/mwifiex/ |
D | sta_event.c | 341 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 …]
|
D | wmm.c | 171 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 …]
|
D | wmm.h | 108 u8 tx_pause); 110 u8 *mac, u8 tx_pause);
|
/drivers/net/ethernet/freescale/dpaa2/ |
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()
|
/drivers/net/ethernet/qlogic/netxen/ |
D | netxen_nic_ethtool.c | 494 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() 515 pause->tx_pause = !(netxen_xg_get_xg1_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() [all …]
|
/drivers/net/ethernet/oki-semi/pch_gbe/ |
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()
|
/drivers/net/ethernet/faraday/ |
D | ftgmac100.c | 105 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() 1130 phy_set_asym_pause(phydev, pause->rx_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() [all …]
|
/drivers/net/ethernet/freescale/dpaa/ |
D | dpaa_ethtool.c | 132 epause->tx_pause = mac_dev->tx_pause_active; in dpaa_get_pauseparam() 140 bool rx_pause, tx_pause; in dpaa_set_pauseparam() local 162 mac_dev->tx_pause_req = !!epause->tx_pause; in dpaa_set_pauseparam() 168 phy_set_asym_pause(phydev, epause->rx_pause, epause->tx_pause); in dpaa_set_pauseparam() 170 fman_get_pause_cfg(mac_dev, &rx_pause, &tx_pause); in dpaa_set_pauseparam() 171 err = fman_set_mac_active_pause(mac_dev, rx_pause, tx_pause); in dpaa_set_pauseparam()
|
/drivers/net/ethernet/asix/ |
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()
|
/drivers/net/ethernet/freescale/fman/ |
D | mac.c | 147 bool *tx_pause) in fman_get_pause_cfg() argument 153 *rx_pause = *tx_pause = false; in fman_get_pause_cfg() 163 *tx_pause = mac_dev->tx_pause_req; in fman_get_pause_cfg() 188 *tx_pause = true; in fman_get_pause_cfg()
|
/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_phylink.c | 52 bool tx_pause, bool rx_pause) in lan966x_phylink_mac_link_up() argument 60 port_config->pause |= tx_pause ? MLO_PAUSE_TX : 0; in lan966x_phylink_mac_link_up()
|
/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_dcbnl.c | 304 req->tx_pause = true; in otx2_config_priority_flow_ctrl() 307 req->tx_pause = false; in otx2_config_priority_flow_ctrl() 314 if (req->rx_pause != rsp->rx_pause || req->tx_pause != rsp->tx_pause) { in otx2_config_priority_flow_ctrl()
|
/drivers/net/ethernet/intel/ixgb/ |
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()
|
/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_phylink.c | 50 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()
|