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()
700 static iw_handler get_handler(struct net_device *dev, unsigned int cmd) in get_handler() argument
724 index = IW_IOCTL_IDX(cmd); in get_handler()
730 index = cmd - SIOCIWFIRSTPRIV; in get_handler()
739 static int ioctl_standard_iw_point(struct iw_point *iwp, unsigned int cmd, in ioctl_standard_iw_point() argument
753 switch (cmd) { in ioctl_standard_iw_point()
760 else if (IW_IS_SET(cmd) && (iwp->length != 0)) { in ioctl_standard_iw_point()
783 if (IW_IS_SET(cmd)) { in ioctl_standard_iw_point()
833 if (IW_IS_SET(cmd) && (iwp->length != 0)) { in ioctl_standard_iw_point()
841 if (cmd == SIOCSIWENCODEEXT) { in ioctl_standard_iw_point()
851 if (IW_IS_GET(cmd) && !(descr->flags & IW_DESCR_FLAG_NOMAX)) { in ioctl_standard_iw_point()
872 if (!err && IW_IS_GET(cmd)) { in ioctl_standard_iw_point()
896 wireless_send_event(dev, cmd, data, NULL); in ioctl_standard_iw_point()
898 wireless_send_event(dev, cmd, data, extra); in ioctl_standard_iw_point()
946 unsigned int cmd, in wireless_process_ioctl() argument
964 if (cmd == SIOCGIWSTATS) in wireless_process_ioctl()
965 return standard(dev, iwr, cmd, info, in wireless_process_ioctl()
969 if (cmd == SIOCGIWPRIV && dev->wireless_handlers) in wireless_process_ioctl()
970 return standard(dev, iwr, cmd, info, in wireless_process_ioctl()
979 handler = get_handler(dev, cmd); in wireless_process_ioctl()
982 if (cmd < SIOCIWFIRSTPRIV) in wireless_process_ioctl()
983 return standard(dev, iwr, cmd, info, handler); in wireless_process_ioctl()
985 return private(dev, iwr, cmd, info, handler); in wireless_process_ioctl()
993 static int wext_permission_check(unsigned int cmd) in wext_permission_check() argument
995 if ((IW_IS_SET(cmd) || cmd == SIOCGIWENCODE || in wext_permission_check()
996 cmd == SIOCGIWENCODEEXT) && in wext_permission_check()
1005 unsigned int cmd, struct iw_request_info *info, in wext_ioctl_dispatch() argument
1009 int ret = wext_permission_check(cmd); in wext_ioctl_dispatch()
1016 ret = wireless_process_ioctl(net, iwr, cmd, info, standard, private); in wext_ioctl_dispatch()
1029 unsigned int cmd, in ioctl_standard_call() argument
1037 if (IW_IOCTL_IDX(cmd) >= standard_ioctl_num) in ioctl_standard_call()
1039 descr = &(standard_ioctl[IW_IOCTL_IDX(cmd)]); in ioctl_standard_call()
1050 wireless_send_event(dev, cmd, &(iwr->u), NULL); in ioctl_standard_call()
1052 ret = ioctl_standard_iw_point(&iwr->u.data, cmd, descr, in ioctl_standard_call()
1066 int wext_handle_ioctl(struct net *net, unsigned int cmd, void __user *arg) in wext_handle_ioctl() argument
1068 struct iw_request_info info = { .cmd = cmd, .flags = 0 }; in wext_handle_ioctl()
1077 ret = wext_ioctl_dispatch(net, &iwr, cmd, &info, in wext_handle_ioctl()
1081 IW_IS_GET(cmd) && in wext_handle_ioctl()
1091 unsigned int cmd, in compat_standard_call() argument
1100 descr = standard_ioctl + IW_IOCTL_IDX(cmd); in compat_standard_call()
1103 return ioctl_standard_call(dev, iwr, cmd, info, handler); in compat_standard_call()
1110 err = ioctl_standard_iw_point(&iwp, cmd, descr, handler, dev, info); in compat_standard_call()
1119 int compat_wext_handle_ioctl(struct net *net, unsigned int cmd, in compat_wext_handle_ioctl() argument
1136 info.cmd = cmd; in compat_wext_handle_ioctl()
1139 ret = wext_ioctl_dispatch(net, &iwr, cmd, &info, in compat_wext_handle_ioctl()
1144 IW_IS_GET(cmd) && in compat_wext_handle_ioctl()