Lines Matching refs:NETDEV_FEATURE_COUNT
50 all_features = GENMASK_ULL(NETDEV_FEATURE_COUNT - 1, 0); in features_prepare_data()
64 ret = ethnl_bitset32_size(data->hw, data->all, NETDEV_FEATURE_COUNT, in features_reply_size()
69 ret = ethnl_bitset32_size(data->wanted, NULL, NETDEV_FEATURE_COUNT, in features_reply_size()
74 ret = ethnl_bitset32_size(data->active, NULL, NETDEV_FEATURE_COUNT, in features_reply_size()
79 ret = ethnl_bitset32_size(data->nochange, NULL, NETDEV_FEATURE_COUNT, in features_reply_size()
97 data->all, NETDEV_FEATURE_COUNT, in features_fill_reply()
102 NULL, NETDEV_FEATURE_COUNT, in features_fill_reply()
107 NULL, NETDEV_FEATURE_COUNT, in features_fill_reply()
112 data->nochange, NULL, NETDEV_FEATURE_COUNT, in features_fill_reply()
138 const unsigned int words = BITS_TO_LONGS(NETDEV_FEATURE_COUNT); in ethnl_features_to_bitmap()
148 const unsigned int words = BITS_TO_LONGS(NETDEV_FEATURE_COUNT); in ethnl_bitmap_to_features()
154 ret &= ~(netdev_features_t)0 >> (nft_bits - NETDEV_FEATURE_COUNT); in ethnl_bitmap_to_features()
170 ret = ethnl_bitset_size(wanted, wanted_mask, NETDEV_FEATURE_COUNT, in features_send_reply()
175 ret = ethnl_bitset_size(active, active_mask, NETDEV_FEATURE_COUNT, in features_send_reply()
189 wanted_mask, NETDEV_FEATURE_COUNT, in features_send_reply()
194 active_mask, NETDEV_FEATURE_COUNT, in features_send_reply()
214 DECLARE_BITMAP(wanted_diff_mask, NETDEV_FEATURE_COUNT); in ethnl_set_features()
215 DECLARE_BITMAP(active_diff_mask, NETDEV_FEATURE_COUNT); in ethnl_set_features()
216 DECLARE_BITMAP(old_active, NETDEV_FEATURE_COUNT); in ethnl_set_features()
217 DECLARE_BITMAP(old_wanted, NETDEV_FEATURE_COUNT); in ethnl_set_features()
218 DECLARE_BITMAP(new_active, NETDEV_FEATURE_COUNT); in ethnl_set_features()
219 DECLARE_BITMAP(new_wanted, NETDEV_FEATURE_COUNT); in ethnl_set_features()
220 DECLARE_BITMAP(req_wanted, NETDEV_FEATURE_COUNT); in ethnl_set_features()
221 DECLARE_BITMAP(req_mask, NETDEV_FEATURE_COUNT); in ethnl_set_features()
245 ret = ethnl_parse_bitset(req_wanted, req_mask, NETDEV_FEATURE_COUNT, in ethnl_set_features()
257 bitmap_and(req_wanted, req_wanted, req_mask, NETDEV_FEATURE_COUNT); in ethnl_set_features()
258 bitmap_andnot(new_wanted, old_wanted, req_mask, NETDEV_FEATURE_COUNT); in ethnl_set_features()
259 bitmap_or(req_wanted, new_wanted, req_wanted, NETDEV_FEATURE_COUNT); in ethnl_set_features()
260 if (!bitmap_equal(req_wanted, old_wanted, NETDEV_FEATURE_COUNT)) { in ethnl_set_features()
266 mod = !bitmap_equal(old_active, new_active, NETDEV_FEATURE_COUNT); in ethnl_set_features()
273 NETDEV_FEATURE_COUNT); in ethnl_set_features()
275 NETDEV_FEATURE_COUNT); in ethnl_set_features()
277 NETDEV_FEATURE_COUNT); in ethnl_set_features()
279 NETDEV_FEATURE_COUNT); in ethnl_set_features()
281 NETDEV_FEATURE_COUNT); in ethnl_set_features()