Lines Matching refs:ifr
1069 unsigned int cmd, struct ifreq *ifr,
1073 unsigned int cmd, struct ifreq *ifr, in brioctl_set() argument
1083 struct ifreq *ifr, void __user *uarg) in br_ioctl_call() argument
1092 err = br_ioctl_hook(net, br, cmd, ifr, uarg); in br_ioctl_call()
1112 struct ifreq ifr; in sock_do_ioctl() local
1130 if (get_user_ifreq(&ifr, &data, argp)) in sock_do_ioctl()
1132 err = dev_ioctl(net, cmd, &ifr, data, &need_copyout); in sock_do_ioctl()
1134 if (put_user_ifreq(&ifr, argp)) in sock_do_ioctl()
1157 struct ifreq ifr; in sock_ioctl() local
1160 if (get_user_ifreq(&ifr, &data, argp)) in sock_ioctl()
1162 err = dev_ioctl(net, cmd, &ifr, data, &need_copyout); in sock_ioctl()
1164 if (put_user_ifreq(&ifr, argp)) in sock_ioctl()
3155 int get_user_ifreq(struct ifreq *ifr, void __user **ifrdata, void __user *arg) in get_user_ifreq() argument
3158 struct compat_ifreq *ifr32 = (struct compat_ifreq *)ifr; in get_user_ifreq()
3160 memset(ifr, 0, sizeof(*ifr)); in get_user_ifreq()
3170 if (copy_from_user(ifr, arg, sizeof(*ifr))) in get_user_ifreq()
3174 *ifrdata = ifr->ifr_data; in get_user_ifreq()
3180 int put_user_ifreq(struct ifreq *ifr, void __user *arg) in put_user_ifreq() argument
3182 size_t size = sizeof(*ifr); in put_user_ifreq()
3187 if (copy_to_user(arg, ifr, size)) in put_user_ifreq()
3198 struct ifreq ifr; in compat_siocwandev() local
3202 if (get_user_ifreq(&ifr, NULL, uifr32)) in compat_siocwandev()
3208 saved = ifr.ifr_settings.ifs_ifsu.raw_hdlc; in compat_siocwandev()
3209 ifr.ifr_settings.ifs_ifsu.raw_hdlc = compat_ptr(uptr32); in compat_siocwandev()
3211 err = dev_ioctl(net, SIOCWANDEV, &ifr, NULL, NULL); in compat_siocwandev()
3213 ifr.ifr_settings.ifs_ifsu.raw_hdlc = saved; in compat_siocwandev()
3214 if (put_user_ifreq(&ifr, uifr32)) in compat_siocwandev()