Lines Matching refs:descr

457 	const struct iw_ioctl_description *	descr = NULL;  in wireless_send_event()  local
490 descr = &(standard_ioctl[cmd_index]); in wireless_send_event()
494 descr = &(standard_event[cmd_index]); in wireless_send_event()
497 if (descr == NULL) { in wireless_send_event()
511 if (descr->header_type == IW_HEADER_TYPE_POINT) { in wireless_send_event()
513 if (wrqu->data.length > descr->max_tokens) { in wireless_send_event()
518 if (wrqu->data.length < descr->min_tokens) { in wireless_send_event()
525 extra_len = wrqu->data.length * descr->token_size; in wireless_send_event()
531 hdr_len = event_type_size[descr->header_type]; in wireless_send_event()
586 hdr_len = compat_event_type_size[descr->header_type]; in wireless_send_event()
617 if (descr->header_type == IW_HEADER_TYPE_POINT) { in wireless_send_event()
740 const struct iw_ioctl_description *descr, in ioctl_standard_iw_point() argument
750 extra_size = descr->max_tokens * descr->token_size; in ioctl_standard_iw_point()
758 if (iwp->length == descr->max_tokens + 1) in ioctl_standard_iw_point()
763 len = iwp->length * descr->token_size; in ioctl_standard_iw_point()
788 if (iwp->length > descr->max_tokens) in ioctl_standard_iw_point()
790 if (iwp->length < descr->min_tokens) in ioctl_standard_iw_point()
805 if ((descr->flags & IW_DESCR_FLAG_NOMAX) && in ioctl_standard_iw_point()
806 (user_length > descr->max_tokens)) { in ioctl_standard_iw_point()
811 extra_size = user_length * descr->token_size; in ioctl_standard_iw_point()
836 descr->token_size)) { in ioctl_standard_iw_point()
851 if (IW_IS_GET(cmd) && !(descr->flags & IW_DESCR_FLAG_NOMAX)) { in ioctl_standard_iw_point()
864 iwp->length = descr->max_tokens; in ioctl_standard_iw_point()
881 descr->token_size)) { in ioctl_standard_iw_point()
888 if ((descr->flags & IW_DESCR_FLAG_EVENT) && in ioctl_standard_iw_point()
892 if (descr->flags & IW_DESCR_FLAG_RESTRICT) in ioctl_standard_iw_point()
1033 const struct iw_ioctl_description * descr; in ioctl_standard_call() local
1039 descr = &(standard_ioctl[IW_IOCTL_IDX(cmd)]); in ioctl_standard_call()
1042 if (descr->header_type != IW_HEADER_TYPE_POINT) { in ioctl_standard_call()
1048 if ((descr->flags & IW_DESCR_FLAG_EVENT) && in ioctl_standard_call()
1052 ret = ioctl_standard_iw_point(&iwr->u.data, cmd, descr, in ioctl_standard_call()
1095 const struct iw_ioctl_description *descr; in compat_standard_call() local
1100 descr = standard_ioctl + IW_IOCTL_IDX(cmd); in compat_standard_call()
1102 if (descr->header_type != IW_HEADER_TYPE_POINT) in compat_standard_call()
1110 err = ioctl_standard_iw_point(&iwp, cmd, descr, handler, dev, info); in compat_standard_call()