Lines Matching refs:vr
1857 struct sioc_mif_req6 vr; in ip6mr_ioctl() local
1869 if (copy_from_user(&vr, arg, sizeof(vr))) in ip6mr_ioctl()
1871 if (vr.mifi >= mrt->maxvif) in ip6mr_ioctl()
1873 vr.mifi = array_index_nospec(vr.mifi, mrt->maxvif); in ip6mr_ioctl()
1875 vif = &mrt->vif_table[vr.mifi]; in ip6mr_ioctl()
1876 if (VIF_EXISTS(mrt, vr.mifi)) { in ip6mr_ioctl()
1877 vr.icount = vif->pkt_in; in ip6mr_ioctl()
1878 vr.ocount = vif->pkt_out; in ip6mr_ioctl()
1879 vr.ibytes = vif->bytes_in; in ip6mr_ioctl()
1880 vr.obytes = vif->bytes_out; in ip6mr_ioctl()
1883 if (copy_to_user(arg, &vr, sizeof(vr))) in ip6mr_ioctl()
1932 struct compat_sioc_mif_req6 vr; in ip6mr_compat_ioctl() local
1944 if (copy_from_user(&vr, arg, sizeof(vr))) in ip6mr_compat_ioctl()
1946 if (vr.mifi >= mrt->maxvif) in ip6mr_compat_ioctl()
1948 vr.mifi = array_index_nospec(vr.mifi, mrt->maxvif); in ip6mr_compat_ioctl()
1950 vif = &mrt->vif_table[vr.mifi]; in ip6mr_compat_ioctl()
1951 if (VIF_EXISTS(mrt, vr.mifi)) { in ip6mr_compat_ioctl()
1952 vr.icount = vif->pkt_in; in ip6mr_compat_ioctl()
1953 vr.ocount = vif->pkt_out; in ip6mr_compat_ioctl()
1954 vr.ibytes = vif->bytes_in; in ip6mr_compat_ioctl()
1955 vr.obytes = vif->bytes_out; in ip6mr_compat_ioctl()
1958 if (copy_to_user(arg, &vr, sizeof(vr))) in ip6mr_compat_ioctl()