Lines Matching refs:nla
297 const struct nlattr *nla, *attrs; in xfrm_xlate64() local
308 nla_for_each_attr(nla, attrs, len, remaining) { in xfrm_xlate64()
313 err = xfrm_nla_cpy(dst, nla, nla_len(nla)); in xfrm_xlate64()
316 err = xfrm_xlate64_attr(dst, nla); in xfrm_xlate64()
408 struct nlattr *nla; in xfrm_attr_cpy32() local
420 nla = dst + *pos; in xfrm_attr_cpy32()
422 memcpy(nla, src, nla_attr_size(copy_len)); in xfrm_attr_cpy32()
423 nla->nla_len = nla_attr_size(payload); in xfrm_attr_cpy32()
425 nlmsg->nlmsg_len += nla->nla_len; in xfrm_attr_cpy32()
433 static int xfrm_xlate32_attr(void *dst, const struct nlattr *nla, in xfrm_xlate32_attr() argument
437 int type = nla_type(nla); in xfrm_xlate32_attr()
447 if (nla_len(nla) < compat_policy[type].len) { in xfrm_xlate32_attr()
457 if (nla_len(nla) != compat_policy[type].len) { in xfrm_xlate32_attr()
461 err = xfrm_attr_cpy32(dst, pos, nla, size, pol_len32, pol_len64); in xfrm_xlate32_attr()
466 return xfrm_attr_cpy32(dst, pos, nla, size, nla_len(nla), nla_len(nla)); in xfrm_xlate32_attr()