Lines Matching refs:cmd
454 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()
613 compat_event->cmd = cmd; in wireless_send_event()
684 static iw_handler get_handler(struct net_device *dev, unsigned int cmd) in get_handler() argument
703 index = IW_IOCTL_IDX(cmd); in get_handler()
709 index = cmd - SIOCIWFIRSTPRIV; in get_handler()
718 static int ioctl_standard_iw_point(struct iw_point *iwp, unsigned int cmd, in ioctl_standard_iw_point() argument
732 switch (cmd) { in ioctl_standard_iw_point()
739 else if (IW_IS_SET(cmd) && (iwp->length != 0)) { in ioctl_standard_iw_point()
762 if (IW_IS_SET(cmd)) { in ioctl_standard_iw_point()
806 if (IW_IS_SET(cmd) && (iwp->length != 0)) { in ioctl_standard_iw_point()
814 if (cmd == SIOCSIWENCODEEXT) { in ioctl_standard_iw_point()
824 if (IW_IS_GET(cmd) && !(descr->flags & IW_DESCR_FLAG_NOMAX)) { in ioctl_standard_iw_point()
845 if (!err && IW_IS_GET(cmd)) { in ioctl_standard_iw_point()
869 wireless_send_event(dev, cmd, data, NULL); in ioctl_standard_iw_point()
871 wireless_send_event(dev, cmd, data, extra); in ioctl_standard_iw_point()
918 unsigned int cmd, in wireless_process_ioctl() argument
937 if (cmd == SIOCGIWSTATS) in wireless_process_ioctl()
938 return standard(dev, iwr, cmd, info, in wireless_process_ioctl()
942 if (cmd == SIOCGIWPRIV && dev->wireless_handlers) in wireless_process_ioctl()
943 return standard(dev, iwr, cmd, info, in wireless_process_ioctl()
952 handler = get_handler(dev, cmd); in wireless_process_ioctl()
955 if (cmd < SIOCIWFIRSTPRIV) in wireless_process_ioctl()
956 return standard(dev, iwr, cmd, info, handler); in wireless_process_ioctl()
958 return private(dev, iwr, cmd, info, handler); in wireless_process_ioctl()
962 return dev->netdev_ops->ndo_do_ioctl(dev, ifr, cmd); in wireless_process_ioctl()
969 static int wext_permission_check(unsigned int cmd) in wext_permission_check() argument
971 if ((IW_IS_SET(cmd) || cmd == SIOCGIWENCODE || in wext_permission_check()
972 cmd == SIOCGIWENCODEEXT) && in wext_permission_check()
981 unsigned int cmd, struct iw_request_info *info, in wext_ioctl_dispatch() argument
985 int ret = wext_permission_check(cmd); in wext_ioctl_dispatch()
992 ret = wireless_process_ioctl(net, ifr, cmd, info, standard, private); in wext_ioctl_dispatch()
1005 unsigned int cmd, in ioctl_standard_call() argument
1013 if (IW_IOCTL_IDX(cmd) >= standard_ioctl_num) in ioctl_standard_call()
1015 descr = &(standard_ioctl[IW_IOCTL_IDX(cmd)]); in ioctl_standard_call()
1026 wireless_send_event(dev, cmd, &(iwr->u), NULL); in ioctl_standard_call()
1028 ret = ioctl_standard_iw_point(&iwr->u.data, cmd, descr, in ioctl_standard_call()
1042 int wext_handle_ioctl(struct net *net, struct ifreq *ifr, unsigned int cmd, in wext_handle_ioctl() argument
1045 struct iw_request_info info = { .cmd = cmd, .flags = 0 }; in wext_handle_ioctl()
1048 ret = wext_ioctl_dispatch(net, ifr, cmd, &info, in wext_handle_ioctl()
1052 IW_IS_GET(cmd) && in wext_handle_ioctl()
1062 unsigned int cmd, in compat_standard_call() argument
1071 descr = standard_ioctl + IW_IOCTL_IDX(cmd); in compat_standard_call()
1074 return ioctl_standard_call(dev, iwr, cmd, info, handler); in compat_standard_call()
1081 err = ioctl_standard_iw_point(&iwp, cmd, descr, handler, dev, info); in compat_standard_call()
1090 int compat_wext_handle_ioctl(struct net *net, unsigned int cmd, in compat_wext_handle_ioctl() argument
1107 info.cmd = cmd; in compat_wext_handle_ioctl()
1110 ret = wext_ioctl_dispatch(net, (struct ifreq *) &iwr, cmd, &info, in compat_wext_handle_ioctl()
1115 IW_IS_GET(cmd) && in compat_wext_handle_ioctl()