Lines Matching refs:edata
2661 static int dwceqos_get_eee(struct net_device *ndev, struct ethtool_eee *edata) in dwceqos_get_eee() argument
2670 edata->eee_active = lp->eee_active; in dwceqos_get_eee()
2671 edata->eee_enabled = lp->eee_enabled; in dwceqos_get_eee()
2672 edata->tx_lpi_timer = dwceqos_read(lp, REG_DWCEQOS_MAC_LPI_ENTRY_TIMER); in dwceqos_get_eee()
2675 edata->tx_lpi_enabled = lpi_enabled; in dwceqos_get_eee()
2687 return phy_ethtool_get_eee(ndev->phydev, edata); in dwceqos_get_eee()
2690 static int dwceqos_set_eee(struct net_device *ndev, struct ethtool_eee *edata) in dwceqos_set_eee() argument
2699 if (edata->eee_enabled && !lp->eee_active) in dwceqos_set_eee()
2702 if (edata->tx_lpi_enabled) { in dwceqos_set_eee()
2703 if (edata->tx_lpi_timer < DWCEQOS_LPI_TIMER_MIN || in dwceqos_set_eee()
2704 edata->tx_lpi_timer > DWCEQOS_LPI_TIMER_MAX) in dwceqos_set_eee()
2708 lp->eee_enabled = edata->eee_enabled; in dwceqos_set_eee()
2710 if (edata->eee_enabled && edata->tx_lpi_enabled) { in dwceqos_set_eee()
2712 edata->tx_lpi_timer); in dwceqos_set_eee()
2729 return phy_ethtool_set_eee(ndev->phydev, edata); in dwceqos_set_eee()