Lines Matching refs:msg

22 	char *msg;  member
92 status, ipc4_status[i].msg); in sof_ipc4_check_reply_status()
174 static void sof_ipc4_log_header(struct device *dev, u8 *text, struct sof_ipc4_msg *msg, in sof_ipc4_log_header() argument
181 val = msg->primary & SOF_IPC4_MSG_TARGET_MASK; in sof_ipc4_log_header()
182 type = SOF_IPC4_MSG_TYPE_GET(msg->primary); in sof_ipc4_log_header()
199 u32 notif = SOF_IPC4_NOTIFICATION_TYPE_GET(msg->primary); in sof_ipc4_log_header()
214 if (data_size_valid && msg->data_size) in sof_ipc4_log_header()
216 text, msg->primary, msg->extension, str, str2, in sof_ipc4_log_header()
217 msg->data_size); in sof_ipc4_log_header()
219 dev_dbg(dev, "%s: %#x|%#x: %s|%s\n", text, msg->primary, in sof_ipc4_log_header()
220 msg->extension, str, str2); in sof_ipc4_log_header()
222 if (data_size_valid && msg->data_size) in sof_ipc4_log_header()
224 text, msg->primary, msg->extension, str, in sof_ipc4_log_header()
225 msg->data_size); in sof_ipc4_log_header()
227 dev_dbg(dev, "%s: %#x|%#x: %s\n", text, msg->primary, in sof_ipc4_log_header()
228 msg->extension, str); in sof_ipc4_log_header()
232 static void sof_ipc4_log_header(struct device *dev, u8 *text, struct sof_ipc4_msg *msg, in sof_ipc4_log_header() argument
237 !SOF_IPC4_MSG_IS_MODULE_MSG(msg->primary) && in sof_ipc4_log_header()
238 SOF_IPC4_MSG_TYPE_GET(msg->primary) == SOF_IPC4_GLB_NOTIFICATION && in sof_ipc4_log_header()
239 SOF_IPC4_NOTIFICATION_TYPE_GET(msg->primary) == SOF_IPC4_NOTIFY_LOG_BUFFER_STATUS) in sof_ipc4_log_header()
242 if (data_size_valid && msg->data_size) in sof_ipc4_log_header()
244 msg->primary, msg->extension, msg->data_size); in sof_ipc4_log_header()
246 dev_dbg(dev, "%s: %#x|%#x\n", text, msg->primary, msg->extension); in sof_ipc4_log_header()
259 struct snd_sof_ipc_msg *msg = sdev->msg; in sof_ipc4_get_reply() local
264 ipc4_reply = msg->reply_data; in sof_ipc4_get_reply()
273 if (!msg->reply_size || !SOF_IPC4_MSG_IS_MODULE_MSG(ipc4_reply->primary) || in sof_ipc4_get_reply()
279 msg->reply_size); in sof_ipc4_get_reply()
287 struct snd_sof_ipc_msg *msg = &ipc->msg; in ipc4_wait_tx_done() local
288 struct sof_ipc4_msg *ipc4_msg = msg->msg_data; in ipc4_wait_tx_done()
293 ret = wait_event_timeout(msg->waitq, msg->ipc_complete, in ipc4_wait_tx_done()
302 if (msg->reply_error) { in ipc4_wait_tx_done()
305 ret = msg->reply_error; in ipc4_wait_tx_done()
308 struct sof_ipc4_msg *ipc4_reply = msg->reply_data; in ipc4_wait_tx_done()
313 if (msg->reply_size && ipc4_reply_data->data_ptr) { in ipc4_wait_tx_done()
316 msg->reply_size); in ipc4_wait_tx_done()
317 ipc4_reply_data->data_size = msg->reply_size; in ipc4_wait_tx_done()
385 struct sof_ipc4_msg *msg = NULL; in sof_ipc4_tx_msg() local
389 msg = msg_data; in sof_ipc4_tx_msg()
391 msg = reply_data; in sof_ipc4_tx_msg()
393 if (msg) in sof_ipc4_tx_msg()
394 sof_ipc4_dump_payload(sdev, msg->data_ptr, msg->data_size); in sof_ipc4_tx_msg()
528 struct snd_sof_ipc_msg *msg = &sdev->ipc->msg; in sof_ipc4_init_msg_memory() local
534 msg->reply_data = devm_kzalloc(sdev->dev, sdev->ipc->max_payload_size + in sof_ipc4_init_msg_memory()
536 if (!msg->reply_data) in sof_ipc4_init_msg_memory()
539 ipc4_msg = msg->reply_data; in sof_ipc4_init_msg_memory()
540 ipc4_msg->data_ptr = msg->reply_data + sizeof(struct sof_ipc4_msg); in sof_ipc4_init_msg_memory()
584 struct sof_ipc4_msg *ipc4_msg = sdev->ipc->msg.rx_data; in sof_ipc4_rx_msg()
654 struct sof_ipc4_msg msg; in sof_ipc4_set_core_state() local
662 msg.primary = SOF_IPC4_MSG_TYPE_SET(SOF_IPC4_MOD_SET_DX); in sof_ipc4_set_core_state()
663 msg.primary |= SOF_IPC4_MSG_DIR(SOF_IPC4_MSG_REQUEST); in sof_ipc4_set_core_state()
664 msg.primary |= SOF_IPC4_MSG_TARGET(SOF_IPC4_MODULE_MSG); in sof_ipc4_set_core_state()
665 msg.extension = 0; in sof_ipc4_set_core_state()
666 msg.data_ptr = &dx_state; in sof_ipc4_set_core_state()
667 msg.data_size = sizeof(dx_state); in sof_ipc4_set_core_state()
669 return sof_ipc4_tx_msg(sdev, &msg, msg.data_size, NULL, 0, false); in sof_ipc4_set_core_state()
688 struct sof_ipc4_msg msg = {{0}}; in sof_ipc4_set_pm_gate() local
690 msg.primary = SOF_IPC4_MSG_TYPE_SET(SOF_IPC4_MOD_SET_D0IX); in sof_ipc4_set_pm_gate()
691 msg.primary |= SOF_IPC4_MSG_DIR(SOF_IPC4_MSG_REQUEST); in sof_ipc4_set_pm_gate()
692 msg.primary |= SOF_IPC4_MSG_TARGET(SOF_IPC4_MODULE_MSG); in sof_ipc4_set_pm_gate()
693 msg.extension = flags; in sof_ipc4_set_pm_gate()
695 return sof_ipc4_tx_msg(sdev, &msg, 0, NULL, 0, true); in sof_ipc4_set_pm_gate()