Lines Matching refs:edata
2162 static int e1000e_get_eee(struct net_device *netdev, struct ethtool_eee *edata) in e1000e_get_eee() argument
2199 edata->supported = mmd_eee_cap_to_ethtool_sup_t(phy_data); in e1000e_get_eee()
2202 edata->advertised = mmd_eee_adv_to_ethtool_adv_t(adapter->eee_advert); in e1000e_get_eee()
2208 edata->lp_advertised = mmd_eee_adv_to_ethtool_adv_t(phy_data); in e1000e_get_eee()
2222 edata->eee_active = true; in e1000e_get_eee()
2224 edata->eee_enabled = !hw->dev_spec.ich8lan.eee_disable; in e1000e_get_eee()
2225 edata->tx_lpi_enabled = true; in e1000e_get_eee()
2226 edata->tx_lpi_timer = er32(LPIC) >> E1000_LPIC_LPIET_SHIFT; in e1000e_get_eee()
2238 static int e1000e_set_eee(struct net_device *netdev, struct ethtool_eee *edata) in e1000e_set_eee() argument
2249 if (eee_curr.tx_lpi_enabled != edata->tx_lpi_enabled) { in e1000e_set_eee()
2254 if (eee_curr.tx_lpi_timer != edata->tx_lpi_timer) { in e1000e_set_eee()
2259 if (edata->advertised & ~(ADVERTISE_100_FULL | ADVERTISE_1000_FULL)) { in e1000e_set_eee()
2264 adapter->eee_advert = ethtool_adv_to_mmd_eee_adv_t(edata->advertised); in e1000e_set_eee()
2266 hw->dev_spec.ich8lan.eee_disable = !edata->eee_enabled; in e1000e_set_eee()