Lines Matching defs:iwp
739 static int ioctl_standard_iw_point(struct iw_point *iwp, unsigned int cmd,
758 if (iwp->length == descr->max_tokens + 1)
760 else if (IW_IS_SET(cmd) && (iwp->length != 0)) {
763 len = iwp->length * descr->token_size;
768 err = copy_from_user(essid, iwp->pointer, len);
772 if (essid[iwp->length - 1] == '\0')
780 iwp->length -= essid_compat;
785 if (!iwp->pointer && iwp->length != 0)
788 if (iwp->length > descr->max_tokens)
790 if (iwp->length < descr->min_tokens)
794 if (!iwp->pointer)
797 user_length = iwp->length;
833 if (IW_IS_SET(cmd) && (iwp->length != 0)) {
834 if (copy_from_user(extra, iwp->pointer,
835 iwp->length *
844 if (iwp->length < sizeof(*ee) + ee->key_len) {
858 * provided, and it may check iwp->length rather than having
860 * iwp->length, this ioctl just copies back max_token tokens
864 iwp->length = descr->max_tokens;
867 err = handler(dev, info, (union iwreq_data *) iwp, extra);
869 iwp->length += essid_compat;
874 if (user_length < iwp->length) {
879 if (copy_to_user(iwp->pointer, extra,
880 iwp->length *
890 union iwreq_data *data = (union iwreq_data *) iwp;
1097 struct iw_point iwp;
1106 iwp.pointer = compat_ptr(iwp_compat->pointer);
1107 iwp.length = iwp_compat->length;
1108 iwp.flags = iwp_compat->flags;
1110 err = ioctl_standard_iw_point(&iwp, cmd, descr, handler, dev, info);
1112 iwp_compat->pointer = ptr_to_compat(iwp.pointer);
1113 iwp_compat->length = iwp.length;
1114 iwp_compat->flags = iwp.flags;