Lines Matching refs:epause
12475 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()
12514 if (epause->tx_pause) { in tg3_set_pauseparam()
12517 } else if (epause->tx_pause) { in tg3_set_pauseparam()
12521 if (epause->autoneg) in tg3_set_pauseparam()
12538 if (!epause->autoneg) in tg3_set_pauseparam()
12551 if (epause->autoneg) in tg3_set_pauseparam()
12555 if (epause->rx_pause) in tg3_set_pauseparam()
12559 if (epause->tx_pause) in tg3_set_pauseparam()