Home
last modified time | relevance | path

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

/openbmc/linux/drivers/net/ethernet/freescale/
H A Dgianfar_ethtool.c456 epause->autoneg = !!priv->pause_aneg_en; in gfar_gpauseparam()
457 epause->rx_pause = !!priv->rx_pause_en; in gfar_gpauseparam()
458 epause->tx_pause = !!priv->tx_pause_en; in gfar_gpauseparam()
462 struct ethtool_pauseparam *epause) in gfar_spauseparam() argument
471 if (!phy_validate_pause(phydev, epause)) in gfar_spauseparam()
475 phy_set_asym_pause(phydev, epause->rx_pause, epause->tx_pause); in gfar_spauseparam()
476 if (epause->rx_pause) { in gfar_spauseparam()
479 if (epause->tx_pause) { in gfar_spauseparam()
482 } else if (epause->tx_pause) { in gfar_spauseparam()
486 if (epause->autoneg) in gfar_spauseparam()
[all …]
/openbmc/linux/drivers/net/ethernet/freescale/dpaa/
H A Ddpaa_ethtool.c103 struct ethtool_pauseparam *epause) in dpaa_get_pauseparam() argument
108 phylink_ethtool_get_pauseparam(mac_dev->phylink, epause); in dpaa_get_pauseparam()
112 struct ethtool_pauseparam *epause) in dpaa_set_pauseparam() argument
117 return phylink_ethtool_set_pauseparam(mac_dev->phylink, epause); in dpaa_set_pauseparam()
/openbmc/linux/drivers/net/ethernet/broadcom/bnx2x/
H A Dbnx2x_ethtool.c1981 struct ethtool_pauseparam *epause) in bnx2x_get_pauseparam() argument
1990 if (!epause->autoneg) in bnx2x_get_pauseparam()
1995 epause->rx_pause = ((cfg_reg & BNX2X_FLOW_CTRL_RX) == 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()
2028 if (epause->autoneg) { in bnx2x_set_pauseparam()
2039 if (epause->rx_pause) in bnx2x_set_pauseparam()
[all …]
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb/
H A 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()
/openbmc/linux/drivers/net/ethernet/qlogic/qede/
H A Dqede_ethtool.c966 struct ethtool_pauseparam *epause) in qede_get_pauseparam() argument
975 epause->autoneg = true; in qede_get_pauseparam()
977 epause->rx_pause = true; in qede_get_pauseparam()
979 epause->tx_pause = true; in qede_get_pauseparam()
983 epause->cmd, epause->autoneg, epause->rx_pause, in qede_get_pauseparam()
984 epause->tx_pause); in qede_get_pauseparam()
988 struct ethtool_pauseparam *epause) in qede_set_pauseparam() argument
1006 if (epause->autoneg) { in qede_set_pauseparam()
1015 if (epause->rx_pause) in qede_set_pauseparam()
1017 if (epause->tx_pause) in qede_set_pauseparam()
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb4/
H A 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()
/openbmc/linux/drivers/net/ethernet/broadcom/
H A Db44.c1982 struct ethtool_pauseparam *epause) in b44_get_pauseparam() argument
1986 epause->autoneg = in b44_get_pauseparam()
1988 epause->rx_pause = in b44_get_pauseparam()
1990 epause->tx_pause = in b44_get_pauseparam()
1995 struct ethtool_pauseparam *epause) in b44_set_pauseparam() argument
2000 if (epause->autoneg) in b44_set_pauseparam()
2004 if (epause->rx_pause) in b44_set_pauseparam()
2008 if (epause->tx_pause) in b44_set_pauseparam()
H A Dtg3.c12517 epause->rx_pause = 1; in tg3_get_pauseparam()
12519 epause->rx_pause = 0; in tg3_get_pauseparam()
12522 epause->tx_pause = 1; in tg3_get_pauseparam()
12524 epause->tx_pause = 0; in tg3_get_pauseparam()
12545 phy_set_asym_pause(phydev, epause->rx_pause, epause->tx_pause); in tg3_set_pauseparam()
12546 if (epause->rx_pause) { in tg3_set_pauseparam()
12556 if (epause->autoneg) in tg3_set_pauseparam()
12573 if (!epause->autoneg) in tg3_set_pauseparam()
12586 if (epause->autoneg) in tg3_set_pauseparam()
12590 if (epause->rx_pause) in tg3_set_pauseparam()
[all …]
H A Dbnx2.c7397 bnx2_get_pauseparam(struct net_device *dev, struct ethtool_pauseparam *epause) in bnx2_get_pauseparam() argument
7401 epause->autoneg = ((bp->autoneg & AUTONEG_FLOW_CTRL) != 0); in bnx2_get_pauseparam()
7402 epause->rx_pause = ((bp->flow_ctrl & FLOW_CTRL_RX) != 0); in bnx2_get_pauseparam()
7403 epause->tx_pause = ((bp->flow_ctrl & FLOW_CTRL_TX) != 0); in bnx2_get_pauseparam()
7407 bnx2_set_pauseparam(struct net_device *dev, struct ethtool_pauseparam *epause) in bnx2_set_pauseparam() argument
7412 if (epause->rx_pause) in bnx2_set_pauseparam()
7414 if (epause->tx_pause) in bnx2_set_pauseparam()
7417 if (epause->autoneg) { in bnx2_set_pauseparam()
/openbmc/linux/drivers/net/ethernet/atheros/atlx/
H A Datl1.c3543 struct ethtool_pauseparam *epause) in atl1_get_pauseparam() argument
3550 epause->autoneg = AUTONEG_ENABLE; in atl1_get_pauseparam()
3552 epause->autoneg = AUTONEG_DISABLE; in atl1_get_pauseparam()
3554 epause->rx_pause = 1; in atl1_get_pauseparam()
3555 epause->tx_pause = 1; in atl1_get_pauseparam()
3559 struct ethtool_pauseparam *epause) in atl1_set_pauseparam() argument
3566 epause->autoneg = AUTONEG_ENABLE; in atl1_set_pauseparam()
3568 epause->autoneg = AUTONEG_DISABLE; in atl1_set_pauseparam()
3571 epause->rx_pause = 1; in atl1_set_pauseparam()
3572 epause->tx_pause = 1; in atl1_set_pauseparam()
/openbmc/linux/drivers/net/ethernet/broadcom/genet/
H A Dbcmgenet.c921 struct ethtool_pauseparam *epause) in bcmgenet_get_pauseparam() argument
928 epause->autoneg = priv->autoneg_pause; in bcmgenet_get_pauseparam()
933 epause->tx_pause = !(umac_cmd & CMD_TX_PAUSE_IGNORE); in bcmgenet_get_pauseparam()
934 epause->rx_pause = !(umac_cmd & CMD_RX_PAUSE_IGNORE); in bcmgenet_get_pauseparam()
937 epause->tx_pause = priv->tx_pause; in bcmgenet_get_pauseparam()
938 epause->rx_pause = priv->rx_pause; in bcmgenet_get_pauseparam()
943 struct ethtool_pauseparam *epause) in bcmgenet_set_pauseparam() argument
950 if (!phy_validate_pause(dev->phydev, epause)) in bcmgenet_set_pauseparam()
953 priv->autoneg_pause = !!epause->autoneg; in bcmgenet_set_pauseparam()
954 priv->tx_pause = !!epause->tx_pause; in bcmgenet_set_pauseparam()
[all …]
/openbmc/linux/drivers/net/ethernet/chelsio/cxgb3/
H A 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()
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_ethtool.c2079 struct ethtool_pauseparam *epause) in bnxt_get_pauseparam() argument
2086 epause->autoneg = !!(link_info->autoneg & BNXT_AUTONEG_FLOW_CTRL); in bnxt_get_pauseparam()
2087 epause->rx_pause = !!(link_info->req_flow_ctrl & BNXT_LINK_PAUSE_RX); in bnxt_get_pauseparam()
2088 epause->tx_pause = !!(link_info->req_flow_ctrl & BNXT_LINK_PAUSE_TX); in bnxt_get_pauseparam()
2108 struct ethtool_pauseparam *epause) in bnxt_set_pauseparam() argument
2118 if (epause->autoneg) { in bnxt_set_pauseparam()
2135 if (epause->rx_pause) in bnxt_set_pauseparam()
2138 if (epause->tx_pause) in bnxt_set_pauseparam()