Lines Matching refs:val
83 unsigned long val; member
675 static inline struct meta_ops *meta_ops(struct meta_value *val) in meta_ops() argument
677 return &__meta_ops[meta_type(val)][meta_id(val)]; in meta_ops()
698 dst->val = (unsigned long)kmemdup(nla_data(nla), len, GFP_KERNEL); in meta_var_change()
699 if (dst->val == 0UL) in meta_var_change()
707 kfree((void *) v->val); in meta_var_destroy()
721 if (v->val && v->len && in meta_var_dump()
722 nla_put(skb, tlv, v->len, (void *) v->val)) in meta_var_dump()
750 dst->val = *(unsigned long *) nla_data(nla); in meta_int_change()
753 dst->val = nla_get_u32(nla); in meta_int_change()
767 if (v->val) in meta_int_apply_extras()
768 dst->value &= v->val; in meta_int_apply_extras()
774 if (nla_put(skb, tlv, sizeof(unsigned long), &v->val)) in meta_int_dump()
777 if (nla_put_u32(skb, tlv, v->val)) in meta_int_dump()
830 dst->value = v->val; in meta_get()
896 static inline int meta_is_supported(struct meta_value *val) in meta_is_supported() argument
898 return !meta_id(val) || meta_ops(val)->get; in meta_is_supported()