/linux-6.1.9/drivers/net/phy/ |
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()
|
D | phylink.c | 936 bool tx_pause, rx_pause; in phylink_resolve_flow() local 942 &tx_pause, &rx_pause); in phylink_resolve_flow() 945 if (rx_pause) in phylink_resolve_flow() 1193 bool rx_pause; in phylink_link_up() local 1197 rx_pause = !!(link_state.pause & MLO_PAUSE_RX); in phylink_link_up() 1207 rx_pause = true; in phylink_link_up() 1228 !!(link_state.pause & MLO_PAUSE_TX), rx_pause); in phylink_link_up() 1558 bool tx_pause, rx_pause; in phylink_phy_change() local 1560 phy_get_pause(phydev, &tx_pause, &rx_pause); in phylink_phy_change() 1569 if (rx_pause) in phylink_phy_change() [all …]
|
/linux-6.1.9/drivers/net/ethernet/apm/xgene/ |
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()
|
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-6.1.9/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 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()
|
D | mlx4_stats.h | 65 u64 rx_pause; member 100 __be64 rx_pause; member
|
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/af/ |
D | rpm.h | 87 u8 *rx_pause); 90 u8 rx_pause); 96 int rpm_lmac_pfc_config(void *rpmd, int lmac_id, u8 tx_pause, u8 rx_pause, 99 u8 *rx_pause);
|
D | rpm.c | 128 u8 *tx_pause, u8 *rx_pause) in rpm_lmac_get_pause_frm_status() argument 138 *rx_pause = !(cfg & RPMX_MTI_MAC100X_COMMAND_CONFIG_RX_P_DISABLE); in rpm_lmac_get_pause_frm_status() 226 u8 rx_pause) in rpm_lmac_enadis_pause_frm() argument 236 cfg |= rx_pause ? 0x0 : RPMX_MTI_MAC100X_COMMAND_CONFIG_RX_P_DISABLE; in rpm_lmac_enadis_pause_frm() 238 cfg |= rx_pause ? 0x0 : RPMX_MTI_MAC100X_COMMAND_CONFIG_PAUSE_IGNORE; in rpm_lmac_enadis_pause_frm() 440 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 452 if (rx_pause) { in rpm_lmac_pfc_config() 472 if (!rx_pause && !tx_pause) in rpm_lmac_pfc_config() 484 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 494 *rx_pause = !(cfg & RPMX_MTI_MAC100X_COMMAND_CONFIG_RX_P_DISABLE); in rpm_lmac_get_pfc_frm_cfg()
|
D | lmac_common.h | 100 u8 *rx_pause); 105 u8 rx_pause); 119 u8 tx_pause, u8 rx_pause, u16 pfc_en); 122 u8 *tx_pause, u8 *rx_pause);
|
D | cgx.h | 161 u8 *tx_pause, u8 *rx_pause); 163 u8 tx_pause, u8 rx_pause); 181 int cgx_lmac_pfc_config(void *cgxd, int lmac_id, u8 tx_pause, u8 rx_pause, 184 u8 *rx_pause); 185 int verify_lmac_fc_cfg(void *cgxd, int lmac_id, u8 tx_pause, u8 rx_pause,
|
D | rvu_cgx.c | 910 int rvu_cgx_cfg_pause_frm(struct rvu *rvu, u16 pcifunc, u8 tx_pause, u8 rx_pause) in rvu_cgx_cfg_pause_frm() argument 939 if (verify_lmac_fc_cfg(cgxd, lmac_id, tx_pause, rx_pause, in rvu_cgx_cfg_pause_frm() 946 return mac_ops->mac_enadis_pause_frm(cgxd, lmac_id, tx_pause, rx_pause); in rvu_cgx_cfg_pause_frm() 970 err = rvu_cgx_cfg_pause_frm(rvu, req->hdr.pcifunc, req->tx_pause, req->rx_pause); in rvu_mbox_handler_cgx_cfg_pause_frm() 972 mac_ops->mac_get_pause_frm_status(cgxd, lmac_id, &rsp->tx_pause, &rsp->rx_pause); in rvu_mbox_handler_cgx_cfg_pause_frm() 1170 u8 rx_pause, u16 pfc_en) in rvu_cgx_prio_flow_ctrl_cfg() argument 1196 if (verify_lmac_fc_cfg(cgxd, lmac_id, tx_pause, rx_pause, in rvu_cgx_prio_flow_ctrl_cfg() 1203 return mac_ops->pfc_config(cgxd, lmac_id, tx_pause, rx_pause, pfc_en); in rvu_cgx_prio_flow_ctrl_cfg() 1227 req->rx_pause, req->pfc_en); in rvu_mbox_handler_cgx_prio_flow_ctrl_cfg() 1229 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()
|
D | cgx.c | 608 u8 *tx_pause, u8 *rx_pause) in cgx_lmac_get_pause_frm_status() argument 620 *rx_pause = !!(cfg & CGX_SMUX_RX_FRM_CTL_CTL_BCK); in cgx_lmac_get_pause_frm_status() 631 u8 rx_pause, tx_pause; in cgx_lmac_enadis_rx_pause_fwding() local 647 cgx_lmac_get_pause_frm_status(cgx, lmac_id, &rx_pause, &tx_pause); in cgx_lmac_enadis_rx_pause_fwding() 648 is_pfc_enabled = rx_pause ? false : true; in cgx_lmac_enadis_rx_pause_fwding() 799 u8 tx_pause, u8 rx_pause) in cgx_lmac_enadis_pause_frm() argument 812 cfg |= rx_pause ? CGX_SMUX_RX_FRM_CTL_CTL_BCK : 0x0; in cgx_lmac_enadis_pause_frm() 883 int verify_lmac_fc_cfg(void *cgxd, int lmac_id, u8 tx_pause, u8 rx_pause, in verify_lmac_fc_cfg() argument 893 if (!rx_pause) in verify_lmac_fc_cfg() 904 if (!rx_pause && bitmap_weight(lmac->rx_fc_pfvf_bmap.bmap, lmac->rx_fc_pfvf_bmap.max)) { in verify_lmac_fc_cfg() [all …]
|
/linux-6.1.9/drivers/net/ethernet/oki-semi/pch_gbe/ |
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-6.1.9/drivers/net/ethernet/faraday/ |
D | ftgmac100.c | 106 bool rx_pause; member 231 if (priv->rx_pause) in ftgmac100_config_pause() 1116 pause->rx_pause = priv->rx_pause; in ftgmac100_get_pauseparam() 1127 priv->rx_pause = pause->rx_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() 1376 rx_pause = priv->rx_pause; in ftgmac100_adjust_link() 1383 rx_pause == priv->rx_pause && in ftgmac100_adjust_link() [all …]
|
/linux-6.1.9/drivers/net/ethernet/asix/ |
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-6.1.9/drivers/net/ethernet/freescale/dpaa/ |
D | dpaa_ethtool.c | 131 epause->rx_pause = mac_dev->rx_pause_active; in dpaa_get_pauseparam() 140 bool rx_pause, tx_pause; in dpaa_set_pauseparam() local 161 mac_dev->rx_pause_req = !!epause->rx_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()
|
/linux-6.1.9/drivers/net/ethernet/microchip/lan966x/ |
D | lan966x_phylink.c | 52 bool tx_pause, bool rx_pause) in lan966x_phylink_mac_link_up() argument 61 port_config->pause |= rx_pause ? MLO_PAUSE_RX : 0; in lan966x_phylink_mac_link_up()
|
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb3/ |
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-6.1.9/drivers/net/ethernet/freescale/fman/ |
D | mac.c | 146 void fman_get_pause_cfg(struct mac_device *mac_dev, bool *rx_pause, in fman_get_pause_cfg() argument 153 *rx_pause = *tx_pause = false; in fman_get_pause_cfg() 162 *rx_pause = mac_dev->rx_pause_req; in fman_get_pause_cfg() 186 *rx_pause = true; in fman_get_pause_cfg()
|
/linux-6.1.9/drivers/net/ethernet/microchip/sparx5/ |
D | sparx5_phylink.c | 50 bool tx_pause, bool rx_pause) in sparx5_phylink_mac_link_up() argument 60 conf.pause |= rx_pause ? MLO_PAUSE_RX : 0; in sparx5_phylink_mac_link_up()
|
/linux-6.1.9/drivers/net/ethernet/marvell/octeontx2/nic/ |
D | otx2_dcbnl.c | 310 req->rx_pause = true; in otx2_config_priority_flow_ctrl() 313 req->rx_pause = false; in otx2_config_priority_flow_ctrl() 321 if (req->rx_pause != rsp->rx_pause || req->tx_pause != rsp->tx_pause) { in otx2_config_priority_flow_ctrl()
|
/linux-6.1.9/drivers/net/ethernet/intel/ixgb/ |
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-6.1.9/drivers/net/ethernet/amd/xgbe/ |
D | xgbe-mdio.c | 1067 if (pdata->tx_pause && pdata->rx_pause) in xgbe_phy_fc_string() 1069 else if (pdata->rx_pause) in xgbe_phy_fc_string() 1121 if (pdata->rx_pause != pdata->phy.rx_pause) { in xgbe_phy_adjust_link() 1123 pdata->rx_pause = pdata->phy.rx_pause; in xgbe_phy_adjust_link() 1616 pdata->phy.rx_pause = pdata->rx_pause; in xgbe_phy_init() 1622 if (pdata->rx_pause) { in xgbe_phy_init()
|
/linux-6.1.9/drivers/net/ethernet/qualcomm/emac/ |
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-6.1.9/net/ethtool/ |
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()
|