Lines Matching full:resp
176 rndis_query_cmplt_type *resp; in gen_ndis_query_resp() local
182 resp = (rndis_query_cmplt_type *)r->buf; in gen_ndis_query_resp()
184 if (!resp) return -ENOMEM; in gen_ndis_query_resp()
198 outbuf = (__le32 *)&resp[1]; in gen_ndis_query_resp()
199 resp->InformationBufferOffset = cpu_to_le32(16); in gen_ndis_query_resp()
478 resp->InformationBufferLength = cpu_to_le32(length); in gen_ndis_query_resp()
479 r->length = length + sizeof(*resp); in gen_ndis_query_resp()
480 resp->MessageLength = cpu_to_le32(r->length); in gen_ndis_query_resp()
487 rndis_set_cmplt_type *resp; in gen_ndis_set_resp() local
492 resp = (rndis_set_cmplt_type *)r->buf; in gen_ndis_set_resp()
493 if (!resp) in gen_ndis_set_resp()
558 rndis_init_cmplt_type *resp; in rndis_init_response() local
567 resp = (rndis_init_cmplt_type *)r->buf; in rndis_init_response()
569 resp->MessageType = cpu_to_le32(RNDIS_MSG_INIT_C); in rndis_init_response()
570 resp->MessageLength = cpu_to_le32(52); in rndis_init_response()
571 resp->RequestID = buf->RequestID; /* Still LE in msg buffer */ in rndis_init_response()
572 resp->Status = cpu_to_le32(RNDIS_STATUS_SUCCESS); in rndis_init_response()
573 resp->MajorVersion = cpu_to_le32(RNDIS_MAJOR_VERSION); in rndis_init_response()
574 resp->MinorVersion = cpu_to_le32(RNDIS_MINOR_VERSION); in rndis_init_response()
575 resp->DeviceFlags = cpu_to_le32(RNDIS_DF_CONNECTIONLESS); in rndis_init_response()
576 resp->Medium = cpu_to_le32(RNDIS_MEDIUM_802_3); in rndis_init_response()
577 resp->MaxPacketsPerTransfer = cpu_to_le32(1); in rndis_init_response()
578 resp->MaxTransferSize = cpu_to_le32( in rndis_init_response()
583 resp->PacketAlignmentFactor = cpu_to_le32(0); in rndis_init_response()
584 resp->AFListOffset = cpu_to_le32(0); in rndis_init_response()
585 resp->AFListSize = cpu_to_le32(0); in rndis_init_response()
594 rndis_query_cmplt_type *resp; in rndis_query_response() local
611 resp = (rndis_query_cmplt_type *)r->buf; in rndis_query_response()
613 resp->MessageType = cpu_to_le32(RNDIS_MSG_QUERY_C); in rndis_query_response()
614 resp->RequestID = buf->RequestID; /* Still LE in msg buffer */ in rndis_query_response()
622 resp->Status = cpu_to_le32(RNDIS_STATUS_NOT_SUPPORTED); in rndis_query_response()
623 resp->MessageLength = cpu_to_le32(sizeof *resp); in rndis_query_response()
624 resp->InformationBufferLength = cpu_to_le32(0); in rndis_query_response()
625 resp->InformationBufferOffset = cpu_to_le32(0); in rndis_query_response()
627 resp->Status = cpu_to_le32(RNDIS_STATUS_SUCCESS); in rndis_query_response()
637 rndis_set_cmplt_type *resp; in rndis_set_response() local
650 resp = (rndis_set_cmplt_type *)r->buf; in rndis_set_response()
664 resp->MessageType = cpu_to_le32(RNDIS_MSG_SET_C); in rndis_set_response()
665 resp->MessageLength = cpu_to_le32(16); in rndis_set_response()
666 resp->RequestID = buf->RequestID; /* Still LE in msg buffer */ in rndis_set_response()
669 resp->Status = cpu_to_le32(RNDIS_STATUS_NOT_SUPPORTED); in rndis_set_response()
671 resp->Status = cpu_to_le32(RNDIS_STATUS_SUCCESS); in rndis_set_response()
680 rndis_reset_cmplt_type *resp; in rndis_reset_response() local
692 resp = (rndis_reset_cmplt_type *)r->buf; in rndis_reset_response()
694 resp->MessageType = cpu_to_le32(RNDIS_MSG_RESET_C); in rndis_reset_response()
695 resp->MessageLength = cpu_to_le32(16); in rndis_reset_response()
696 resp->Status = cpu_to_le32(RNDIS_STATUS_SUCCESS); in rndis_reset_response()
698 resp->AddressingReset = cpu_to_le32(1); in rndis_reset_response()
707 rndis_keepalive_cmplt_type *resp; in rndis_keepalive_response() local
715 resp = (rndis_keepalive_cmplt_type *)r->buf; in rndis_keepalive_response()
717 resp->MessageType = cpu_to_le32(RNDIS_MSG_KEEPALIVE_C); in rndis_keepalive_response()
718 resp->MessageLength = cpu_to_le32(16); in rndis_keepalive_response()
719 resp->RequestID = buf->RequestID; /* Still LE in msg buffer */ in rndis_keepalive_response()
720 resp->Status = cpu_to_le32(RNDIS_STATUS_SUCCESS); in rndis_keepalive_response()
732 rndis_indicate_status_msg_type *resp; in rndis_indicate_status_msg() local
741 resp = (rndis_indicate_status_msg_type *)r->buf; in rndis_indicate_status_msg()
743 resp->MessageType = cpu_to_le32(RNDIS_MSG_INDICATE); in rndis_indicate_status_msg()
744 resp->MessageLength = cpu_to_le32(20); in rndis_indicate_status_msg()
745 resp->Status = cpu_to_le32(status); in rndis_indicate_status_msg()
746 resp->StatusBufferLength = cpu_to_le32(0); in rndis_indicate_status_msg()
747 resp->StatusBufferOffset = cpu_to_le32(0); in rndis_indicate_status_msg()