Lines Matching refs:rt

37 	struct nlattr *rt = attrs[type];  in verify_one_alg()  local
40 if (!rt) in verify_one_alg()
43 algp = nla_data(rt); in verify_one_alg()
44 if (nla_len(rt) < xfrm_alg_len(algp)) in verify_one_alg()
63 struct nlattr *rt = attrs[XFRMA_ALG_AUTH_TRUNC]; in verify_auth_trunc() local
66 if (!rt) in verify_auth_trunc()
69 algp = nla_data(rt); in verify_auth_trunc()
70 if (nla_len(rt) < xfrm_alg_auth_len(algp)) in verify_auth_trunc()
79 struct nlattr *rt = attrs[XFRMA_ALG_AEAD]; in verify_aead() local
82 if (!rt) in verify_aead()
85 algp = nla_data(rt); in verify_aead()
86 if (nla_len(rt) < aead_len(algp)) in verify_aead()
96 struct nlattr *rt = attrs[type]; in verify_one_addr() local
98 if (rt && addrp) in verify_one_addr()
99 *addrp = nla_data(rt); in verify_one_addr()
104 struct nlattr *rt = attrs[XFRMA_SEC_CTX]; in verify_sec_ctx_len() local
107 if (!rt) in verify_sec_ctx_len()
110 uctx = nla_data(rt); in verify_sec_ctx_len()
120 struct nlattr *rt = attrs[XFRMA_REPLAY_ESN_VAL]; in verify_replay() local
124 if (!rt) in verify_replay()
127 rs = nla_data(rt); in verify_replay()
132 if (nla_len(rt) < xfrm_replay_state_esn_len(rs) && in verify_replay()
133 nla_len(rt) != sizeof(*rs)) in verify_replay()
137 if (!rt) in verify_replay()
468 struct nlattr *rt = attrs[XFRMA_REPLAY_THRESH]; in xfrm_update_ae_params() local
498 if (rt) in xfrm_update_ae_params()
499 x->replay_maxdiff = nla_get_u32(rt); in xfrm_update_ae_params()
1312 struct nlattr *rt = attrs[XFRMA_SEC_CTX]; in copy_from_user_sec_ctx() local
1315 if (!rt) in copy_from_user_sec_ctx()
1318 uctx = nla_data(rt); in copy_from_user_sec_ctx()
1382 struct nlattr *rt = attrs[XFRMA_TMPL]; in copy_from_user_tmpl() local
1384 if (!rt) { in copy_from_user_tmpl()
1387 struct xfrm_user_tmpl *utmpl = nla_data(rt); in copy_from_user_tmpl()
1388 int nr = nla_len(rt) / sizeof(*utmpl); in copy_from_user_tmpl()
1402 struct nlattr *rt = attrs[XFRMA_POLICY_TYPE]; in copy_from_user_policy_type() local
1407 if (rt) { in copy_from_user_policy_type()
1408 upt = nla_data(rt); in copy_from_user_policy_type()
1709 struct nlattr *rt = attrs[XFRMA_SEC_CTX]; in xfrm_get_policy() local
1717 if (rt) { in xfrm_get_policy()
1718 struct xfrm_user_sec_ctx *uctx = nla_data(rt); in xfrm_get_policy()
1998 struct nlattr *rt = attrs[XFRMA_SEC_CTX]; in xfrm_add_pol_expire() local
2006 if (rt) { in xfrm_add_pol_expire()
2007 struct xfrm_user_sec_ctx *uctx = nla_data(rt); in xfrm_add_pol_expire()
2079 struct nlattr *rt = attrs[XFRMA_TMPL]; in xfrm_add_acquire() local
2105 ut = nla_data(rt); in xfrm_add_acquire()
2138 struct nlattr *rt = attrs[XFRMA_MIGRATE]; in copy_from_user_migrate() local
2152 um = nla_data(rt); in copy_from_user_migrate()
2153 num_migrate = nla_len(rt) / sizeof(*um); in copy_from_user_migrate()