Lines Matching refs:cmd
124 static long sock_ioctl(struct file *file, unsigned int cmd, unsigned long arg);
127 unsigned int cmd, unsigned long arg);
847 static int (*br_ioctl_hook) (struct net *, unsigned int cmd, void __user *arg);
880 unsigned int cmd, unsigned long arg) in sock_do_ioctl() argument
885 err = sock->ops->ioctl(sock, cmd, arg); in sock_do_ioctl()
892 err = dev_ioctl(net, cmd, argp); in sock_do_ioctl()
902 static long sock_ioctl(struct file *file, unsigned cmd, unsigned long arg) in sock_ioctl() argument
913 if (cmd >= SIOCDEVPRIVATE && cmd <= (SIOCDEVPRIVATE + 15)) { in sock_ioctl()
914 err = dev_ioctl(net, cmd, argp); in sock_ioctl()
917 if (cmd >= SIOCIWFIRST && cmd <= SIOCIWLAST) { in sock_ioctl()
918 err = dev_ioctl(net, cmd, argp); in sock_ioctl()
921 switch (cmd) { in sock_ioctl()
945 err = br_ioctl_hook(net, cmd, argp); in sock_ioctl()
967 err = dlci_ioctl_hook(cmd, argp); in sock_ioctl()
971 err = sock_do_ioctl(net, sock, cmd, arg); in sock_ioctl()
2582 unsigned int cmd, void __user *up) in do_siocgstamp() argument
2589 err = sock_do_ioctl(net, sock, cmd, (unsigned long)&ktv); in do_siocgstamp()
2598 unsigned int cmd, void __user *up) in do_siocgstampns() argument
2605 err = sock_do_ioctl(net, sock, cmd, (unsigned long)&kts); in do_siocgstampns()
2719 if (get_user(ethcmd, &compat_rxnfc->cmd)) in ethtool_ioctl()
2849 static int bond_ioctl(struct net *net, unsigned int cmd, in bond_ioctl() argument
2856 switch (cmd) { in bond_ioctl()
2866 err = dev_ioctl(net, cmd, in bond_ioctl()
2877 static int compat_ifr_data_ioctl(struct net *net, unsigned int cmd, in compat_ifr_data_ioctl() argument
2900 return dev_ioctl(net, cmd, u_ifreq64); in compat_ifr_data_ioctl()
2904 unsigned int cmd, struct compat_ifreq __user *uifr32) in dev_ifsioc() argument
2913 err = sock_do_ioctl(net, sock, cmd, (unsigned long)uifr); in dev_ifsioc()
2916 switch (cmd) { in dev_ifsioc()
2939 static int compat_sioc_ifmap(struct net *net, unsigned int cmd, in compat_sioc_ifmap() argument
2960 err = dev_ioctl(net, cmd, (void __user __force *)&ifr); in compat_sioc_ifmap()
2963 if (cmd == SIOCGIFMAP && !err) { in compat_sioc_ifmap()
3009 unsigned int cmd, void __user *argp) in routing_ioctl() argument
3058 ret = sock_do_ioctl(net, sock, cmd, (unsigned long) r); in routing_ioctl()
3081 unsigned int cmd, unsigned long arg) in compat_sock_ioctl_trans() argument
3087 if (cmd >= SIOCDEVPRIVATE && cmd <= (SIOCDEVPRIVATE + 15)) in compat_sock_ioctl_trans()
3088 return compat_ifr_data_ioctl(net, cmd, argp); in compat_sock_ioctl_trans()
3090 switch (cmd) { in compat_sock_ioctl_trans()
3104 return compat_sioc_ifmap(net, cmd, argp); in compat_sock_ioctl_trans()
3109 return bond_ioctl(net, cmd, argp); in compat_sock_ioctl_trans()
3112 return routing_ioctl(net, sock, cmd, argp); in compat_sock_ioctl_trans()
3114 return do_siocgstamp(net, sock, cmd, argp); in compat_sock_ioctl_trans()
3116 return do_siocgstampns(net, sock, cmd, argp); in compat_sock_ioctl_trans()
3121 return compat_ifr_data_ioctl(net, cmd, argp); in compat_sock_ioctl_trans()
3133 return sock_ioctl(file, cmd, arg); in compat_sock_ioctl_trans()
3168 return dev_ifsioc(net, sock, cmd, argp); in compat_sock_ioctl_trans()
3175 return sock_do_ioctl(net, sock, cmd, arg); in compat_sock_ioctl_trans()
3181 static long compat_sock_ioctl(struct file *file, unsigned int cmd, in compat_sock_ioctl() argument
3193 ret = sock->ops->compat_ioctl(sock, cmd, arg); in compat_sock_ioctl()
3196 (cmd >= SIOCIWFIRST && cmd <= SIOCIWLAST)) in compat_sock_ioctl()
3197 ret = compat_wext_handle_ioctl(net, cmd, arg); in compat_sock_ioctl()
3200 ret = compat_sock_ioctl_trans(file, sock, cmd, arg); in compat_sock_ioctl()
3316 int kernel_sock_ioctl(struct socket *sock, int cmd, unsigned long arg) in kernel_sock_ioctl() argument
3322 err = sock->ops->ioctl(sock, cmd, arg); in kernel_sock_ioctl()