Home
last modified time | relevance | path

Searched refs:epause (Results 1 – 13 of 13) sorted by relevance

/linux-6.1.9/drivers/net/ethernet/freescale/dpaa/
Ddpaa_ethtool.c119 struct ethtool_pauseparam *epause) in dpaa_get_pauseparam() argument
130 epause->autoneg = mac_dev->autoneg_pause; in dpaa_get_pauseparam()
131 epause->rx_pause = mac_dev->rx_pause_active; in dpaa_get_pauseparam()
132 epause->tx_pause = mac_dev->tx_pause_active; in dpaa_get_pauseparam()
136 struct ethtool_pauseparam *epause) in dpaa_set_pauseparam() argument
153 if (!phy_validate_pause(phydev, epause)) in dpaa_set_pauseparam()
160 mac_dev->autoneg_pause = !!epause->autoneg; in dpaa_set_pauseparam()
161 mac_dev->rx_pause_req = !!epause->rx_pause; in dpaa_set_pauseparam()
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()
/linux-6.1.9/drivers/net/ethernet/freescale/
Dgianfar_ethtool.c450 struct ethtool_pauseparam *epause) in gfar_gpauseparam() argument
454 epause->autoneg = !!priv->pause_aneg_en; in gfar_gpauseparam()
455 epause->rx_pause = !!priv->rx_pause_en; in gfar_gpauseparam()
456 epause->tx_pause = !!priv->tx_pause_en; in gfar_gpauseparam()
460 struct ethtool_pauseparam *epause) in gfar_spauseparam() argument
469 if (!phy_validate_pause(phydev, epause)) in gfar_spauseparam()
473 phy_set_asym_pause(phydev, epause->rx_pause, epause->tx_pause); in gfar_spauseparam()
474 if (epause->rx_pause) { in gfar_spauseparam()
477 if (epause->tx_pause) { in gfar_spauseparam()
480 } else if (epause->tx_pause) { in gfar_spauseparam()
[all …]
/linux-6.1.9/drivers/net/ethernet/broadcom/bnx2x/
Dbnx2x_ethtool.c1981 struct ethtool_pauseparam *epause) in bnx2x_get_pauseparam() argument
1987 epause->autoneg = (bp->link_params.req_flow_ctrl[cfg_idx] == in bnx2x_get_pauseparam()
1990 if (!epause->autoneg) in bnx2x_get_pauseparam()
1995 epause->rx_pause = ((cfg_reg & BNX2X_FLOW_CTRL_RX) == in bnx2x_get_pauseparam()
1997 epause->tx_pause = ((cfg_reg & BNX2X_FLOW_CTRL_TX) == in bnx2x_get_pauseparam()
2002 epause->cmd, epause->autoneg, epause->rx_pause, epause->tx_pause); in bnx2x_get_pauseparam()
2006 struct ethtool_pauseparam *epause) in bnx2x_set_pauseparam() argument
2015 epause->cmd, epause->autoneg, epause->rx_pause, epause->tx_pause); in bnx2x_set_pauseparam()
2019 if (epause->rx_pause) in bnx2x_set_pauseparam()
2022 if (epause->tx_pause) in bnx2x_set_pauseparam()
[all …]
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb/
Dcxgb2.c673 struct ethtool_pauseparam *epause) in get_pauseparam() argument
678 epause->autoneg = (p->link_config.requested_fc & PAUSE_AUTONEG) != 0; in get_pauseparam()
679 epause->rx_pause = (p->link_config.fc & PAUSE_RX) != 0; in get_pauseparam()
680 epause->tx_pause = (p->link_config.fc & PAUSE_TX) != 0; in get_pauseparam()
684 struct ethtool_pauseparam *epause) in set_pauseparam() argument
690 if (epause->autoneg == AUTONEG_DISABLE) in set_pauseparam()
697 if (epause->rx_pause) in set_pauseparam()
699 if (epause->tx_pause) in set_pauseparam()
/linux-6.1.9/drivers/net/ethernet/qlogic/qede/
Dqede_ethtool.c949 struct ethtool_pauseparam *epause) in qede_get_pauseparam() argument
958 epause->autoneg = true; in qede_get_pauseparam()
960 epause->rx_pause = true; in qede_get_pauseparam()
962 epause->tx_pause = true; in qede_get_pauseparam()
966 epause->cmd, epause->autoneg, epause->rx_pause, in qede_get_pauseparam()
967 epause->tx_pause); in qede_get_pauseparam()
971 struct ethtool_pauseparam *epause) in qede_set_pauseparam() argument
989 if (epause->autoneg) { in qede_set_pauseparam()
998 if (epause->rx_pause) in qede_set_pauseparam()
1000 if (epause->tx_pause) in qede_set_pauseparam()
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb4/
Dcxgb4_ethtool.c861 struct ethtool_pauseparam *epause) in get_pauseparam() argument
865 epause->autoneg = (p->link_cfg.requested_fc & PAUSE_AUTONEG) != 0; in get_pauseparam()
866 epause->rx_pause = (p->link_cfg.advertised_fc & PAUSE_RX) != 0; in get_pauseparam()
867 epause->tx_pause = (p->link_cfg.advertised_fc & PAUSE_TX) != 0; in get_pauseparam()
871 struct ethtool_pauseparam *epause) in set_pauseparam() argument
876 if (epause->autoneg == AUTONEG_DISABLE) in set_pauseparam()
883 if (epause->rx_pause) in set_pauseparam()
885 if (epause->tx_pause) in set_pauseparam()
/linux-6.1.9/drivers/net/ethernet/broadcom/
Db44.c2006 struct ethtool_pauseparam *epause) in b44_get_pauseparam() argument
2010 epause->autoneg = in b44_get_pauseparam()
2012 epause->rx_pause = in b44_get_pauseparam()
2014 epause->tx_pause = in b44_get_pauseparam()
2019 struct ethtool_pauseparam *epause) in b44_set_pauseparam() argument
2024 if (epause->autoneg) in b44_set_pauseparam()
2028 if (epause->rx_pause) in b44_set_pauseparam()
2032 if (epause->tx_pause) in b44_set_pauseparam()
Dtg3.c12475 static void tg3_get_pauseparam(struct net_device *dev, struct ethtool_pauseparam *epause) in tg3_get_pauseparam() argument
12479 epause->autoneg = !!tg3_flag(tp, PAUSE_AUTONEG); in tg3_get_pauseparam()
12482 epause->rx_pause = 1; in tg3_get_pauseparam()
12484 epause->rx_pause = 0; in tg3_get_pauseparam()
12487 epause->tx_pause = 1; in tg3_get_pauseparam()
12489 epause->tx_pause = 0; in tg3_get_pauseparam()
12492 static int tg3_set_pauseparam(struct net_device *dev, struct ethtool_pauseparam *epause) in tg3_set_pauseparam() argument
12506 if (!phy_validate_pause(phydev, epause)) in tg3_set_pauseparam()
12510 phy_set_asym_pause(phydev, epause->rx_pause, epause->tx_pause); in tg3_set_pauseparam()
12511 if (epause->rx_pause) { in tg3_set_pauseparam()
[all …]
Dbnx2.c7414 bnx2_get_pauseparam(struct net_device *dev, struct ethtool_pauseparam *epause) in bnx2_get_pauseparam() argument
7418 epause->autoneg = ((bp->autoneg & AUTONEG_FLOW_CTRL) != 0); in bnx2_get_pauseparam()
7419 epause->rx_pause = ((bp->flow_ctrl & FLOW_CTRL_RX) != 0); in bnx2_get_pauseparam()
7420 epause->tx_pause = ((bp->flow_ctrl & FLOW_CTRL_TX) != 0); in bnx2_get_pauseparam()
7424 bnx2_set_pauseparam(struct net_device *dev, struct ethtool_pauseparam *epause) in bnx2_set_pauseparam() argument
7429 if (epause->rx_pause) in bnx2_set_pauseparam()
7431 if (epause->tx_pause) in bnx2_set_pauseparam()
7434 if (epause->autoneg) { in bnx2_set_pauseparam()
/linux-6.1.9/drivers/net/ethernet/atheros/atlx/
Datl1.c3540 struct ethtool_pauseparam *epause) in atl1_get_pauseparam() argument
3547 epause->autoneg = AUTONEG_ENABLE; in atl1_get_pauseparam()
3549 epause->autoneg = AUTONEG_DISABLE; in atl1_get_pauseparam()
3551 epause->rx_pause = 1; in atl1_get_pauseparam()
3552 epause->tx_pause = 1; in atl1_get_pauseparam()
3556 struct ethtool_pauseparam *epause) in atl1_set_pauseparam() argument
3563 epause->autoneg = AUTONEG_ENABLE; in atl1_set_pauseparam()
3565 epause->autoneg = AUTONEG_DISABLE; in atl1_set_pauseparam()
3568 epause->rx_pause = 1; in atl1_set_pauseparam()
3569 epause->tx_pause = 1; in atl1_set_pauseparam()
/linux-6.1.9/drivers/net/ethernet/broadcom/genet/
Dbcmgenet.c939 struct ethtool_pauseparam *epause) in bcmgenet_get_pauseparam() argument
946 epause->autoneg = priv->autoneg_pause; in bcmgenet_get_pauseparam()
951 epause->tx_pause = !(umac_cmd & CMD_TX_PAUSE_IGNORE); in bcmgenet_get_pauseparam()
952 epause->rx_pause = !(umac_cmd & CMD_RX_PAUSE_IGNORE); in bcmgenet_get_pauseparam()
955 epause->tx_pause = priv->tx_pause; in bcmgenet_get_pauseparam()
956 epause->rx_pause = priv->rx_pause; in bcmgenet_get_pauseparam()
961 struct ethtool_pauseparam *epause) in bcmgenet_set_pauseparam() argument
968 if (!phy_validate_pause(dev->phydev, epause)) in bcmgenet_set_pauseparam()
971 priv->autoneg_pause = !!epause->autoneg; in bcmgenet_set_pauseparam()
972 priv->tx_pause = !!epause->tx_pause; in bcmgenet_set_pauseparam()
[all …]
/linux-6.1.9/drivers/net/ethernet/chelsio/cxgb3/
Dcxgb3_main.c1914 struct ethtool_pauseparam *epause) in get_pauseparam() argument
1918 epause->autoneg = (p->link_config.requested_fc & PAUSE_AUTONEG) != 0; in get_pauseparam()
1919 epause->rx_pause = (p->link_config.fc & PAUSE_RX) != 0; in get_pauseparam()
1920 epause->tx_pause = (p->link_config.fc & PAUSE_TX) != 0; in get_pauseparam()
1924 struct ethtool_pauseparam *epause) in set_pauseparam() argument
1929 if (epause->autoneg == AUTONEG_DISABLE) in set_pauseparam()
1936 if (epause->rx_pause) in set_pauseparam()
1938 if (epause->tx_pause) in set_pauseparam()
/linux-6.1.9/drivers/net/ethernet/broadcom/bnxt/
Dbnxt_ethtool.c2074 struct ethtool_pauseparam *epause) in bnxt_get_pauseparam() argument
2081 epause->autoneg = !!(link_info->autoneg & BNXT_AUTONEG_FLOW_CTRL); in bnxt_get_pauseparam()
2082 epause->rx_pause = !!(link_info->req_flow_ctrl & BNXT_LINK_PAUSE_RX); in bnxt_get_pauseparam()
2083 epause->tx_pause = !!(link_info->req_flow_ctrl & BNXT_LINK_PAUSE_TX); in bnxt_get_pauseparam()
2103 struct ethtool_pauseparam *epause) in bnxt_set_pauseparam() argument
2113 if (epause->autoneg) { in bnxt_set_pauseparam()
2130 if (epause->rx_pause) in bnxt_set_pauseparam()
2133 if (epause->tx_pause) in bnxt_set_pauseparam()