Lines Matching refs:nla
289 const struct nlattr *nla, *attrs; in xfrm_xlate64() local
300 nla_for_each_attr(nla, attrs, len, remaining) { in xfrm_xlate64()
305 err = xfrm_nla_cpy(dst, nla, nla_len(nla)); in xfrm_xlate64()
308 err = xfrm_xlate64_attr(dst, nla); in xfrm_xlate64()
400 struct nlattr *nla; in xfrm_attr_cpy32() local
412 nla = dst + *pos; in xfrm_attr_cpy32()
414 memcpy(nla, src, nla_attr_size(copy_len)); in xfrm_attr_cpy32()
415 nla->nla_len = nla_attr_size(payload); in xfrm_attr_cpy32()
417 nlmsg->nlmsg_len += nla->nla_len; in xfrm_attr_cpy32()
425 static int xfrm_xlate32_attr(void *dst, const struct nlattr *nla, in xfrm_xlate32_attr() argument
429 int type = nla_type(nla); in xfrm_xlate32_attr()
438 if (nla_len(nla) < compat_policy[type].len) { in xfrm_xlate32_attr()
448 if (nla_len(nla) != compat_policy[type].len) { in xfrm_xlate32_attr()
452 err = xfrm_attr_cpy32(dst, pos, nla, size, pol_len32, pol_len64); in xfrm_xlate32_attr()
457 return xfrm_attr_cpy32(dst, pos, nla, size, nla_len(nla), nla_len(nla)); in xfrm_xlate32_attr()