Home
last modified time | relevance | path

Searched refs:reply (Results 1 – 25 of 26) sorted by relevance

12

/sound/soc/sof/
Dprobe.c32 struct sof_ipc_reply reply; in sof_ipc_probe_init() local
46 &reply, sizeof(reply)); in sof_ipc_probe_init()
63 struct sof_ipc_reply reply; in sof_ipc_probe_deinit() local
69 &reply, sizeof(reply)); in sof_ipc_probe_deinit()
77 struct sof_ipc_probe_info_params *reply; in sof_ipc_probe_info() local
84 reply = kzalloc(SOF_IPC_MSG_MAX_SIZE, GFP_KERNEL); in sof_ipc_probe_info()
85 if (!reply) in sof_ipc_probe_info()
91 msg.rhdr.hdr.size, reply, SOF_IPC_MSG_MAX_SIZE); in sof_ipc_probe_info()
92 if (ret < 0 || reply->rhdr.error < 0) in sof_ipc_probe_info()
95 if (!reply->num_elems) in sof_ipc_probe_info()
[all …]
Ddebug.c249 struct sof_ipc_reply reply; in sof_debug_ipc_flood_test() local
270 &reply, sizeof(reply)); in sof_debug_ipc_flood_test()
638 struct sof_ipc_dbg_mem_usage *reply; in memory_info_update() local
643 reply = kmalloc(SOF_IPC_MSG_MAX_SIZE, GFP_KERNEL); in memory_info_update()
644 if (!reply) in memory_info_update()
654 ret = sof_ipc_tx_message(sdev->ipc, msg.cmd, &msg, msg.size, reply, SOF_IPC_MSG_MAX_SIZE); in memory_info_update()
657 if (ret < 0 || reply->rhdr.error < 0) { in memory_info_update()
658 ret = min(ret, reply->rhdr.error); in memory_info_update()
663 if (struct_size(reply, elems, reply->num_elems) != reply->rhdr.hdr.size) { in memory_info_update()
665 reply->rhdr.hdr.size); in memory_info_update()
[all …]
Dsof-audio.c242 struct sof_ipc_reply reply; in sof_restore_pipelines() local
254 &reply, sizeof(reply)); in sof_restore_pipelines()
269 struct sof_ipc_reply reply; in sof_restore_pipelines() local
290 &reply, sizeof(reply)); in sof_restore_pipelines()
Dtopology.c123 struct sof_ipc_reply reply; in ipc_trigger() local
133 sizeof(stream), &reply, sizeof(reply)); in ipc_trigger()
2394 struct sof_ipc_comp_reply reply; in sof_widget_ready() local
2412 memset(&reply, 0, sizeof(reply)); in sof_widget_ready()
2459 ret = sof_widget_load_dai(scomp, index, swidget, tw, &reply, dai); in sof_widget_ready()
2469 ret = sof_widget_load_mixer(scomp, index, swidget, tw, &reply); in sof_widget_ready()
2472 ret = sof_widget_load_pga(scomp, index, swidget, tw, &reply); in sof_widget_ready()
2476 scontrol->readback_offset = reply.offset; in sof_widget_ready()
2482 ret = sof_widget_load_buffer(scomp, index, swidget, tw, &reply); in sof_widget_ready()
2485 ret = sof_widget_load_pipeline(scomp, index, swidget, tw, &reply); in sof_widget_ready()
[all …]
Dpm.c54 struct sof_ipc_reply reply; in sof_send_pm_ctx_ipc() local
64 sizeof(pm_ctx), &reply, sizeof(reply)); in sof_send_pm_ctx_ipc()
Dpcm.c42 const struct sof_ipc_pcm_params_reply *reply) in sof_pcm_dsp_params() argument
48 int ret = snd_sof_ipc_pcm_params(sdev, substream, reply); in sof_pcm_dsp_params()
103 struct sof_ipc_reply reply; in sof_pcm_dsp_pcm_free() local
112 sizeof(stream), &reply, sizeof(reply)); in sof_pcm_dsp_pcm_free()
317 struct sof_ipc_reply reply; in sof_pcm_trigger() local
410 sizeof(stream), &reply, sizeof(reply)); in sof_pcm_trigger()
Dtrace.c130 struct sof_ipc_reply reply; in sof_ipc_trace_update_filter() local
154 &reply, sizeof(reply)); in sof_ipc_trace_update_filter()
160 return ret ? ret : reply.error; in sof_ipc_trace_update_filter()
Dsof-priv.h210 const struct sof_ipc_pcm_params_reply *reply); /* mandatory */
588 const struct sof_ipc_pcm_params_reply *reply);
Dops.h415 const struct sof_ipc_pcm_params_reply *reply) in snd_sof_ipc_pcm_params() argument
417 return sof_ops(sdev)->ipc_pcm_params(sdev, substream, reply); in snd_sof_ipc_pcm_params()
/sound/soc/sof/intel/
Dhda-ipc.c71 struct sof_ipc_reply reply; in hda_dsp_ipc_get_reply() local
93 reply.error = 0; in hda_dsp_ipc_get_reply()
94 reply.hdr.cmd = SOF_IPC_GLB_REPLY; in hda_dsp_ipc_get_reply()
95 reply.hdr.size = sizeof(reply); in hda_dsp_ipc_get_reply()
96 memcpy(msg->reply_data, &reply, sizeof(reply)); in hda_dsp_ipc_get_reply()
101 sof_mailbox_read(sdev, sdev->host_box.offset, &reply, in hda_dsp_ipc_get_reply()
102 sizeof(reply)); in hda_dsp_ipc_get_reply()
104 if (reply.error < 0) { in hda_dsp_ipc_get_reply()
105 memcpy(msg->reply_data, &reply, sizeof(reply)); in hda_dsp_ipc_get_reply()
106 ret = reply.error; in hda_dsp_ipc_get_reply()
[all …]
Datom.c201 struct sof_ipc_reply reply; in atom_get_reply() local
215 sof_mailbox_read(sdev, sdev->host_box.offset, &reply, sizeof(reply)); in atom_get_reply()
217 if (reply.error < 0) { in atom_get_reply()
218 memcpy(msg->reply_data, &reply, sizeof(reply)); in atom_get_reply()
219 ret = reply.error; in atom_get_reply()
222 if (reply.hdr.size != msg->reply_size) { in atom_get_reply()
224 msg->reply_size, reply.hdr.size); in atom_get_reply()
Dbdw.c378 struct sof_ipc_reply reply; in bdw_get_reply() local
392 sof_mailbox_read(sdev, sdev->host_box.offset, &reply, sizeof(reply)); in bdw_get_reply()
394 if (reply.error < 0) { in bdw_get_reply()
395 memcpy(msg->reply_data, &reply, sizeof(reply)); in bdw_get_reply()
396 ret = reply.error; in bdw_get_reply()
399 if (reply.hdr.size != msg->reply_size) { in bdw_get_reply()
401 msg->reply_size, reply.hdr.size); in bdw_get_reply()
Dhda-dai.c161 struct sof_ipc_reply reply; in hda_link_config_ipc() local
187 &reply, sizeof(reply)); in hda_link_config_ipc()
428 struct sof_ipc_reply reply; in ssp_dai_hw_params() local
445 config->hdr.size, &reply, sizeof(reply)); in ssp_dai_hw_params()
Dintel-ipc.c46 const struct sof_ipc_pcm_params_reply *reply) in intel_ipc_pcm_params() argument
49 size_t posn_offset = reply->posn_offset; in intel_ipc_pcm_params()
Dhda.c73 struct sof_ipc_reply reply; in sdw_params_stream() local
88 config.hdr.cmd, &config, size, &reply, in sdw_params_stream()
89 sizeof(reply)); in sdw_params_stream()
105 struct sof_ipc_reply reply; in sdw_free_stream() local
119 config.hdr.cmd, &config, size, &reply, in sdw_free_stream()
120 sizeof(reply)); in sdw_free_stream()
Dhda-dsp.c357 struct sof_ipc_reply reply; in hda_dsp_send_pm_gate_ipc() local
368 &pm_gate, sizeof(pm_gate), &reply, in hda_dsp_send_pm_gate_ipc()
369 sizeof(reply)); in hda_dsp_send_pm_gate_ipc()
Dhda.h580 const struct sof_ipc_pcm_params_reply *reply);
/sound/soc/intel/catpt/
Dipc.c45 struct catpt_ipc_msg *reply) in catpt_ipc_msg_init() argument
50 ipc->rx.size = reply ? reply->size : 0; in catpt_ipc_msg_init()
87 struct catpt_ipc_msg *reply, int timeout) in catpt_dsp_do_send_msg() argument
96 (reply && reply->size > ipc->config.outbox_size)) in catpt_dsp_do_send_msg()
100 catpt_ipc_msg_init(ipc, reply); in catpt_dsp_do_send_msg()
114 if (reply) { in catpt_dsp_do_send_msg()
115 reply->header = ipc->rx.header; in catpt_dsp_do_send_msg()
117 if (!ret && reply->data) in catpt_dsp_do_send_msg()
118 memcpy(reply->data, ipc->rx.data, reply->size); in catpt_dsp_do_send_msg()
126 struct catpt_ipc_msg *reply, int timeout) in catpt_dsp_send_msg_timeout() argument
[all …]
Dmessages.c17 struct catpt_ipc_msg request = {{0}}, reply; in catpt_ipc_get_fw_version() local
21 reply.size = sizeof(*version); in catpt_ipc_get_fw_version()
22 reply.data = version; in catpt_ipc_get_fw_version()
24 ret = catpt_dsp_send_msg(cdev, request, &reply); in catpt_ipc_get_fw_version()
58 struct catpt_ipc_msg request, reply; in catpt_ipc_alloc_stream() local
94 reply.size = sizeof(*sinfo); in catpt_ipc_alloc_stream()
95 reply.data = sinfo; in catpt_ipc_alloc_stream()
97 ret = catpt_dsp_send_msg(cdev, request, &reply); in catpt_ipc_alloc_stream()
146 struct catpt_ipc_msg request, reply; in catpt_ipc_enter_dxstate() local
152 reply.size = sizeof(*context); in catpt_ipc_enter_dxstate()
[all …]
Dcore.h136 struct catpt_ipc_msg *reply, int timeout);
138 struct catpt_ipc_msg *reply);
/sound/soc/intel/common/
Dsst-ipc.c46 struct ipc_message *msg, struct sst_ipc_message *reply) in tx_wait_done() argument
65 if (reply) { in tx_wait_done()
66 reply->header = msg->rx.header; in tx_wait_done()
67 if (reply->data) in tx_wait_done()
68 memcpy(reply->data, msg->rx.data, msg->rx.size); in tx_wait_done()
80 struct sst_ipc_message *reply, int wait) in ipc_tx_message() argument
96 msg->rx.size = reply ? reply->size : 0; in ipc_tx_message()
110 return tx_wait_done(ipc, msg, reply); in ipc_tx_message()
181 struct sst_ipc_message request, struct sst_ipc_message *reply) in sst_ipc_tx_message_wait() argument
194 ret = ipc_tx_message(ipc, request, reply, 1); in sst_ipc_tx_message_wait()
[all …]
Dsst-ipc.h69 struct sst_ipc_message request, struct sst_ipc_message *reply);
75 struct sst_ipc_message request, struct sst_ipc_message *reply);
/sound/soc/sof/imx/
Dimx8m.c37 struct sof_ipc_reply reply; in imx8m_get_reply() local
46 sof_mailbox_read(sdev, sdev->host_box.offset, &reply, sizeof(reply)); in imx8m_get_reply()
48 if (reply.error < 0) { in imx8m_get_reply()
49 memcpy(msg->reply_data, &reply, sizeof(reply)); in imx8m_get_reply()
50 ret = reply.error; in imx8m_get_reply()
53 if (reply.hdr.size != msg->reply_size) { in imx8m_get_reply()
55 msg->reply_size, reply.hdr.size); in imx8m_get_reply()
251 const struct sof_ipc_pcm_params_reply *reply) in imx8m_ipc_pcm_params() argument
Dimx8.c64 struct sof_ipc_reply reply; in imx8_get_reply() local
73 sof_mailbox_read(sdev, sdev->host_box.offset, &reply, sizeof(reply)); in imx8_get_reply()
75 if (reply.error < 0) { in imx8_get_reply()
76 memcpy(msg->reply_data, &reply, sizeof(reply)); in imx8_get_reply()
77 ret = reply.error; in imx8_get_reply()
80 if (reply.hdr.size != msg->reply_size) { in imx8_get_reply()
82 msg->reply_size, reply.hdr.size); in imx8_get_reply()
387 const struct sof_ipc_pcm_params_reply *reply) in imx8_ipc_pcm_params() argument
/sound/soc/intel/skylake/
Dskl-sst-ipc.c392 enum skl_ipc_glb_reply reply; member
405 static int skl_ipc_set_reply_error_code(struct sst_generic_ipc *ipc, u32 reply) in skl_ipc_set_reply_error_code() argument
410 if (skl_err_map[i].reply == reply) in skl_ipc_set_reply_error_code()
416 reply, in skl_ipc_set_reply_error_code()
437 u32 reply = header.primary & IPC_GLB_REPLY_STATUS_MASK; in skl_ipc_process_reply() local
452 if (reply == IPC_GLB_REPLY_SUCCESS) { in skl_ipc_process_reply()
469 msg->errno = skl_ipc_set_reply_error_code(ipc, reply); in skl_ipc_process_reply()
976 struct sst_ipc_message request, reply = {0}; in skl_ipc_get_large_config() local
980 reply.data = kzalloc(SKL_ADSP_W1_SZ, GFP_KERNEL); in skl_ipc_get_large_config()
981 if (!reply.data) in skl_ipc_get_large_config()
[all …]

12