Lines Matching refs:cmd

21 static void ipc3_log_header(struct device *dev, u8 *text, u32 cmd)  in ipc3_log_header()  argument
29 glb = cmd & SOF_GLB_TYPE_MASK; in ipc3_log_header()
30 type = cmd & SOF_CMD_TYPE_MASK; in ipc3_log_header()
213 dev_dbg(dev, "%s: 0x%x: %s: %s\n", text, cmd, str, str2); in ipc3_log_header()
215 dev_dbg(dev, "%s: 0x%x: %s\n", text, cmd, str); in ipc3_log_header()
219 static inline void ipc3_log_header(struct device *dev, u8 *text, u32 cmd) in ipc3_log_header() argument
221 if ((cmd & SOF_GLB_TYPE_MASK) != SOF_IPC_GLB_TRACE_MSG) in ipc3_log_header()
222 dev_dbg(dev, "%s: 0x%x\n", text, cmd); in ipc3_log_header()
303 hdr->cmd, hdr->size, msg->reply_size); in ipc3_wait_tx_done()
311 hdr->cmd, hdr->size, msg->reply_size, ret); in ipc3_wait_tx_done()
314 ipc3_log_header(sdev->dev, "ipc tx succeeded", hdr->cmd); in ipc3_wait_tx_done()
340 ipc3_log_header(sdev->dev, "ipc tx", hdr->cmd); in ipc3_tx_msg_unlocked()
347 __func__, hdr->cmd, ret); in ipc3_tx_msg_unlocked()
429 if ((cdata->rhdr.hdr.cmd & SOF_GLB_TYPE_MASK) != SOF_IPC_GLB_COMP_MSG) { in sof_ipc3_set_get_data()
431 __func__, cdata->rhdr.hdr.cmd); in sof_ipc3_set_get_data()
604 while (ext_hdr->hdr.cmd == SOF_IPC_FW_READY) { in ipc3_fw_parse_ext_data()
825 static int ipc3_fw_ready(struct snd_sof_dev *sdev, u32 cmd) in ipc3_fw_ready() argument
838 dev_dbg(sdev->dev, "DSP is ready 0x%8.8x offset 0x%x\n", cmd, offset); in ipc3_fw_ready()
941 u32 msg_type = hdr->cmd & SOF_CMD_TYPE_MASK; in ipc3_stream_message()
942 u32 msg_id = SOF_IPC_MESSAGE_ID(hdr->cmd); in ipc3_stream_message()
963 u32 msg_type = hdr->cmd & SOF_CMD_TYPE_MASK; in ipc3_comp_notification()
981 u32 msg_type = hdr->cmd & SOF_CMD_TYPE_MASK; in ipc3_trace_message()
996 u32 cmd; in sof_ipc3_do_rx_work() local
999 ipc3_log_header(sdev->dev, "ipc rx", hdr->cmd); in sof_ipc3_do_rx_work()
1007 cmd = hdr->cmd & SOF_GLB_TYPE_MASK; in sof_ipc3_do_rx_work()
1010 switch (cmd) { in sof_ipc3_do_rx_work()
1017 err = ipc3_fw_ready(sdev, cmd); in sof_ipc3_do_rx_work()
1041 dev_err(sdev->dev, "%s: Unknown DSP message: 0x%x\n", __func__, cmd); in sof_ipc3_do_rx_work()
1052 ipc3_log_header(sdev->dev, "ipc rx done", hdr->cmd); in sof_ipc3_do_rx_work()
1096 .hdr.cmd = SOF_IPC_GLB_PM_MSG | SOF_IPC_PM_CORE_ENABLE, in sof_ipc3_set_core_state()
1107 static int sof_ipc3_ctx_ipc(struct snd_sof_dev *sdev, int cmd) in sof_ipc3_ctx_ipc() argument
1111 .hdr.cmd = SOF_IPC_GLB_PM_MSG | cmd, in sof_ipc3_ctx_ipc()
1136 pm_gate.hdr.cmd = SOF_IPC_GLB_PM_MSG | SOF_IPC_PM_GATE; in sof_ipc3_set_pm_gate()