/kernel/linux/linux-5.10/drivers/net/phy/ |
H A D | linkmode.c | 10 * @rx_pause: pointer to bool to indicate whether receive pause should be 26 bool *tx_pause, bool *rx_pause) in linkmode_resolve_pause() 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() 50 * @rx: boolean from ethtool struct ethtool_pauseparam rx_pause member 24 linkmode_resolve_pause(const unsigned long *local_adv, const unsigned long *partner_adv, bool *tx_pause, bool *rx_pause) linkmode_resolve_pause() argument
|
/kernel/linux/linux-6.6/drivers/net/phy/ |
H A D | linkmode.c | 10 * @rx_pause: pointer to bool to indicate whether receive pause should be 26 bool *tx_pause, bool *rx_pause) in linkmode_resolve_pause() 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() 50 * @rx: boolean from ethtool struct ethtool_pauseparam rx_pause member 24 linkmode_resolve_pause(const unsigned long *local_adv, const unsigned long *partner_adv, bool *tx_pause, bool *rx_pause) linkmode_resolve_pause() argument
|
/kernel/linux/linux-5.10/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() 417 u32 tx_pause, tx_ppp, rx_pause, rx_ppp; in mlx4_en_dcbnl_ieee_setpfc() local 426 rx_pause in mlx4_en_dcbnl_ieee_setpfc() [all...] |
H A D | mlx4_stats.h | 79 u64 rx_pause; member 114 __be64 rx_pause; member
|
/kernel/linux/linux-6.6/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() 417 u32 tx_pause, tx_ppp, rx_pause, rx_ppp; in mlx4_en_dcbnl_ieee_setpfc() local 426 rx_pause in mlx4_en_dcbnl_ieee_setpfc() [all...] |
H A D | mlx4_stats.h | 65 u64 rx_pause; member 100 __be64 rx_pause; member
|
/kernel/linux/linux-6.6/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | rpm.c | 190 u8 *tx_pause, u8 *rx_pause) in rpm_lmac_get_pause_frm_status() 200 *rx_pause = !(cfg & RPMX_MTI_MAC100X_COMMAND_CONFIG_RX_P_DISABLE); in rpm_lmac_get_pause_frm_status() 287 static void rpm2_lmac_cfg_bp(rpm_t *rpm, int lmac_id, u8 tx_pause, u8 rx_pause) in rpm2_lmac_cfg_bp() argument 307 static void rpm_lmac_cfg_bp(rpm_t *rpm, int lmac_id, u8 tx_pause, u8 rx_pause) in rpm_lmac_cfg_bp() argument 328 u8 rx_pause) in rpm_lmac_enadis_pause_frm() 338 cfg |= rx_pause ? 0x0 : RPMX_MTI_MAC100X_COMMAND_CONFIG_RX_P_DISABLE; in rpm_lmac_enadis_pause_frm() 340 cfg |= rx_pause ? 0x0 : RPMX_MTI_MAC100X_COMMAND_CONFIG_PAUSE_IGNORE; in rpm_lmac_enadis_pause_frm() 349 rpm2_lmac_cfg_bp(rpm, lmac_id, tx_pause, rx_pause); in rpm_lmac_enadis_pause_frm() 351 rpm_lmac_cfg_bp(rpm, lmac_id, tx_pause, rx_pause); in rpm_lmac_enadis_pause_frm() 612 int rpm_lmac_pfc_config(void *rpmd, int lmac_id, u8 tx_pause, u8 rx_pause, u1 argument 189 rpm_lmac_get_pause_frm_status(void *rpmd, int lmac_id, u8 *tx_pause, u8 *rx_pause) rpm_lmac_get_pause_frm_status() argument 327 rpm_lmac_enadis_pause_frm(void *rpmd, int lmac_id, u8 tx_pause, u8 rx_pause) rpm_lmac_enadis_pause_frm() argument 656 rpm_lmac_get_pfc_frm_cfg(void *rpmd, int lmac_id, u8 *tx_pause, u8 *rx_pause) rpm_lmac_get_pfc_frm_cfg() argument [all...] |
H A D | lmac_common.h | 107 u8 *rx_pause); 112 u8 rx_pause); 126 u8 tx_pause, u8 rx_pause, u16 pfc_en); 129 u8 *tx_pause, u8 *rx_pause);
|
H A D | cgx.h | 160 u8 *tx_pause, u8 *rx_pause); 162 u8 tx_pause, u8 rx_pause); 180 int cgx_lmac_pfc_config(void *cgxd, int lmac_id, u8 tx_pause, u8 rx_pause, 183 u8 *rx_pause); 184 int verify_lmac_fc_cfg(void *cgxd, int lmac_id, u8 tx_pause, u8 rx_pause,
|
H A D | rpm.h | 120 u8 *rx_pause); 123 u8 rx_pause); 129 int rpm_lmac_pfc_config(void *rpmd, int lmac_id, u8 tx_pause, u8 rx_pause, 132 u8 *rx_pause);
|
H A D | rvu_cgx.c | 951 int rvu_cgx_cfg_pause_frm(struct rvu *rvu, u16 pcifunc, u8 tx_pause, u8 rx_pause) in rvu_cgx_cfg_pause_frm() argument 980 if (verify_lmac_fc_cfg(cgxd, lmac_id, tx_pause, rx_pause, in rvu_cgx_cfg_pause_frm() 987 return mac_ops->mac_enadis_pause_frm(cgxd, lmac_id, tx_pause, rx_pause); in rvu_cgx_cfg_pause_frm() 1011 err = rvu_cgx_cfg_pause_frm(rvu, req->hdr.pcifunc, req->tx_pause, req->rx_pause); in rvu_mbox_handler_cgx_cfg_pause_frm() 1013 mac_ops->mac_get_pause_frm_status(cgxd, lmac_id, &rsp->tx_pause, &rsp->rx_pause); in rvu_mbox_handler_cgx_cfg_pause_frm() 1218 u8 rx_pause, u16 pfc_en) in rvu_cgx_prio_flow_ctrl_cfg() 1244 if (verify_lmac_fc_cfg(cgxd, lmac_id, tx_pause, rx_pause, in rvu_cgx_prio_flow_ctrl_cfg() 1251 return mac_ops->pfc_config(cgxd, lmac_id, tx_pause, rx_pause, pfc_en); in rvu_cgx_prio_flow_ctrl_cfg() 1275 req->rx_pause, req->pfc_en); in rvu_mbox_handler_cgx_prio_flow_ctrl_cfg() 1277 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() 1217 rvu_cgx_prio_flow_ctrl_cfg(struct rvu *rvu, u16 pcifunc, u8 tx_pause, u8 rx_pause, u16 pfc_en) rvu_cgx_prio_flow_ctrl_cfg() argument [all...] |
/kernel/linux/linux-5.10/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()
|
H 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()
|
/kernel/linux/linux-6.6/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()
|
H 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()
|
/kernel/linux/linux-5.10/drivers/net/netdevsim/ |
H A D | ethtool.c | 28 pause->rx_pause = ns->ethtool.rx; in nsim_get_pauseparam() 40 ns->ethtool.rx = pause->rx_pause; in nsim_set_pauseparam()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/fman/ |
H A D | mac.c | 373 * @rx_pause: Return value for RX setting 381 void fman_get_pause_cfg(struct mac_device *mac_dev, bool *rx_pause, in fman_get_pause_cfg() argument 388 *rx_pause = *tx_pause = false; in fman_get_pause_cfg() 397 *rx_pause = mac_dev->rx_pause_req; in fman_get_pause_cfg() 421 *rx_pause = true; in fman_get_pause_cfg() 435 bool rx_pause, tx_pause; in adjust_link_dtsec() local 446 fman_get_pause_cfg(mac_dev, &rx_pause, &tx_pause); in adjust_link_dtsec() 447 err = fman_set_mac_active_pause(mac_dev, rx_pause, tx_pause); in adjust_link_dtsec() 457 bool rx_pause, tx_pause; in adjust_link_memac() local 463 fman_get_pause_cfg(mac_dev, &rx_pause, in adjust_link_memac() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/oki-semi/pch_gbe/ |
H A D | pch_gbe_ethtool.c | 380 pause->rx_pause = 1; in pch_gbe_get_pauseparam() 384 pause->rx_pause = 1; in pch_gbe_get_pauseparam() 405 if ((pause->rx_pause) && (pause->tx_pause)) in pch_gbe_set_pauseparam() 407 else 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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/freescale/dpaa/ |
H 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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-6.6/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()
|
/kernel/linux/linux-5.10/drivers/net/ethernet/faraday/ |
H A D | ftgmac100.c | 106 bool rx_pause; member 234 if (priv->rx_pause) in ftgmac100_config_pause() 999 bool tx_pause, rx_pause; in ftgmac100_adjust_link() local 1010 rx_pause = tx_pause = phydev->pause; in ftgmac100_adjust_link() 1012 tx_pause = !rx_pause; in ftgmac100_adjust_link() 1014 rx_pause = priv->rx_pause; in ftgmac100_adjust_link() 1021 rx_pause == priv->rx_pause && in ftgmac100_adjust_link() 1033 priv->rx_pause in ftgmac100_adjust_link() [all...] |
/kernel/linux/linux-6.6/drivers/net/ethernet/faraday/ |
H A D | ftgmac100.c | 106 bool rx_pause; member 237 if (priv->rx_pause) in ftgmac100_config_pause() 1122 pause->rx_pause = priv->rx_pause; in ftgmac100_get_pauseparam() 1133 priv->rx_pause = pause->rx_pause; in ftgmac100_set_pauseparam() 1136 phy_set_asym_pause(phydev, pause->rx_pause, pause->tx_pause); in ftgmac100_set_pauseparam() 1367 bool tx_pause, rx_pause; in ftgmac100_adjust_link() local 1378 rx_pause = tx_pause = phydev->pause; in ftgmac100_adjust_link() 1380 tx_pause = !rx_pause; in ftgmac100_adjust_link() [all...] |
/kernel/linux/linux-5.10/drivers/net/ethernet/marvell/octeontx2/af/ |
H A D | cgx.h | 144 u8 *tx_pause, u8 *rx_pause); 146 u8 tx_pause, u8 rx_pause);
|
/kernel/linux/linux-6.6/drivers/net/ethernet/microchip/lan966x/ |
H A D | lan966x_phylink.c | 51 bool tx_pause, bool rx_pause) in lan966x_phylink_mac_link_up() 60 port_config->pause |= rx_pause ? MLO_PAUSE_RX : 0; in lan966x_phylink_mac_link_up() 46 lan966x_phylink_mac_link_up(struct phylink_config *config, struct phy_device *phy, unsigned int mode, phy_interface_t interface, int speed, int duplex, bool tx_pause, bool rx_pause) lan966x_phylink_mac_link_up() argument
|