Lines Matching defs:reply
237 struct sof_ipc_reply *reply;
240 /* get the generic reply */
241 reply = msg->reply_data;
242 snd_sof_dsp_mailbox_read(sdev, sdev->host_box.offset, reply, sizeof(*reply));
244 if (reply->error < 0)
245 return reply->error;
247 if (!reply->hdr.size) {
251 "empty reply received, expected %zu bytes\n",
254 dev_err(sdev->dev, "empty reply received\n");
260 if (reply->hdr.size == msg->reply_size) {
262 } else if (reply->hdr.size < msg->reply_size) {
264 "reply size (%u) is less than expected (%zu)\n",
265 reply->hdr.size, msg->reply_size);
267 msg->reply_size = reply->hdr.size;
271 "reply size (%u) exceeds the buffer size (%zu)\n",
272 reply->hdr.size, msg->reply_size);
277 * get the full message if reply->hdr.size <= msg->reply_size
278 * and the reply->hdr.size > sizeof(struct sof_ipc_reply)
280 if (!ret && msg->reply_size > sizeof(*reply))
288 /* wait for IPC message reply */
302 "ipc tx timed out for %#x (msg/reply size: %d/%zu)\n",
310 "ipc tx error for %#x (msg/reply size: %d/%zu): %d\n",
1012 dev_err(sdev->dev, "ipc reply unknown\n");