Lines Matching defs:bitset
6 #include "bitset.h"
160 * ethnl_bitset32_size() - Calculate size of bitset nested attribute
163 * @nbits: bit length of the bitset
218 * ethnl_put_bitset32() - Put a bitset nest into a message
220 * @attrtype: attribute type for the bitset nest
223 * @nbits: bit length of the bitset
227 * Compose a nested attribute representing a bitset. If @mask is null, simple
322 * ethnl_bitset_is_compact() - check if bitset attribute represents a compact
323 * bitset
324 * @bitset: nested attribute representing a bitset
329 int ethnl_bitset_is_compact(const struct nlattr *bitset, bool *compact)
334 ret = nla_parse_nested(tb, ARRAY_SIZE(bitset_policy) - 1, bitset,
462 "value only allowed in compact bitset");
467 "mask only allowed in compact bitset");
532 "mask not allowed in list bitset");
537 "missing size in compact bitset");
542 "missing value in compact bitset");
547 "missing mask in compact nonlist bitset");
555 "bitset value length does not match size");
561 "bitset mask length does not match size");
571 "cannot modify bits past kernel bitset size");
578 * ethnl_update_bitset32() - Apply a bitset nest to a u32 based bitmap
586 * Apply bitset netsted attribute to a bitmap. If the attribute represents
631 * ethnl_parse_bitset() - Compute effective value and mask from bitset nest
641 * the same way ethnl_update_bitset() with the same bitset attribute would.
694 "value only allowed in compact bitset");
699 "mask only allowed in compact bitset");