Home
last modified time | relevance | path

Searched refs:header (Results 1 – 25 of 41) sorted by relevance

12

/sound/soc/intel/skylake/
Dskl-sst-ipc.c298 struct skl_ipc_header *header = (struct skl_ipc_header *)(&msg->tx.header); in skl_ipc_tx_msg() local
303 header->extension); in skl_ipc_tx_msg()
305 header->primary | SKL_ADSP_REG_HIPCI_BUSY); in skl_ipc_tx_msg()
329 struct skl_ipc_header *header = (struct skl_ipc_header *)(&ipc_header); in skl_ipc_reply_get_msg() local
333 header->primary); in skl_ipc_reply_get_msg()
346 struct skl_ipc_header header) in skl_ipc_process_notification() argument
350 if (IPC_GLB_NOTIFY_MSG_TYPE(header.primary)) { in skl_ipc_process_notification()
351 switch (IPC_GLB_NOTIFY_TYPE(header.primary)) { in skl_ipc_process_notification()
354 dev_err(ipc->dev, "FW Underrun %x\n", header.primary); in skl_ipc_process_notification()
359 header.primary); in skl_ipc_process_notification()
[all …]
Dcnl-sst.c317 struct skl_ipc_header header = {0}; in cnl_dsp_irq_thread_handler() local
347 header.primary = hipctdr; in cnl_dsp_irq_thread_handler()
348 header.extension = hipctdd; in cnl_dsp_irq_thread_handler()
350 header.primary); in cnl_dsp_irq_thread_handler()
352 header.extension); in cnl_dsp_irq_thread_handler()
354 if (CNL_IPC_GLB_NOTIFY_RSP_TYPE(header.primary)) { in cnl_dsp_irq_thread_handler()
356 skl_ipc_process_reply(ipc, header); in cnl_dsp_irq_thread_handler()
359 skl_ipc_process_notification(ipc, header); in cnl_dsp_irq_thread_handler()
389 struct skl_ipc_header *header = (struct skl_ipc_header *)(&msg->tx.header); in cnl_ipc_tx_msg() local
394 header->extension); in cnl_ipc_tx_msg()
[all …]
Dskl-nhlt.c140 nhlt->header.oem_id, nhlt->header.oem_table_id, in skl_nhlt_update_topology_bin()
141 nhlt->header.oem_revision); in skl_nhlt_update_topology_bin()
144 skl->pci_id, nhlt->header.oem_id, nhlt->header.oem_table_id, in skl_nhlt_update_topology_bin()
145 nhlt->header.oem_revision, "-tplg.bin"); in skl_nhlt_update_topology_bin()
162 nhlt->header.oem_id, nhlt->header.oem_table_id, in platform_id_show()
163 nhlt->header.oem_revision); in platform_id_show()
/sound/isa/wavefront/
Dwavefront_synth.c783 wavefront_send_patch (snd_wavefront_t *dev, wavefront_patch_info *header) in wavefront_send_patch() argument
790 header->number); in wavefront_send_patch()
792 if (header->number >= ARRAY_SIZE(dev->patch_status)) in wavefront_send_patch()
795 dev->patch_status[header->number] |= WF_SLOT_FILLED; in wavefront_send_patch()
797 bptr = munge_int32 (header->number, buf, 2); in wavefront_send_patch()
798 munge_buf ((unsigned char *)&header->hdr.p, bptr, WF_PATCH_BYTES); in wavefront_send_patch()
809 wavefront_send_program (snd_wavefront_t *dev, wavefront_patch_info *header) in wavefront_send_program() argument
816 header->number); in wavefront_send_program()
818 if (header->number >= ARRAY_SIZE(dev->prog_status)) in wavefront_send_program()
821 dev->prog_status[header->number] = WF_SLOT_USED; in wavefront_send_program()
[all …]
/sound/soc/intel/catpt/
Dtrace.h19 TP_PROTO(u32 header),
21 TP_ARGS(header),
24 __field(u32, header)
28 __entry->header = header;
31 TP_printk("0x%08x", __entry->header)
35 TP_PROTO(u32 header),
36 TP_ARGS(header)
40 TP_PROTO(u32 header),
41 TP_ARGS(header)
45 TP_PROTO(u32 header),
[all …]
Dipc.c49 ipc->rx.header = 0; in catpt_ipc_msg_init()
58 u32 header = tx->header | CATPT_IPCC_BUSY; in catpt_dsp_send_tx() local
60 trace_catpt_ipc_request(header); in catpt_dsp_send_tx()
64 catpt_writel_shim(cdev, IPCC, header); in catpt_dsp_send_tx()
115 reply->header = ipc->rx.header; in catpt_dsp_do_send_msg()
183 static void catpt_dsp_copy_rx(struct catpt_dev *cdev, u32 header) in catpt_dsp_copy_rx() argument
187 ipc->rx.header = header; in catpt_dsp_copy_rx()
195 static void catpt_dsp_process_response(struct catpt_dev *cdev, u32 header) in catpt_dsp_process_response() argument
197 union catpt_notify_msg msg = CATPT_MSG(header); in catpt_dsp_process_response()
227 catpt_dsp_copy_rx(cdev, header); in catpt_dsp_process_response()
Dmessages.c20 request.header = msg.val; in catpt_ipc_get_fw_version()
91 request.header = msg.val; in catpt_ipc_alloc_stream()
112 request.header = msg.val; in catpt_ipc_free_stream()
131 request.header = msg.val; in catpt_ipc_set_device_format()
149 request.header = msg.val; in catpt_ipc_enter_dxstate()
169 request.header = msg.val; in catpt_ipc_get_mixer_stream_info()
187 request.header = msg.val; in catpt_ipc_reset_stream()
204 request.header = msg.val; in catpt_ipc_pause_stream()
221 request.header = msg.val; in catpt_ipc_resume_stream()
254 request.header = msg.val; in catpt_ipc_set_volume()
[all …]
/sound/pci/asihpi/
Dhpidspcd.c28 struct code_header header; in hpi_dsp_code_open() local
42 if (firmware->size < sizeof(header)) { in hpi_dsp_code_open()
46 memcpy(&header, firmware->data, sizeof(header)); in hpi_dsp_code_open()
48 if ((header.type != 0x45444F43) || /* "CODE" */ in hpi_dsp_code_open()
49 (header.adapter != adapter) in hpi_dsp_code_open()
50 || (header.size != firmware->size)) { in hpi_dsp_code_open()
53 header.size, firmware->size); in hpi_dsp_code_open()
57 if (HPI_VER_MAJOR(header.version) != HPI_VER_MAJOR(HPI_VER)) { in hpi_dsp_code_open()
61 header.version, HPI_VER); in hpi_dsp_code_open()
65 if (header.version != HPI_VER) { in hpi_dsp_code_open()
[all …]
/sound/firewire/fireworks/
Dfireworks_command.c106 struct snd_efw_transaction *header; in efw_transaction() local
133 header = (struct snd_efw_transaction *)buf; in efw_transaction()
134 header->length = cpu_to_be32(cmd_bytes / sizeof(__be32)); in efw_transaction()
135 header->version = cpu_to_be32(1); in efw_transaction()
136 header->seqnum = cpu_to_be32(seqnum); in efw_transaction()
137 header->category = cpu_to_be32(category); in efw_transaction()
138 header->command = cpu_to_be32(command); in efw_transaction()
139 header->status = 0; in efw_transaction()
142 memcpy(header->params, params, param_bytes); in efw_transaction()
150 if ((be32_to_cpu(header->version) < 1) || in efw_transaction()
[all …]
/sound/soc/fsl/
Dimx-pcm-rpmsg.c49 dev_dbg(&rpdev->dev, "send cmd %d\n", msg->s_msg.header.cmd); in imx_rpmsg_pcm_send_message()
51 if (!(msg->s_msg.header.type == MSG_TYPE_C)) in imx_rpmsg_pcm_send_message()
63 if (msg->s_msg.header.type == MSG_TYPE_C) { in imx_rpmsg_pcm_send_message()
73 msg->s_msg.header.cmd); in imx_rpmsg_pcm_send_message()
79 memcpy(&info->msg[msg->r_msg.header.cmd].r_msg, in imx_rpmsg_pcm_send_message()
89 switch (msg->s_msg.header.cmd) { in imx_rpmsg_pcm_send_message()
100 dev_dbg(&rpdev->dev, "cmd:%d, resp %d\n", msg->s_msg.header.cmd, in imx_rpmsg_pcm_send_message()
148 msg->s_msg.header.cmd = TX_HW_PARAM; in imx_rpmsg_pcm_hw_params()
151 msg->s_msg.header.cmd = RX_HW_PARAM; in imx_rpmsg_pcm_hw_params()
220 msg->s_msg.header.cmd = TX_PERIOD_DONE; in imx_rpmsg_timer_callback()
[all …]
Dimx-audio-rpmsg.c32 src, r_msg->header.cmd, r_msg->param.resp); in imx_audio_rpmsg_cb()
34 switch (r_msg->header.type) { in imx_audio_rpmsg_cb()
37 switch (r_msg->header.cmd) { in imx_audio_rpmsg_cb()
/sound/soc/intel/common/
Dsst-ipc.c66 reply->header = msg->rx.header; in tx_wait_done()
93 msg->tx.header = request.header; in ipc_tx_message()
95 msg->rx.header = 0; in ipc_tx_message()
219 u64 header) in sst_ipc_reply_find_msg() argument
225 header = ipc->ops.reply_msg_match(header, &mask); in sst_ipc_reply_find_msg()
231 header); in sst_ipc_reply_find_msg()
236 if ((msg->tx.header & mask) == header) in sst_ipc_reply_find_msg()
Dsst-ipc.h19 u64 header; member
43 u64 (*reply_msg_match)(u64 header, u64 *mask);
78 u64 header);
/sound/soc/sof/
Dcontrol.c321 struct snd_ctl_tlv header; in snd_sof_bytes_ext_put() local
334 if (copy_from_user(&header, tlvd, sizeof(struct snd_ctl_tlv))) in snd_sof_bytes_ext_put()
338 if (header.length + sizeof(struct snd_ctl_tlv) > size) { in snd_sof_bytes_ext_put()
340 header.length, sizeof(struct snd_ctl_tlv), size); in snd_sof_bytes_ext_put()
345 if (header.length > be->max) { in snd_sof_bytes_ext_put()
347 header.length, be->max); in snd_sof_bytes_ext_put()
352 if (header.numid != scontrol->cmd) { in snd_sof_bytes_ext_put()
355 header.numid); in snd_sof_bytes_ext_put()
359 if (copy_from_user(cdata->data, tlvd->tlv, header.length)) in snd_sof_bytes_ext_put()
399 struct snd_ctl_tlv header; in snd_sof_bytes_ext_volatile_get() local
[all …]
Dloader.c625 struct snd_sof_fw_header *header; in check_header() local
634 header = (struct snd_sof_fw_header *)(fw->data + fw_offset); in check_header()
637 if (strncmp(header->sig, SND_SOF_FW_SIG, SND_SOF_FW_SIG_SIZE) != 0) { in check_header()
643 if (fw_size != header->file_size + sizeof(*header)) { in check_header()
645 fw_size, header->file_size + sizeof(*header)); in check_header()
650 header->file_size, header->num_modules, in check_header()
651 header->abi, sizeof(*header)); in check_header()
659 struct snd_sof_fw_header *header; in load_modules() local
666 header = (struct snd_sof_fw_header *)(fw->data + fw_offset); in load_modules()
673 sizeof(*header)); in load_modules()
[all …]
Dipc.c251 static int sof_ipc_tx_message_unlocked(struct snd_sof_ipc *ipc, u32 header, in sof_ipc_tx_message_unlocked() argument
271 msg->header = header; in sof_ipc_tx_message_unlocked()
296 ipc_log_header(sdev->dev, "ipc tx", msg->header); in sof_ipc_tx_message_unlocked()
306 int sof_ipc_tx_message(struct snd_sof_ipc *ipc, u32 header, in sof_ipc_tx_message() argument
322 return sof_ipc_tx_message_no_pm(ipc, header, msg_data, msg_bytes, in sof_ipc_tx_message()
332 int sof_ipc_tx_message_no_pm(struct snd_sof_ipc *ipc, u32 header, in sof_ipc_tx_message_no_pm() argument
345 ret = sof_ipc_tx_message_unlocked(ipc, header, msg_data, msg_bytes, in sof_ipc_tx_message_no_pm()
/sound/soc/intel/atom/sst/
Dsst_loader.c111 struct sst_fw_header *header; in sst_validate_fw_image() local
117 header = (struct sst_fw_header *)sst_fw_in_mem; in sst_validate_fw_image()
120 header->signature, header->file_size, header->modules, in sst_validate_fw_image()
121 header->file_format, sizeof(*header)); in sst_validate_fw_image()
124 if ((strncmp(header->signature, SST_FW_SIGN, 4) != 0) || in sst_validate_fw_image()
125 (size != header->file_size + sizeof(*header))) { in sst_validate_fw_image()
130 *num_modules = header->modules; in sst_validate_fw_image()
131 *module = (void *)sst_fw_in_mem + sizeof(*header); in sst_validate_fw_image()
Dsst_pvt.c302 void sst_fill_header_mrfld(union ipc_header_mrfld *header, in sst_fill_header_mrfld() argument
305 header->full = 0; in sst_fill_header_mrfld()
306 header->p.header_high.part.msg_id = msg; in sst_fill_header_mrfld()
307 header->p.header_high.part.task_id = task_id; in sst_fill_header_mrfld()
308 header->p.header_high.part.large = large; in sst_fill_header_mrfld()
309 header->p.header_high.part.drv_id = drv_id; in sst_fill_header_mrfld()
310 header->p.header_high.part.done = 0; in sst_fill_header_mrfld()
311 header->p.header_high.part.busy = 1; in sst_fill_header_mrfld()
312 header->p.header_high.part.res_rqd = 1; in sst_fill_header_mrfld()
Dsst.c48 union ipc_header_mrfld header; in intel_sst_interrupt_mrfld() local
61 header.full = sst_shim_read64(drv->shim, in intel_sst_interrupt_mrfld()
63 header.p.header_high.part.done = 0; in intel_sst_interrupt_mrfld()
64 sst_shim_write64(drv->shim, drv->ipc_reg.ipcx, header.full); in intel_sst_interrupt_mrfld()
83 header.full = sst_shim_read64(drv->shim, drv->ipc_reg.ipcd); in intel_sst_interrupt_mrfld()
85 if (sst_create_ipc_msg(&msg, header.p.header_high.part.large)) { in intel_sst_interrupt_mrfld()
90 if (header.p.header_high.part.large) { in intel_sst_interrupt_mrfld()
91 size = header.p.header_low_payload; in intel_sst_interrupt_mrfld()
98 header.p.header_low_payload = 0; in intel_sst_interrupt_mrfld()
102 msg->mrfld_header = header; in intel_sst_interrupt_mrfld()
[all …]
Dsst_ipc.c119 union ipc_header_mrfld header; in sst_post_message_mrfld() local
126 header.full = sst_shim_read64(sst_drv_ctx->shim, SST_IPCX); in sst_post_message_mrfld()
128 while (header.p.header_high.part.busy) { in sst_post_message_mrfld()
137 header.full = sst_shim_read64(sst_drv_ctx->shim, SST_IPCX); in sst_post_message_mrfld()
148 if (header.p.header_high.part.busy) { in sst_post_message_mrfld()
/sound/soc/intel/atom/
Dsst-atom-controls.c116 SST_FILL_DEFAULT_DESTINATION(cmd.header.dst); in sst_send_slot_map()
117 cmd.header.command_id = SBA_SET_SSP_SLOT_MAP; in sst_send_slot_map()
118 cmd.header.length = sizeof(struct sst_param_sba_ssp_slot_map) in sst_send_slot_map()
131 sizeof(cmd.header) + cmd.header.length); in sst_send_slot_map()
414 cmd.header.command_id = MMX_SET_GAIN; in sst_send_gain_cmd()
415 SST_FILL_DEFAULT_DESTINATION(cmd.header.dst); in sst_send_gain_cmd()
430 cmd.header.length = sizeof(struct sst_cmd_set_gain_dual) in sst_send_gain_cmd()
436 sizeof(cmd.header) + cmd.header.length); in sst_send_gain_cmd()
669 SST_FILL_DEFAULT_DESTINATION(cmd.header.dst); in sst_swm_mixer_event()
671 cmd.header.command_id = SBA_SET_SWM; in sst_swm_mixer_event()
[all …]
Dsst-atom-controls.h362 struct sst_dsp_header header; member
370 struct sst_dsp_header header; member
378 struct sst_dsp_header header; member
389 struct sst_dsp_header header; member
406 struct sst_dsp_header header; member
418 struct sst_dsp_header header; member
430 struct sst_dsp_header header; member
437 struct sst_dsp_header header; member
482 struct sst_dsp_header header; member
511 struct sst_dsp_header header; member
/sound/firewire/
Damdtp-stream.c691 cip_header = (__be32 *)params->header; in build_it_pkt_header()
1048 void *header, void *private_data) in process_rx_packets() argument
1052 const __be32 *ctx_header = header; in process_rx_packets()
1091 __be32 header[CIP_HEADER_QUADLETS]; in process_rx_packets() member
1117 void *header, void *private_data) in skip_rx_packets() argument
1121 const __be32 *ctx_header = header; in skip_rx_packets()
1149 void *header, void *private_data);
1152 size_t header_length, void *header, void *private_data) in process_rx_packets_intermediately() argument
1156 __be32 *ctx_header = header; in process_rx_packets_intermediately()
1203 void *header, void *private_data) in process_tx_packets() argument
[all …]
/sound/soc/codecs/
Drt5677-spi.c477 u8 header[RT5677_SPI_HEADER + 4]; in rt5677_spi_read() local
491 t[0].tx_buf = header; in rt5677_spi_read()
492 t[0].len = sizeof(header); in rt5677_spi_read()
503 header[0] = spi_cmd; in rt5677_spi_read()
504 header[1] = ((addr + offset) & 0xff000000) >> 24; in rt5677_spi_read()
505 header[2] = ((addr + offset) & 0x00ff0000) >> 16; in rt5677_spi_read()
506 header[3] = ((addr + offset) & 0x0000ff00) >> 8; in rt5677_spi_read()
507 header[4] = ((addr + offset) & 0x000000ff) >> 0; in rt5677_spi_read()
/sound/soc/
Dsoc-topology-test.c118 struct snd_soc_tplg_hdr header; member
123 .header = {
144 struct snd_soc_tplg_hdr header; member
151 .header = {
463 data->header.magic = cpu_to_le32(SND_SOC_TPLG_MAGIC + 1); in snd_soc_tplg_test_load_empty_tplg_bad_magic()
519 data->header.abi = cpu_to_le32(SND_SOC_TPLG_ABI_VERSION + 1); in snd_soc_tplg_test_load_empty_tplg_bad_abi()
575 data->header.size = cpu_to_le32(sizeof(struct snd_soc_tplg_hdr) + 1); in snd_soc_tplg_test_load_empty_tplg_bad_size()
632 data->header.payload_size = 0; in snd_soc_tplg_test_load_empty_tplg_bad_payload_size()

12