Lines Matching refs:kp
1011 bool ip_tunnel_parm_from_user(struct ip_tunnel_parm_kern *kp, in ip_tunnel_parm_from_user() argument
1019 strscpy(kp->name, p.name); in ip_tunnel_parm_from_user()
1020 kp->link = p.link; in ip_tunnel_parm_from_user()
1021 ip_tunnel_flags_from_be16(kp->i_flags, p.i_flags); in ip_tunnel_parm_from_user()
1022 ip_tunnel_flags_from_be16(kp->o_flags, p.o_flags); in ip_tunnel_parm_from_user()
1023 kp->i_key = p.i_key; in ip_tunnel_parm_from_user()
1024 kp->o_key = p.o_key; in ip_tunnel_parm_from_user()
1025 memcpy(&kp->iph, &p.iph, min(sizeof(kp->iph), sizeof(p.iph))); in ip_tunnel_parm_from_user()
1031 bool ip_tunnel_parm_to_user(void __user *data, struct ip_tunnel_parm_kern *kp) in ip_tunnel_parm_to_user() argument
1035 if (!ip_tunnel_flags_is_be16_compat(kp->i_flags) || in ip_tunnel_parm_to_user()
1036 !ip_tunnel_flags_is_be16_compat(kp->o_flags)) in ip_tunnel_parm_to_user()
1041 strscpy(p.name, kp->name); in ip_tunnel_parm_to_user()
1042 p.link = kp->link; in ip_tunnel_parm_to_user()
1043 p.i_flags = ip_tunnel_flags_to_be16(kp->i_flags); in ip_tunnel_parm_to_user()
1044 p.o_flags = ip_tunnel_flags_to_be16(kp->o_flags); in ip_tunnel_parm_to_user()
1045 p.i_key = kp->i_key; in ip_tunnel_parm_to_user()
1046 p.o_key = kp->o_key; in ip_tunnel_parm_to_user()
1047 memcpy(&p.iph, &kp->iph, min(sizeof(p.iph), sizeof(kp->iph))); in ip_tunnel_parm_to_user()