Lines Matching refs:ifr
1077 struct ifreq ifr; in sock_do_ioctl() local
1079 if (copy_from_user(&ifr, argp, sizeof(struct ifreq))) in sock_do_ioctl()
1081 err = dev_ioctl(net, cmd, &ifr, &need_copyout); in sock_do_ioctl()
1083 if (copy_to_user(argp, &ifr, sizeof(struct ifreq))) in sock_do_ioctl()
1108 struct ifreq ifr; in sock_ioctl() local
1110 if (copy_from_user(&ifr, argp, sizeof(struct ifreq))) in sock_ioctl()
1112 err = dev_ioctl(net, cmd, &ifr, &need_copyout); in sock_ioctl()
1114 if (copy_to_user(argp, &ifr, sizeof(struct ifreq))) in sock_ioctl()
3105 struct ifreq ifr; in ethtool_ioctl() local
3146 if (copy_from_user(&ifr.ifr_name, &ifr32->ifr_name, IFNAMSIZ)) in ethtool_ioctl()
3149 ifr.ifr_data = convert_in ? rxnfc : (void __user *)compat_rxnfc; in ethtool_ioctl()
3182 ret = dev_ioctl(net, SIOCETHTOOL, &ifr, NULL); in ethtool_ioctl()
3224 struct ifreq ifr; in compat_siocwandev() local
3228 if (copy_from_user(&ifr, uifr32, sizeof(struct compat_ifreq))) in compat_siocwandev()
3234 saved = ifr.ifr_settings.ifs_ifsu.raw_hdlc; in compat_siocwandev()
3235 ifr.ifr_settings.ifs_ifsu.raw_hdlc = compat_ptr(uptr32); in compat_siocwandev()
3237 err = dev_ioctl(net, SIOCWANDEV, &ifr, NULL); in compat_siocwandev()
3239 ifr.ifr_settings.ifs_ifsu.raw_hdlc = saved; in compat_siocwandev()
3240 if (copy_to_user(uifr32, &ifr, sizeof(struct compat_ifreq))) in compat_siocwandev()
3315 struct ifreq ifr; in compat_sioc_ifmap() local
3320 err = copy_from_user(&ifr, uifr32, sizeof(ifr.ifr_name)); in compat_sioc_ifmap()
3321 err |= get_user(ifr.ifr_map.mem_start, &uifmap32->mem_start); in compat_sioc_ifmap()
3322 err |= get_user(ifr.ifr_map.mem_end, &uifmap32->mem_end); in compat_sioc_ifmap()
3323 err |= get_user(ifr.ifr_map.base_addr, &uifmap32->base_addr); in compat_sioc_ifmap()
3324 err |= get_user(ifr.ifr_map.irq, &uifmap32->irq); in compat_sioc_ifmap()
3325 err |= get_user(ifr.ifr_map.dma, &uifmap32->dma); in compat_sioc_ifmap()
3326 err |= get_user(ifr.ifr_map.port, &uifmap32->port); in compat_sioc_ifmap()
3330 err = dev_ioctl(net, cmd, &ifr, NULL); in compat_sioc_ifmap()
3333 err = copy_to_user(uifr32, &ifr, sizeof(ifr.ifr_name)); in compat_sioc_ifmap()
3334 err |= put_user(ifr.ifr_map.mem_start, &uifmap32->mem_start); in compat_sioc_ifmap()
3335 err |= put_user(ifr.ifr_map.mem_end, &uifmap32->mem_end); in compat_sioc_ifmap()
3336 err |= put_user(ifr.ifr_map.base_addr, &uifmap32->base_addr); in compat_sioc_ifmap()
3337 err |= put_user(ifr.ifr_map.irq, &uifmap32->irq); in compat_sioc_ifmap()
3338 err |= put_user(ifr.ifr_map.dma, &uifmap32->dma); in compat_sioc_ifmap()
3339 err |= put_user(ifr.ifr_map.port, &uifmap32->port); in compat_sioc_ifmap()