Lines Matching refs:resp
156 rndis_query_cmplt_type *resp; in gen_ndis_query_resp() local
161 resp = (rndis_query_cmplt_type *) r->buf; in gen_ndis_query_resp()
163 if (!resp) in gen_ndis_query_resp()
180 outbuf = (__le32 *) &resp[1]; in gen_ndis_query_resp()
181 resp->InformationBufferOffset = __constant_cpu_to_le32(16); in gen_ndis_query_resp()
645 resp->InformationBufferLength = cpu_to_le32(length); in gen_ndis_query_resp()
646 r->length = length + sizeof *resp; in gen_ndis_query_resp()
647 resp->MessageLength = cpu_to_le32(r->length); in gen_ndis_query_resp()
654 rndis_set_cmplt_type *resp; in gen_ndis_set_resp() local
663 resp = (rndis_set_cmplt_type *) r->buf; in gen_ndis_set_resp()
664 if (!resp) in gen_ndis_set_resp()
776 rndis_init_cmplt_type *resp; in rndis_init_response() local
785 resp = (rndis_init_cmplt_type *) r->buf; in rndis_init_response()
787 resp->MessageType = __constant_cpu_to_le32( in rndis_init_response()
789 resp->MessageLength = __constant_cpu_to_le32(52); in rndis_init_response()
790 resp->RequestID = get_unaligned(&buf->RequestID); /* Still LE in msg buffer */ in rndis_init_response()
791 resp->Status = __constant_cpu_to_le32(RNDIS_STATUS_SUCCESS); in rndis_init_response()
792 resp->MajorVersion = __constant_cpu_to_le32(RNDIS_MAJOR_VERSION); in rndis_init_response()
793 resp->MinorVersion = __constant_cpu_to_le32(RNDIS_MINOR_VERSION); in rndis_init_response()
794 resp->DeviceFlags = __constant_cpu_to_le32(RNDIS_DF_CONNECTIONLESS); in rndis_init_response()
795 resp->Medium = __constant_cpu_to_le32(RNDIS_MEDIUM_802_3); in rndis_init_response()
796 resp->MaxPacketsPerTransfer = __constant_cpu_to_le32(1); in rndis_init_response()
797 resp->MaxTransferSize = cpu_to_le32( in rndis_init_response()
802 resp->PacketAlignmentFactor = __constant_cpu_to_le32(0); in rndis_init_response()
803 resp->AFListOffset = __constant_cpu_to_le32(0); in rndis_init_response()
804 resp->AFListSize = __constant_cpu_to_le32(0); in rndis_init_response()
815 rndis_query_cmplt_type *resp; in rndis_query_response() local
832 resp = (rndis_query_cmplt_type *) r->buf; in rndis_query_response()
834 resp->MessageType = __constant_cpu_to_le32(REMOTE_NDIS_QUERY_CMPLT); in rndis_query_response()
835 resp->RequestID = get_unaligned(&buf->RequestID); /* Still LE in msg buffer */ in rndis_query_response()
843 resp->Status = __constant_cpu_to_le32( in rndis_query_response()
845 resp->MessageLength = __constant_cpu_to_le32(sizeof *resp); in rndis_query_response()
846 resp->InformationBufferLength = __constant_cpu_to_le32(0); in rndis_query_response()
847 resp->InformationBufferOffset = __constant_cpu_to_le32(0); in rndis_query_response()
849 resp->Status = __constant_cpu_to_le32(RNDIS_STATUS_SUCCESS); in rndis_query_response()
860 rndis_set_cmplt_type *resp; in rndis_set_response() local
866 resp = (rndis_set_cmplt_type *) r->buf; in rndis_set_response()
882 resp->MessageType = __constant_cpu_to_le32(REMOTE_NDIS_SET_CMPLT); in rndis_set_response()
883 resp->MessageLength = __constant_cpu_to_le32(16); in rndis_set_response()
884 resp->RequestID = get_unaligned(&buf->RequestID); /* Still LE in msg buffer */ in rndis_set_response()
887 resp->Status = __constant_cpu_to_le32( in rndis_set_response()
890 resp->Status = __constant_cpu_to_le32(RNDIS_STATUS_SUCCESS); in rndis_set_response()
901 rndis_reset_cmplt_type *resp; in rndis_reset_response() local
907 resp = (rndis_reset_cmplt_type *) r->buf; in rndis_reset_response()
909 resp->MessageType = __constant_cpu_to_le32(REMOTE_NDIS_RESET_CMPLT); in rndis_reset_response()
910 resp->MessageLength = __constant_cpu_to_le32(16); in rndis_reset_response()
911 resp->Status = __constant_cpu_to_le32(RNDIS_STATUS_SUCCESS); in rndis_reset_response()
913 resp->AddressingReset = __constant_cpu_to_le32(1); in rndis_reset_response()
925 rndis_keepalive_cmplt_type *resp; in rndis_keepalive_response() local
933 resp = (rndis_keepalive_cmplt_type *) r->buf; in rndis_keepalive_response()
935 resp->MessageType = __constant_cpu_to_le32( in rndis_keepalive_response()
937 resp->MessageLength = __constant_cpu_to_le32(16); in rndis_keepalive_response()
938 resp->RequestID = get_unaligned(&buf->RequestID); /* Still LE in msg buffer */ in rndis_keepalive_response()
939 resp->Status = __constant_cpu_to_le32(RNDIS_STATUS_SUCCESS); in rndis_keepalive_response()
954 rndis_indicate_status_msg_type *resp; in rndis_indicate_status_msg() local
964 resp = (rndis_indicate_status_msg_type *) r->buf; in rndis_indicate_status_msg()
966 resp->MessageType = __constant_cpu_to_le32( in rndis_indicate_status_msg()
968 resp->MessageLength = __constant_cpu_to_le32(20); in rndis_indicate_status_msg()
969 resp->Status = cpu_to_le32(status); in rndis_indicate_status_msg()
970 resp->StatusBufferLength = __constant_cpu_to_le32(0); in rndis_indicate_status_msg()
971 resp->StatusBufferOffset = __constant_cpu_to_le32(0); in rndis_indicate_status_msg()