Lines Matching refs:msg

23 	char *msg;  member
82 struct sof_ipc4_msg *msg);
96 status, ipc4_status[i].msg); in sof_ipc4_check_reply_status()
183 static void sof_ipc4_log_header(struct device *dev, u8 *text, struct sof_ipc4_msg *msg, in sof_ipc4_log_header() argument
190 val = msg->primary & SOF_IPC4_MSG_TARGET_MASK; in sof_ipc4_log_header()
191 type = SOF_IPC4_MSG_TYPE_GET(msg->primary); in sof_ipc4_log_header()
208 u32 notif = SOF_IPC4_NOTIFICATION_TYPE_GET(msg->primary); in sof_ipc4_log_header()
223 if (data_size_valid && msg->data_size) in sof_ipc4_log_header()
225 text, msg->primary, msg->extension, str, str2, in sof_ipc4_log_header()
226 msg->data_size); in sof_ipc4_log_header()
228 dev_dbg(dev, "%s: %#x|%#x: %s|%s\n", text, msg->primary, in sof_ipc4_log_header()
229 msg->extension, str, str2); in sof_ipc4_log_header()
231 if (data_size_valid && msg->data_size) in sof_ipc4_log_header()
233 text, msg->primary, msg->extension, str, in sof_ipc4_log_header()
234 msg->data_size); in sof_ipc4_log_header()
236 dev_dbg(dev, "%s: %#x|%#x: %s\n", text, msg->primary, in sof_ipc4_log_header()
237 msg->extension, str); in sof_ipc4_log_header()
261 static void sof_ipc4_log_header(struct device *dev, u8 *text, struct sof_ipc4_msg *msg, in sof_ipc4_log_header() argument
266 !SOF_IPC4_MSG_IS_MODULE_MSG(msg->primary) && in sof_ipc4_log_header()
267 SOF_IPC4_MSG_TYPE_GET(msg->primary) == SOF_IPC4_GLB_NOTIFICATION && in sof_ipc4_log_header()
268 SOF_IPC4_NOTIFICATION_TYPE_GET(msg->primary) == SOF_IPC4_NOTIFY_LOG_BUFFER_STATUS) in sof_ipc4_log_header()
271 if (data_size_valid && msg->data_size) in sof_ipc4_log_header()
273 msg->primary, msg->extension, msg->data_size); in sof_ipc4_log_header()
275 dev_dbg(dev, "%s: %#x|%#x\n", text, msg->primary, msg->extension); in sof_ipc4_log_header()
293 struct snd_sof_ipc_msg *msg = sdev->msg; in sof_ipc4_get_reply() local
298 ipc4_reply = msg->reply_data; in sof_ipc4_get_reply()
307 if (!msg->reply_size || !SOF_IPC4_MSG_IS_MODULE_MSG(ipc4_reply->primary) || in sof_ipc4_get_reply()
313 msg->reply_size); in sof_ipc4_get_reply()
321 struct snd_sof_ipc_msg *msg = &ipc->msg; in ipc4_wait_tx_done() local
322 struct sof_ipc4_msg *ipc4_msg = msg->msg_data; in ipc4_wait_tx_done()
327 ret = wait_event_timeout(msg->waitq, msg->ipc_complete, in ipc4_wait_tx_done()
336 if (msg->reply_error) { in ipc4_wait_tx_done()
339 ret = msg->reply_error; in ipc4_wait_tx_done()
342 struct sof_ipc4_msg *ipc4_reply = msg->reply_data; in ipc4_wait_tx_done()
347 if (msg->reply_size && ipc4_reply_data->data_ptr) { in ipc4_wait_tx_done()
350 msg->reply_size); in ipc4_wait_tx_done()
351 ipc4_reply_data->data_size = msg->reply_size; in ipc4_wait_tx_done()
419 struct sof_ipc4_msg *msg = NULL; in sof_ipc4_tx_msg() local
423 msg = msg_data; in sof_ipc4_tx_msg()
425 msg = reply_data; in sof_ipc4_tx_msg()
427 if (msg) in sof_ipc4_tx_msg()
428 sof_ipc4_dump_payload(sdev, msg->data_ptr, msg->data_size); in sof_ipc4_tx_msg()
562 struct snd_sof_ipc_msg *msg = &sdev->ipc->msg; in sof_ipc4_init_msg_memory() local
568 msg->reply_data = devm_kzalloc(sdev->dev, sdev->ipc->max_payload_size + in sof_ipc4_init_msg_memory()
570 if (!msg->reply_data) in sof_ipc4_init_msg_memory()
573 ipc4_msg = msg->reply_data; in sof_ipc4_init_msg_memory()
574 ipc4_msg->data_ptr = msg->reply_data + sizeof(struct sof_ipc4_msg); in sof_ipc4_init_msg_memory()
670 struct sof_ipc4_msg *ipc4_msg = sdev->ipc->msg.rx_data; in sof_ipc4_rx_msg()
753 struct sof_ipc4_msg msg; in sof_ipc4_set_core_state() local
761 msg.primary = SOF_IPC4_MSG_TYPE_SET(SOF_IPC4_MOD_SET_DX); in sof_ipc4_set_core_state()
762 msg.primary |= SOF_IPC4_MSG_DIR(SOF_IPC4_MSG_REQUEST); in sof_ipc4_set_core_state()
763 msg.primary |= SOF_IPC4_MSG_TARGET(SOF_IPC4_MODULE_MSG); in sof_ipc4_set_core_state()
764 msg.extension = 0; in sof_ipc4_set_core_state()
765 msg.data_ptr = &dx_state; in sof_ipc4_set_core_state()
766 msg.data_size = sizeof(dx_state); in sof_ipc4_set_core_state()
768 return sof_ipc4_tx_msg(sdev, &msg, msg.data_size, NULL, 0, false); in sof_ipc4_set_core_state()
787 struct sof_ipc4_msg msg = {{0}}; in sof_ipc4_set_pm_gate() local
789 msg.primary = SOF_IPC4_MSG_TYPE_SET(SOF_IPC4_MOD_SET_D0IX); in sof_ipc4_set_pm_gate()
790 msg.primary |= SOF_IPC4_MSG_DIR(SOF_IPC4_MSG_REQUEST); in sof_ipc4_set_pm_gate()
791 msg.primary |= SOF_IPC4_MSG_TARGET(SOF_IPC4_MODULE_MSG); in sof_ipc4_set_pm_gate()
792 msg.extension = flags; in sof_ipc4_set_pm_gate()
794 return sof_ipc4_tx_msg(sdev, &msg, 0, NULL, 0, true); in sof_ipc4_set_pm_gate()
892 struct sof_ipc4_msg msg; in sof_ipc4_mic_privacy_state_change() local
895 msg.primary = SOF_IPC4_MSG_TARGET(SOF_IPC4_MODULE_MSG); in sof_ipc4_mic_privacy_state_change()
896 msg.primary |= SOF_IPC4_MSG_DIR(SOF_IPC4_MSG_REQUEST); in sof_ipc4_mic_privacy_state_change()
897 msg.primary |= SOF_IPC4_MOD_ID(SOF_IPC4_MOD_INIT_BASEFW_MOD_ID); in sof_ipc4_mic_privacy_state_change()
898 msg.primary |= SOF_IPC4_MOD_INSTANCE(SOF_IPC4_MOD_INIT_BASEFW_INSTANCE_ID); in sof_ipc4_mic_privacy_state_change()
899 msg.extension = SOF_IPC4_MOD_EXT_MSG_PARAM_ID(SOF_IPC4_FW_PARAM_MIC_PRIVACY_STATE_CHANGE); in sof_ipc4_mic_privacy_state_change()
901 msg.data_size = sizeof(data); in sof_ipc4_mic_privacy_state_change()
902 msg.data_ptr = &data; in sof_ipc4_mic_privacy_state_change()
904 sof_ipc4_set_get_data(sdev, &msg, msg.data_size, true); in sof_ipc4_mic_privacy_state_change()