Lines Matching full:reply
36 * struct qnap_mcu_reply - Reply to a command
38 * @data: Buffer to store reply payload in
39 * @length: Expected reply length, including the checksum
41 * @done: Triggered when the entire reply has been received
55 * @reply: Reply data structure
62 struct qnap_mcu_reply reply;
103 struct qnap_mcu_reply *reply = &mcu->reply;
107 if (!reply->length) {
113 reply->data[reply->received] = *src++;
114 reply->received++;
116 if (reply->received == reply->length) {
118 reply->length = 0;
120 complete(&reply->done);
151 struct qnap_mcu_reply *reply = &mcu->reply;
161 reply->data = rx;
162 reply->length = length;
163 reply->received = 0;
164 reinit_completion(&reply->done);
170 if (!wait_for_completion_timeout(&reply->done, msecs_to_jiffies(QNAP_MCU_TIMEOUT_MS))) {
216 /* Reply is the 2 command-bytes + 4 bytes describing the version */
282 init_completion(&mcu->reply.done);