Lines Matching refs:attr
237 struct nlattr *attr;
252 attr = nla_reserve(skb, ETHTOOL_A_BITSET_VALUE, nbytes);
253 if (!attr)
255 dst = nla_data(attr);
261 attr = nla_reserve(skb, ETHTOOL_A_BITSET_MASK, nbytes);
262 if (!attr)
264 dst = nla_data(attr);
281 attr = nla_nest_start(skb, ETHTOOL_A_BITSET_BITS_BIT);
282 if (!attr)
292 nla_nest_end(skb, attr);
430 const struct nlattr *attr, struct nlattr **tb,
540 * @attr: nest attribute to parse and apply
553 const struct nlattr *attr, ethnl_string_array_t names,
561 if (!attr)
563 ret = nla_parse_nested(tb, ARRAY_SIZE(bitset_policy) - 1, attr,
569 return ethnl_update_bitset32_verbose(bitmap, nbits, attr, tb,
571 ret = ethnl_compact_sanity_checks(nbits, attr, tb, extack);
594 * @attr: nest attribute to parse and apply
605 unsigned int nbits, const struct nlattr *attr,
615 if (!attr)
617 ret = nla_parse_nested(tb, ARRAY_SIZE(bitset_policy) - 1, attr,
626 ret = ethnl_compact_sanity_checks(nbits, attr, tb, extack);
772 const struct nlattr *attr, ethnl_string_array_t names,
789 ret = ethnl_update_bitset32(bitmap32, nbits, attr, names, extack,
826 const struct nlattr *attr, ethnl_string_array_t names,
829 return ethnl_update_bitset32((u32 *)bitmap, nbits, attr, names, extack,