Lines Matching refs:nla
568 static int meta_var_change(struct meta_value *dst, struct nlattr *nla) in meta_var_change() argument
570 int len = nla_len(nla); in meta_var_change()
572 dst->val = (unsigned long)kmemdup(nla_data(nla), len, GFP_KERNEL); in meta_var_change()
620 static int meta_int_change(struct meta_value *dst, struct nlattr *nla) in meta_int_change() argument
622 if (nla_len(nla) >= sizeof(unsigned long)) { in meta_int_change()
623 dst->val = *(unsigned long *) nla_data(nla); in meta_int_change()
625 } else if (nla_len(nla) == sizeof(u32)) { in meta_int_change()
626 dst->val = nla_get_u32(nla); in meta_int_change()
754 static inline int meta_change_data(struct meta_value *dst, struct nlattr *nla) in meta_change_data() argument
756 if (nla) { in meta_change_data()
757 if (nla_len(nla) == 0) in meta_change_data()
760 return meta_type_ops(dst)->change(dst, nla); in meta_change_data()