Lines Matching refs:eee
13 struct ethtool_keee eee; member
30 struct ethtool_keee *eee = &data->eee; in eee_prepare_data() local
38 ret = dev->ethtool_ops->get_eee(dev, eee); in eee_prepare_data()
49 const struct ethtool_keee *eee = &data->eee; in eee_reply_size() local
54 ret = ethnl_bitset_size(eee->advertised, eee->supported, in eee_reply_size()
61 ret = ethnl_bitset_size(eee->lp_advertised, NULL, in eee_reply_size()
82 const struct ethtool_keee *eee = &data->eee; in eee_fill_reply() local
86 eee->advertised, eee->supported, in eee_fill_reply()
92 eee->lp_advertised, NULL, in eee_fill_reply()
98 if (nla_put_u8(skb, ETHTOOL_A_EEE_ACTIVE, eee->eee_active) || in eee_fill_reply()
99 nla_put_u8(skb, ETHTOOL_A_EEE_ENABLED, eee->eee_enabled) || in eee_fill_reply()
101 eee->tx_lpi_enabled) || in eee_fill_reply()
102 nla_put_u32(skb, ETHTOOL_A_EEE_TX_LPI_TIMER, eee->tx_lpi_timer)) in eee_fill_reply()
132 struct ethtool_keee eee = {}; in ethnl_set_eee() local
136 ret = dev->ethtool_ops->get_eee(dev, &eee); in ethnl_set_eee()
140 ret = ethnl_update_bitset(eee.advertised, in ethnl_set_eee()
146 ethnl_update_bool(&eee.eee_enabled, tb[ETHTOOL_A_EEE_ENABLED], &mod); in ethnl_set_eee()
147 ethnl_update_bool(&eee.tx_lpi_enabled, tb[ETHTOOL_A_EEE_TX_LPI_ENABLED], in ethnl_set_eee()
149 ethnl_update_u32(&eee.tx_lpi_timer, tb[ETHTOOL_A_EEE_TX_LPI_TIMER], in ethnl_set_eee()
154 ret = dev->ethtool_ops->set_eee(dev, &eee); in ethnl_set_eee()