Lines Matching refs:edata
2685 static int dwceqos_get_eee(struct net_device *ndev, struct ethtool_eee *edata) in dwceqos_get_eee() argument
2694 edata->eee_active = lp->eee_active; in dwceqos_get_eee()
2695 edata->eee_enabled = lp->eee_enabled; in dwceqos_get_eee()
2696 edata->tx_lpi_timer = dwceqos_read(lp, REG_DWCEQOS_MAC_LPI_ENTRY_TIMER); in dwceqos_get_eee()
2699 edata->tx_lpi_enabled = lpi_enabled; in dwceqos_get_eee()
2711 return phy_ethtool_get_eee(lp->phy_dev, edata); in dwceqos_get_eee()
2714 static int dwceqos_set_eee(struct net_device *ndev, struct ethtool_eee *edata) in dwceqos_set_eee() argument
2723 if (edata->eee_enabled && !lp->eee_active) in dwceqos_set_eee()
2726 if (edata->tx_lpi_enabled) { in dwceqos_set_eee()
2727 if (edata->tx_lpi_timer < DWCEQOS_LPI_TIMER_MIN || in dwceqos_set_eee()
2728 edata->tx_lpi_timer > DWCEQOS_LPI_TIMER_MAX) in dwceqos_set_eee()
2732 lp->eee_enabled = edata->eee_enabled; in dwceqos_set_eee()
2734 if (edata->eee_enabled && edata->tx_lpi_enabled) { in dwceqos_set_eee()
2736 edata->tx_lpi_timer); in dwceqos_set_eee()
2753 return phy_ethtool_set_eee(lp->phy_dev, edata); in dwceqos_set_eee()