Lines Matching refs:iwp
65 static int adjust_priv_size(__u16 args, struct iw_point *iwp)
67 int num = iwp->length;
137 static int ioctl_private_iw_point(struct iw_point *iwp, unsigned int cmd,
147 if (!iwp->pointer && iwp->length != 0)
150 if (iwp->length > (descr->set_args & IW_PRIV_SIZE_MASK))
152 } else if (!iwp->pointer)
160 if (IW_IS_SET(cmd) && (iwp->length != 0)) {
161 if (copy_from_user(extra, iwp->pointer, extra_size)) {
168 err = handler(dev, info, (union iwreq_data *) iwp, extra);
176 extra_size = adjust_priv_size(descr->get_args, iwp);
178 if (copy_to_user(iwp->pointer, extra, extra_size))
228 struct iw_point iwp;
231 iwp.pointer = compat_ptr(iwp_compat->pointer);
232 iwp.length = iwp_compat->length;
233 iwp.flags = iwp_compat->flags;
235 ret = ioctl_private_iw_point(&iwp, cmd, descr,
238 iwp_compat->pointer = ptr_to_compat(iwp.pointer);
239 iwp_compat->length = iwp.length;
240 iwp_compat->flags = iwp.flags;