Lines Matching refs:kp
997 bool ip_tunnel_parm_from_user(struct ip_tunnel_parm_kern *kp, in ip_tunnel_parm_from_user() argument
1005 strscpy(kp->name, p.name); in ip_tunnel_parm_from_user()
1006 kp->link = p.link; in ip_tunnel_parm_from_user()
1007 ip_tunnel_flags_from_be16(kp->i_flags, p.i_flags); in ip_tunnel_parm_from_user()
1008 ip_tunnel_flags_from_be16(kp->o_flags, p.o_flags); in ip_tunnel_parm_from_user()
1009 kp->i_key = p.i_key; in ip_tunnel_parm_from_user()
1010 kp->o_key = p.o_key; in ip_tunnel_parm_from_user()
1011 memcpy(&kp->iph, &p.iph, min(sizeof(kp->iph), sizeof(p.iph))); in ip_tunnel_parm_from_user()
1017 bool ip_tunnel_parm_to_user(void __user *data, struct ip_tunnel_parm_kern *kp) in ip_tunnel_parm_to_user() argument
1021 if (!ip_tunnel_flags_is_be16_compat(kp->i_flags) || in ip_tunnel_parm_to_user()
1022 !ip_tunnel_flags_is_be16_compat(kp->o_flags)) in ip_tunnel_parm_to_user()
1027 strscpy(p.name, kp->name); in ip_tunnel_parm_to_user()
1028 p.link = kp->link; in ip_tunnel_parm_to_user()
1029 p.i_flags = ip_tunnel_flags_to_be16(kp->i_flags); in ip_tunnel_parm_to_user()
1030 p.o_flags = ip_tunnel_flags_to_be16(kp->o_flags); in ip_tunnel_parm_to_user()
1031 p.i_key = kp->i_key; in ip_tunnel_parm_to_user()
1032 p.o_key = kp->o_key; in ip_tunnel_parm_to_user()
1033 memcpy(&p.iph, &kp->iph, min(sizeof(p.iph), sizeof(kp->iph))); in ip_tunnel_parm_to_user()