Lines Matching refs:cmd
452 unsigned int cmd, in wireless_send_event() argument
482 if (WARN_ON(cmd == SIOCGIWSCAN && extra)) in wireless_send_event()
486 if (cmd <= SIOCIWLAST) { in wireless_send_event()
487 cmd_index = IW_IOCTL_IDX(cmd); in wireless_send_event()
491 cmd_index = IW_EVENT_IDX(cmd); in wireless_send_event()
505 cmd); in wireless_send_event()
514 cmd, wrqu->data.length); in wireless_send_event()
519 cmd, wrqu->data.length); in wireless_send_event()
578 event->cmd = cmd; in wireless_send_event()
615 compat_event->cmd = cmd; in wireless_send_event()
686 static iw_handler get_handler(struct net_device *dev, unsigned int cmd) in get_handler() argument
705 index = IW_IOCTL_IDX(cmd); in get_handler()
711 index = cmd - SIOCIWFIRSTPRIV; in get_handler()
720 static int ioctl_standard_iw_point(struct iw_point *iwp, unsigned int cmd, in ioctl_standard_iw_point() argument
734 switch (cmd) { in ioctl_standard_iw_point()
741 else if (IW_IS_SET(cmd) && (iwp->length != 0)) { in ioctl_standard_iw_point()
764 if (IW_IS_SET(cmd)) { in ioctl_standard_iw_point()
808 if (IW_IS_SET(cmd) && (iwp->length != 0)) { in ioctl_standard_iw_point()
816 if (cmd == SIOCSIWENCODEEXT) { in ioctl_standard_iw_point()
826 if (IW_IS_GET(cmd) && !(descr->flags & IW_DESCR_FLAG_NOMAX)) { in ioctl_standard_iw_point()
847 if (!err && IW_IS_GET(cmd)) { in ioctl_standard_iw_point()
871 wireless_send_event(dev, cmd, data, NULL); in ioctl_standard_iw_point()
873 wireless_send_event(dev, cmd, data, extra); in ioctl_standard_iw_point()
921 unsigned int cmd, in wireless_process_ioctl() argument
939 if (cmd == SIOCGIWSTATS) in wireless_process_ioctl()
940 return standard(dev, iwr, cmd, info, in wireless_process_ioctl()
944 if (cmd == SIOCGIWPRIV && dev->wireless_handlers) in wireless_process_ioctl()
945 return standard(dev, iwr, cmd, info, in wireless_process_ioctl()
954 handler = get_handler(dev, cmd); in wireless_process_ioctl()
957 if (cmd < SIOCIWFIRSTPRIV) in wireless_process_ioctl()
958 return standard(dev, iwr, cmd, info, handler); in wireless_process_ioctl()
960 return private(dev, iwr, cmd, info, handler); in wireless_process_ioctl()
968 static int wext_permission_check(unsigned int cmd) in wext_permission_check() argument
970 if ((IW_IS_SET(cmd) || cmd == SIOCGIWENCODE || in wext_permission_check()
971 cmd == SIOCGIWENCODEEXT) && in wext_permission_check()
980 unsigned int cmd, struct iw_request_info *info, in wext_ioctl_dispatch() argument
984 int ret = wext_permission_check(cmd); in wext_ioctl_dispatch()
991 ret = wireless_process_ioctl(net, iwr, cmd, info, standard, private); in wext_ioctl_dispatch()
1004 unsigned int cmd, in ioctl_standard_call() argument
1012 if (IW_IOCTL_IDX(cmd) >= standard_ioctl_num) in ioctl_standard_call()
1014 descr = &(standard_ioctl[IW_IOCTL_IDX(cmd)]); in ioctl_standard_call()
1025 wireless_send_event(dev, cmd, &(iwr->u), NULL); in ioctl_standard_call()
1027 ret = ioctl_standard_iw_point(&iwr->u.data, cmd, descr, in ioctl_standard_call()
1041 int wext_handle_ioctl(struct net *net, unsigned int cmd, void __user *arg) in wext_handle_ioctl() argument
1043 struct iw_request_info info = { .cmd = cmd, .flags = 0 }; in wext_handle_ioctl()
1052 ret = wext_ioctl_dispatch(net, &iwr, cmd, &info, in wext_handle_ioctl()
1056 IW_IS_GET(cmd) && in wext_handle_ioctl()
1066 unsigned int cmd, in compat_standard_call() argument
1075 descr = standard_ioctl + IW_IOCTL_IDX(cmd); in compat_standard_call()
1078 return ioctl_standard_call(dev, iwr, cmd, info, handler); in compat_standard_call()
1085 err = ioctl_standard_iw_point(&iwp, cmd, descr, handler, dev, info); in compat_standard_call()
1094 int compat_wext_handle_ioctl(struct net *net, unsigned int cmd, in compat_wext_handle_ioctl() argument
1111 info.cmd = cmd; in compat_wext_handle_ioctl()
1114 ret = wext_ioctl_dispatch(net, &iwr, cmd, &info, in compat_wext_handle_ioctl()
1119 IW_IS_GET(cmd) && in compat_wext_handle_ioctl()