Lines Matching refs:cmd
453 unsigned int cmd, in wireless_send_event() argument
483 if (WARN_ON(cmd == SIOCGIWSCAN && extra)) in wireless_send_event()
487 if (cmd <= SIOCIWLAST) { in wireless_send_event()
488 cmd_index = IW_IOCTL_IDX(cmd); in wireless_send_event()
492 cmd_index = IW_EVENT_IDX(cmd); in wireless_send_event()
506 cmd); in wireless_send_event()
515 cmd, wrqu->data.length); in wireless_send_event()
520 cmd, wrqu->data.length); in wireless_send_event()
579 event->cmd = cmd; in wireless_send_event()
616 compat_event->cmd = cmd; in wireless_send_event()
698 static iw_handler get_handler(struct net_device *dev, unsigned int cmd) in get_handler() argument
722 index = IW_IOCTL_IDX(cmd); in get_handler()
728 index = cmd - SIOCIWFIRSTPRIV; in get_handler()
737 static int ioctl_standard_iw_point(struct iw_point *iwp, unsigned int cmd, in ioctl_standard_iw_point() argument
751 switch (cmd) { in ioctl_standard_iw_point()
758 else if (IW_IS_SET(cmd) && (iwp->length != 0)) { in ioctl_standard_iw_point()
781 if (IW_IS_SET(cmd)) { in ioctl_standard_iw_point()
831 if (IW_IS_SET(cmd) && (iwp->length != 0)) { in ioctl_standard_iw_point()
839 if (cmd == SIOCSIWENCODEEXT) { in ioctl_standard_iw_point()
849 if (IW_IS_GET(cmd) && !(descr->flags & IW_DESCR_FLAG_NOMAX)) { in ioctl_standard_iw_point()
870 if (!err && IW_IS_GET(cmd)) { in ioctl_standard_iw_point()
894 wireless_send_event(dev, cmd, data, NULL); in ioctl_standard_iw_point()
896 wireless_send_event(dev, cmd, data, extra); in ioctl_standard_iw_point()
944 unsigned int cmd, in wireless_process_ioctl() argument
962 if (cmd == SIOCGIWSTATS) in wireless_process_ioctl()
963 return standard(dev, iwr, cmd, info, in wireless_process_ioctl()
967 if (cmd == SIOCGIWPRIV && dev->wireless_handlers) in wireless_process_ioctl()
968 return standard(dev, iwr, cmd, info, in wireless_process_ioctl()
977 handler = get_handler(dev, cmd); in wireless_process_ioctl()
980 if (cmd < SIOCIWFIRSTPRIV) in wireless_process_ioctl()
981 return standard(dev, iwr, cmd, info, handler); in wireless_process_ioctl()
983 return private(dev, iwr, cmd, info, handler); in wireless_process_ioctl()
991 static int wext_permission_check(unsigned int cmd) in wext_permission_check() argument
993 if ((IW_IS_SET(cmd) || cmd == SIOCGIWENCODE || in wext_permission_check()
994 cmd == SIOCGIWENCODEEXT) && in wext_permission_check()
1003 unsigned int cmd, struct iw_request_info *info, in wext_ioctl_dispatch() argument
1007 int ret = wext_permission_check(cmd); in wext_ioctl_dispatch()
1014 ret = wireless_process_ioctl(net, iwr, cmd, info, standard, private); in wext_ioctl_dispatch()
1027 unsigned int cmd, in ioctl_standard_call() argument
1035 if (IW_IOCTL_IDX(cmd) >= standard_ioctl_num) in ioctl_standard_call()
1037 descr = &(standard_ioctl[IW_IOCTL_IDX(cmd)]); in ioctl_standard_call()
1048 wireless_send_event(dev, cmd, &(iwr->u), NULL); in ioctl_standard_call()
1050 ret = ioctl_standard_iw_point(&iwr->u.data, cmd, descr, in ioctl_standard_call()
1064 int wext_handle_ioctl(struct net *net, unsigned int cmd, void __user *arg) in wext_handle_ioctl() argument
1066 struct iw_request_info info = { .cmd = cmd, .flags = 0 }; in wext_handle_ioctl()
1075 ret = wext_ioctl_dispatch(net, &iwr, cmd, &info, in wext_handle_ioctl()
1079 IW_IS_GET(cmd) && in wext_handle_ioctl()
1089 unsigned int cmd, in compat_standard_call() argument
1098 descr = standard_ioctl + IW_IOCTL_IDX(cmd); in compat_standard_call()
1101 return ioctl_standard_call(dev, iwr, cmd, info, handler); in compat_standard_call()
1108 err = ioctl_standard_iw_point(&iwp, cmd, descr, handler, dev, info); in compat_standard_call()
1117 int compat_wext_handle_ioctl(struct net *net, unsigned int cmd, in compat_wext_handle_ioctl() argument
1134 info.cmd = cmd; in compat_wext_handle_ioctl()
1137 ret = wext_ioctl_dispatch(net, &iwr, cmd, &info, in compat_wext_handle_ioctl()
1142 IW_IS_GET(cmd) && in compat_wext_handle_ioctl()