Lines Matching refs:cmd

451 			 unsigned int		cmd,  in wireless_send_event()  argument
480 if (WARN_ON(cmd == SIOCGIWSCAN && extra)) in wireless_send_event()
484 if (cmd <= SIOCIWLAST) { in wireless_send_event()
485 cmd_index = IW_IOCTL_IDX(cmd); in wireless_send_event()
489 cmd_index = IW_EVENT_IDX(cmd); in wireless_send_event()
503 cmd); in wireless_send_event()
512 cmd, wrqu->data.length); in wireless_send_event()
517 cmd, wrqu->data.length); in wireless_send_event()
576 event->cmd = cmd; in wireless_send_event()
610 compat_event->cmd = cmd; in wireless_send_event()
681 static iw_handler get_handler(struct net_device *dev, unsigned int cmd) in get_handler() argument
700 index = IW_IOCTL_IDX(cmd); in get_handler()
706 index = cmd - SIOCIWFIRSTPRIV; in get_handler()
715 static int ioctl_standard_iw_point(struct iw_point *iwp, unsigned int cmd, in ioctl_standard_iw_point() argument
729 switch (cmd) { in ioctl_standard_iw_point()
736 else if (IW_IS_SET(cmd) && (iwp->length != 0)) { in ioctl_standard_iw_point()
759 if (IW_IS_SET(cmd)) { in ioctl_standard_iw_point()
803 if (IW_IS_SET(cmd) && (iwp->length != 0)) { in ioctl_standard_iw_point()
811 if (cmd == SIOCSIWENCODEEXT) { in ioctl_standard_iw_point()
821 if (IW_IS_GET(cmd) && !(descr->flags & IW_DESCR_FLAG_NOMAX)) { in ioctl_standard_iw_point()
842 if (!err && IW_IS_GET(cmd)) { in ioctl_standard_iw_point()
866 wireless_send_event(dev, cmd, data, NULL); in ioctl_standard_iw_point()
868 wireless_send_event(dev, cmd, data, extra); in ioctl_standard_iw_point()
915 unsigned int cmd, in wireless_process_ioctl() argument
934 if (cmd == SIOCGIWSTATS) in wireless_process_ioctl()
935 return standard(dev, iwr, cmd, info, in wireless_process_ioctl()
939 if (cmd == SIOCGIWPRIV && dev->wireless_handlers) in wireless_process_ioctl()
940 return standard(dev, iwr, cmd, info, in wireless_process_ioctl()
949 handler = get_handler(dev, cmd); in wireless_process_ioctl()
952 if (cmd < SIOCIWFIRSTPRIV) in wireless_process_ioctl()
953 return standard(dev, iwr, cmd, info, handler); in wireless_process_ioctl()
955 return private(dev, iwr, cmd, info, handler); in wireless_process_ioctl()
970 ret = dev->netdev_ops->ndo_do_ioctl(dev, (void *) &iwr_lcl, cmd); in wireless_process_ioctl()
979 return dev->netdev_ops->ndo_do_ioctl(dev, ifr, cmd); in wireless_process_ioctl()
987 static int wext_permission_check(unsigned int cmd) in wext_permission_check() argument
989 if ((IW_IS_SET(cmd) || cmd == SIOCGIWENCODE || in wext_permission_check()
990 cmd == SIOCGIWENCODEEXT) && in wext_permission_check()
999 unsigned int cmd, struct iw_request_info *info, in wext_ioctl_dispatch() argument
1003 int ret = wext_permission_check(cmd); in wext_ioctl_dispatch()
1010 ret = wireless_process_ioctl(net, ifr, cmd, info, standard, private); in wext_ioctl_dispatch()
1023 unsigned int cmd, in ioctl_standard_call() argument
1031 if (IW_IOCTL_IDX(cmd) >= standard_ioctl_num) in ioctl_standard_call()
1033 descr = &(standard_ioctl[IW_IOCTL_IDX(cmd)]); in ioctl_standard_call()
1044 wireless_send_event(dev, cmd, &(iwr->u), NULL); in ioctl_standard_call()
1046 ret = ioctl_standard_iw_point(&iwr->u.data, cmd, descr, in ioctl_standard_call()
1060 int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd, in wext_handle_ioctl() argument
1063 struct iw_request_info info = { .cmd = cmd, .flags = 0 }; in wext_handle_ioctl()
1066 ret = wext_ioctl_dispatch(net, ifr, cmd, &info, in wext_handle_ioctl()
1070 IW_IS_GET(cmd) && in wext_handle_ioctl()
1080 unsigned int cmd, in compat_standard_call() argument
1089 descr = standard_ioctl + IW_IOCTL_IDX(cmd); in compat_standard_call()
1092 return ioctl_standard_call(dev, iwr, cmd, info, handler); in compat_standard_call()
1099 err = ioctl_standard_iw_point(&iwp, cmd, descr, handler, dev, info); in compat_standard_call()
1108 int compat_wext_handle_ioctl(struct net *net, unsigned int cmd, in compat_wext_handle_ioctl() argument
1125 info.cmd = cmd; in compat_wext_handle_ioctl()
1128 ret = wext_ioctl_dispatch(net, (struct ifreq *) &iwr, cmd, &info, in compat_wext_handle_ioctl()
1133 IW_IS_GET(cmd) && in compat_wext_handle_ioctl()