Lines Matching refs:resp
97 rndis_query_cmplt_type *resp; in gen_ndis_query_resp() local
100 resp = (rndis_query_cmplt_type *) r->buf; in gen_ndis_query_resp()
102 if (!resp) return -ENOMEM; in gen_ndis_query_resp()
113 tmp = (u32 *) ((u8 *)resp + 24); in gen_ndis_query_resp()
129 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0); in gen_ndis_query_resp()
137 *((u32 *) resp + 6) = cpu_to_le32 ( in gen_ndis_query_resp()
147 *((u32 *) resp + 6) = cpu_to_le32 ( in gen_ndis_query_resp()
157 *((u32 *) resp + 6) = cpu_to_le32 ( in gen_ndis_query_resp()
161 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0); in gen_ndis_query_resp()
172 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0); in gen_ndis_query_resp()
174 *((u32 *) resp + 6) = cpu_to_le32 ( in gen_ndis_query_resp()
184 *((u32 *) resp + 6) = cpu_to_le32 ( in gen_ndis_query_resp()
195 *((u32 *) resp + 6) = cpu_to_le32 ( in gen_ndis_query_resp()
205 *((u32 *) resp + 6) = cpu_to_le32 ( in gen_ndis_query_resp()
214 memcpy ((u8 *) resp + 24, in gen_ndis_query_resp()
223 *((u32 *) resp + 6) = rndis_driver_version; in gen_ndis_query_resp()
231 *((u32 *) resp + 6) = cpu_to_le32 ( in gen_ndis_query_resp()
240 *((u32 *) resp + 6) = __constant_cpu_to_le32( in gen_ndis_query_resp()
249 *((u32 *) resp + 6) = cpu_to_le32 ( in gen_ndis_query_resp()
258 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0); in gen_ndis_query_resp()
269 *((u32 *) resp + 6) = __constant_cpu_to_le32( in gen_ndis_query_resp()
282 *((u32 *) resp + 6) = cpu_to_le32 ( in gen_ndis_query_resp()
288 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0); in gen_ndis_query_resp()
298 *((u32 *) resp + 6) = cpu_to_le32 ( in gen_ndis_query_resp()
304 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0); in gen_ndis_query_resp()
314 *((u32 *) resp + 6) = cpu_to_le32 ( in gen_ndis_query_resp()
319 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0); in gen_ndis_query_resp()
328 *((u32 *) resp + 6) = cpu_to_le32 ( in gen_ndis_query_resp()
333 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0); in gen_ndis_query_resp()
342 *((u32 *) resp + 6) = cpu_to_le32 ( in gen_ndis_query_resp()
347 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0); in gen_ndis_query_resp()
362 *((u32 *) resp + 6) = cpu_to_le32 ( in gen_ndis_query_resp()
372 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0); in gen_ndis_query_resp()
382 *((u32 *) resp + 6) = cpu_to_le32 ( in gen_ndis_query_resp()
392 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0); in gen_ndis_query_resp()
400 *((u32 *) resp + 6) = cpu_to_le32 ( in gen_ndis_query_resp()
405 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0); in gen_ndis_query_resp()
413 *((u32 *) resp + 6) = cpu_to_le32 ( in gen_ndis_query_resp()
418 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0); in gen_ndis_query_resp()
426 *((u32 *) resp + 6) = cpu_to_le32 ( in gen_ndis_query_resp()
431 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0); in gen_ndis_query_resp()
439 *((u32 *) resp + 6) = cpu_to_le32 ( in gen_ndis_query_resp()
444 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0); in gen_ndis_query_resp()
451 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0); in gen_ndis_query_resp()
457 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0); in gen_ndis_query_resp()
464 *((u32 *) resp + 6) = cpu_to_le32 ( in gen_ndis_query_resp()
469 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0); in gen_ndis_query_resp()
477 *((u32 *) resp + 6) = cpu_to_le32 ( in gen_ndis_query_resp()
482 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0); in gen_ndis_query_resp()
490 *((u32 *) resp + 6) = cpu_to_le32 ( in gen_ndis_query_resp()
495 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0); in gen_ndis_query_resp()
503 *((u32 *) resp + 6) = cpu_to_le32 ( in gen_ndis_query_resp()
508 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0); in gen_ndis_query_resp()
516 *((u32 *) resp + 6) = cpu_to_le32 ( in gen_ndis_query_resp()
521 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0); in gen_ndis_query_resp()
528 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0); in gen_ndis_query_resp()
540 memcpy ((u8 *) resp + 24, in gen_ndis_query_resp()
545 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0); in gen_ndis_query_resp()
555 memcpy ((u8 *) resp + 24, in gen_ndis_query_resp()
567 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0xE0000000); in gen_ndis_query_resp()
576 *((u32 *) resp + 6) = __constant_cpu_to_le32 (1); in gen_ndis_query_resp()
592 *((u32 *) resp + 6) = cpu_to_le32 ( in gen_ndis_query_resp()
603 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0); in gen_ndis_query_resp()
611 *((u32 *) resp + 6) = __constant_cpu_to_le32 (0); in gen_ndis_query_resp()
661 memset (resp, 0, length); in gen_ndis_query_resp()
663 struct NDIS_PNP_CAPABILITIES *caps = (void *) resp; in gen_ndis_query_resp()
687 resp->InformationBufferOffset = __constant_cpu_to_le32 (16); in gen_ndis_query_resp()
688 resp->InformationBufferLength = cpu_to_le32 (length); in gen_ndis_query_resp()
689 resp->MessageLength = cpu_to_le32 (24 + length); in gen_ndis_query_resp()
697 rndis_set_cmplt_type *resp; in gen_ndis_set_resp() local
703 resp = (rndis_set_cmplt_type *) r->buf; in gen_ndis_set_resp()
704 if (!resp) in gen_ndis_set_resp()
807 rndis_init_cmplt_type *resp; in rndis_init_response() local
816 resp = (rndis_init_cmplt_type *) r->buf; in rndis_init_response()
818 if (!resp) return -ENOMEM; in rndis_init_response()
820 resp->MessageType = __constant_cpu_to_le32 ( in rndis_init_response()
822 resp->MessageLength = __constant_cpu_to_le32 (52); in rndis_init_response()
823 resp->RequestID = buf->RequestID; /* Still LE in msg buffer */ in rndis_init_response()
824 resp->Status = __constant_cpu_to_le32 (RNDIS_STATUS_SUCCESS); in rndis_init_response()
825 resp->MajorVersion = __constant_cpu_to_le32 (RNDIS_MAJOR_VERSION); in rndis_init_response()
826 resp->MinorVersion = __constant_cpu_to_le32 (RNDIS_MINOR_VERSION); in rndis_init_response()
827 resp->DeviceFlags = __constant_cpu_to_le32 (RNDIS_DF_CONNECTIONLESS); in rndis_init_response()
828 resp->Medium = __constant_cpu_to_le32 (RNDIS_MEDIUM_802_3); in rndis_init_response()
829 resp->MaxPacketsPerTransfer = __constant_cpu_to_le32 (1); in rndis_init_response()
830 resp->MaxTransferSize = cpu_to_le32 ( in rndis_init_response()
835 resp->PacketAlignmentFactor = __constant_cpu_to_le32 (0); in rndis_init_response()
836 resp->AFListOffset = __constant_cpu_to_le32 (0); in rndis_init_response()
837 resp->AFListSize = __constant_cpu_to_le32 (0); in rndis_init_response()
848 rndis_query_cmplt_type *resp; in rndis_query_response() local
864 resp = (rndis_query_cmplt_type *) r->buf; in rndis_query_response()
866 if (!resp) return -ENOMEM; in rndis_query_response()
868 resp->MessageType = __constant_cpu_to_le32 (REMOTE_NDIS_QUERY_CMPLT); in rndis_query_response()
869 resp->MessageLength = __constant_cpu_to_le32 (24); in rndis_query_response()
870 resp->RequestID = buf->RequestID; /* Still LE in msg buffer */ in rndis_query_response()
874 resp->Status = __constant_cpu_to_le32 ( in rndis_query_response()
876 resp->InformationBufferLength = __constant_cpu_to_le32 (0); in rndis_query_response()
877 resp->InformationBufferOffset = __constant_cpu_to_le32 (0); in rndis_query_response()
879 resp->Status = __constant_cpu_to_le32 (RNDIS_STATUS_SUCCESS); in rndis_query_response()
890 rndis_set_cmplt_type *resp; in rndis_set_response() local
896 resp = (rndis_set_cmplt_type *) r->buf; in rndis_set_response()
897 if (!resp) return -ENOMEM; in rndis_set_response()
914 resp->MessageType = __constant_cpu_to_le32 (REMOTE_NDIS_SET_CMPLT); in rndis_set_response()
915 resp->MessageLength = __constant_cpu_to_le32 (16); in rndis_set_response()
916 resp->RequestID = buf->RequestID; /* Still LE in msg buffer */ in rndis_set_response()
919 resp->Status = __constant_cpu_to_le32 (RNDIS_STATUS_NOT_SUPPORTED); in rndis_set_response()
920 else resp->Status = __constant_cpu_to_le32 (RNDIS_STATUS_SUCCESS); in rndis_set_response()
931 rndis_reset_cmplt_type *resp; in rndis_reset_response() local
937 resp = (rndis_reset_cmplt_type *) r->buf; in rndis_reset_response()
938 if (!resp) return -ENOMEM; in rndis_reset_response()
940 resp->MessageType = __constant_cpu_to_le32 (REMOTE_NDIS_RESET_CMPLT); in rndis_reset_response()
941 resp->MessageLength = __constant_cpu_to_le32 (16); in rndis_reset_response()
942 resp->Status = __constant_cpu_to_le32 (RNDIS_STATUS_SUCCESS); in rndis_reset_response()
944 resp->AddressingReset = __constant_cpu_to_le32 (1); in rndis_reset_response()
956 rndis_keepalive_cmplt_type *resp; in rndis_keepalive_response() local
962 resp = (rndis_keepalive_cmplt_type *) r->buf; in rndis_keepalive_response()
963 if (!resp) return -ENOMEM; in rndis_keepalive_response()
965 resp->MessageType = __constant_cpu_to_le32 ( in rndis_keepalive_response()
967 resp->MessageLength = __constant_cpu_to_le32 (16); in rndis_keepalive_response()
968 resp->RequestID = buf->RequestID; /* Still LE in msg buffer */ in rndis_keepalive_response()
969 resp->Status = __constant_cpu_to_le32 (RNDIS_STATUS_SUCCESS); in rndis_keepalive_response()
984 rndis_indicate_status_msg_type *resp; in rndis_indicate_status_msg() local
994 resp = (rndis_indicate_status_msg_type *) r->buf; in rndis_indicate_status_msg()
995 if (!resp) return -ENOMEM; in rndis_indicate_status_msg()
997 resp->MessageType = __constant_cpu_to_le32 ( in rndis_indicate_status_msg()
999 resp->MessageLength = __constant_cpu_to_le32 (20); in rndis_indicate_status_msg()
1000 resp->Status = cpu_to_le32 (status); in rndis_indicate_status_msg()
1001 resp->StatusBufferLength = __constant_cpu_to_le32 (0); in rndis_indicate_status_msg()
1002 resp->StatusBufferOffset = __constant_cpu_to_le32 (0); in rndis_indicate_status_msg()