Lines Matching refs:nla
692 static int meta_var_change(struct meta_value *dst, struct nlattr *nla) in meta_var_change() argument
694 int len = nla_len(nla); in meta_var_change()
696 dst->val = (unsigned long)kmemdup(nla_data(nla), len, GFP_KERNEL); in meta_var_change()
745 static int meta_int_change(struct meta_value *dst, struct nlattr *nla) in meta_int_change() argument
747 if (nla_len(nla) >= sizeof(unsigned long)) { in meta_int_change()
748 dst->val = *(unsigned long *) nla_data(nla); in meta_int_change()
750 } else if (nla_len(nla) == sizeof(u32)) { in meta_int_change()
751 dst->val = nla_get_u32(nla); in meta_int_change()
882 static inline int meta_change_data(struct meta_value *dst, struct nlattr *nla) in meta_change_data() argument
884 if (nla) { in meta_change_data()
885 if (nla_len(nla) == 0) in meta_change_data()
888 return meta_type_ops(dst)->change(dst, nla); in meta_change_data()