• Home
  • Raw
  • Download

Lines Matching refs:ifr

1103 			    unsigned int cmd, struct ifreq *ifr,
1107 unsigned int cmd, struct ifreq *ifr, in brioctl_set() argument
1117 struct ifreq *ifr, void __user *uarg) in br_ioctl_call() argument
1126 err = br_ioctl_hook(net, br, cmd, ifr, uarg); in br_ioctl_call()
1146 struct ifreq ifr; in sock_do_ioctl() local
1164 if (get_user_ifreq(&ifr, &data, argp)) in sock_do_ioctl()
1166 err = dev_ioctl(net, cmd, &ifr, data, &need_copyout); in sock_do_ioctl()
1168 if (put_user_ifreq(&ifr, argp)) in sock_do_ioctl()
1191 struct ifreq ifr; in sock_ioctl() local
1194 if (get_user_ifreq(&ifr, &data, argp)) in sock_ioctl()
1196 err = dev_ioctl(net, cmd, &ifr, data, &need_copyout); in sock_ioctl()
1198 if (put_user_ifreq(&ifr, argp)) in sock_ioctl()
3189 int get_user_ifreq(struct ifreq *ifr, void __user **ifrdata, void __user *arg) in get_user_ifreq() argument
3192 struct compat_ifreq *ifr32 = (struct compat_ifreq *)ifr; in get_user_ifreq()
3194 memset(ifr, 0, sizeof(*ifr)); in get_user_ifreq()
3204 if (copy_from_user(ifr, arg, sizeof(*ifr))) in get_user_ifreq()
3208 *ifrdata = ifr->ifr_data; in get_user_ifreq()
3214 int put_user_ifreq(struct ifreq *ifr, void __user *arg) in put_user_ifreq() argument
3216 size_t size = sizeof(*ifr); in put_user_ifreq()
3221 if (copy_to_user(arg, ifr, size)) in put_user_ifreq()
3232 struct ifreq ifr; in compat_siocwandev() local
3236 if (get_user_ifreq(&ifr, NULL, uifr32)) in compat_siocwandev()
3242 saved = ifr.ifr_settings.ifs_ifsu.raw_hdlc; in compat_siocwandev()
3243 ifr.ifr_settings.ifs_ifsu.raw_hdlc = compat_ptr(uptr32); in compat_siocwandev()
3245 err = dev_ioctl(net, SIOCWANDEV, &ifr, NULL, NULL); in compat_siocwandev()
3247 ifr.ifr_settings.ifs_ifsu.raw_hdlc = saved; in compat_siocwandev()
3248 if (put_user_ifreq(&ifr, uifr32)) in compat_siocwandev()