Lines Matching refs:edata
1335 static int lan78xx_get_eee(struct net_device *net, struct ethtool_eee *edata) in lan78xx_get_eee() argument
1346 ret = phy_ethtool_get_eee(phydev, edata); in lan78xx_get_eee()
1352 edata->eee_enabled = true; in lan78xx_get_eee()
1353 edata->eee_active = !!(edata->advertised & in lan78xx_get_eee()
1354 edata->lp_advertised); in lan78xx_get_eee()
1355 edata->tx_lpi_enabled = true; in lan78xx_get_eee()
1358 edata->tx_lpi_timer = buf; in lan78xx_get_eee()
1360 edata->eee_enabled = false; in lan78xx_get_eee()
1361 edata->eee_active = false; in lan78xx_get_eee()
1362 edata->tx_lpi_enabled = false; in lan78xx_get_eee()
1363 edata->tx_lpi_timer = 0; in lan78xx_get_eee()
1373 static int lan78xx_set_eee(struct net_device *net, struct ethtool_eee *edata) in lan78xx_set_eee() argument
1383 if (edata->eee_enabled) { in lan78xx_set_eee()
1388 phy_ethtool_set_eee(net->phydev, edata); in lan78xx_set_eee()
1390 buf = (u32)edata->tx_lpi_timer; in lan78xx_set_eee()