Lines Matching defs:bitset
6 #include "bitset.h"
159 * ethnl_bitset32_size() - Calculate size of bitset nested attribute
162 * @nbits: bit length of the bitset
217 * ethnl_put_bitset32() - Put a bitset nest into a message
219 * @attrtype: attribute type for the bitset nest
222 * @nbits: bit length of the bitset
226 * Compose a nested attribute representing a bitset. If @mask is null, simple
321 * ethnl_bitset_is_compact() - check if bitset attribute represents a compact
322 * bitset
323 * @bitset: nested attribute representing a bitset
328 int ethnl_bitset_is_compact(const struct nlattr *bitset, bool *compact)
333 ret = nla_parse_nested(tb, ARRAY_SIZE(bitset_policy) - 1, bitset,
441 "value only allowed in compact bitset");
446 "mask only allowed in compact bitset");
491 "mask not allowed in list bitset");
496 "missing size in compact bitset");
501 "missing value in compact bitset");
506 "missing mask in compact nonlist bitset");
514 "bitset value length does not match size");
520 "bitset mask length does not match size");
530 "cannot modify bits past kernel bitset size");
537 * ethnl_update_bitset32() - Apply a bitset nest to a u32 based bitmap
545 * Apply bitset netsted attribute to a bitmap. If the attribute represents
590 * ethnl_parse_bitset() - Compute effective value and mask from bitset nest
600 * the same way ethnl_update_bitset() with the same bitset attribute would.
653 "value only allowed in compact bitset");
658 "mask only allowed in compact bitset");