/sound/synth/ |
D | util_mem.c | 27 struct snd_util_memhdr *hdr; in snd_util_memhdr_new() local 29 hdr = kzalloc(sizeof(*hdr), GFP_KERNEL); in snd_util_memhdr_new() 30 if (hdr == NULL) in snd_util_memhdr_new() 32 hdr->size = memsize; in snd_util_memhdr_new() 33 mutex_init(&hdr->block_mutex); in snd_util_memhdr_new() 34 INIT_LIST_HEAD(&hdr->block); in snd_util_memhdr_new() 36 return hdr; in snd_util_memhdr_new() 42 void snd_util_memhdr_free(struct snd_util_memhdr *hdr) in snd_util_memhdr_free() argument 46 if (!hdr) in snd_util_memhdr_free() 49 while ((p = hdr->block.next) != &hdr->block) { in snd_util_memhdr_free() [all …]
|
/sound/pci/trident/ |
D | trident_memory.c | 125 search_empty(struct snd_util_memhdr *hdr, int size) in search_empty() argument 133 list_for_each(p, &hdr->block) { in search_empty() 144 blk = __snd_util_memblk_new(hdr, psize * ALIGN_PAGE_SIZE, p->prev); in search_empty() 177 struct snd_util_memhdr *hdr; in snd_trident_alloc_sg_pages() local 186 hdr = trident->tlb.memhdr; in snd_trident_alloc_sg_pages() 187 if (snd_BUG_ON(!hdr)) in snd_trident_alloc_sg_pages() 192 mutex_lock(&hdr->block_mutex); in snd_trident_alloc_sg_pages() 193 blk = search_empty(hdr, runtime->dma_bytes); in snd_trident_alloc_sg_pages() 195 mutex_unlock(&hdr->block_mutex); in snd_trident_alloc_sg_pages() 207 __snd_util_mem_free(hdr, blk); in snd_trident_alloc_sg_pages() [all …]
|
/sound/soc/ |
D | soc-topology.c | 231 struct snd_soc_tplg_ctl_hdr *hdr, int index) in soc_bind_err() argument 235 hdr->ops.get, hdr->ops.put, hdr->ops.info, index, in soc_bind_err() 240 struct snd_soc_tplg_ctl_hdr *hdr, const char *name) in soc_control_err() argument 244 name, hdr->ops.get, hdr->ops.put, hdr->ops.info, in soc_control_err() 250 struct snd_soc_tplg_hdr *hdr) in soc_tplg_vendor_load_() argument 255 ret = tplg->ops->vendor_load(tplg->comp, tplg->index, hdr); in soc_tplg_vendor_load_() 258 hdr->vendor_type); in soc_tplg_vendor_load_() 267 hdr->type, hdr->vendor_type); in soc_tplg_vendor_load_() 273 struct snd_soc_tplg_hdr *hdr) in soc_tplg_vendor_load() argument 278 return soc_tplg_vendor_load_(tplg, hdr); in soc_tplg_vendor_load() [all …]
|
/sound/soc/qcom/qdsp6/ |
D | q6asm.c | 201 static inline void q6asm_add_hdr(struct audio_client *ac, struct apr_hdr *hdr, in q6asm_add_hdr() argument 205 hdr->hdr_field = APR_SEQ_CMD_HDR_FIELD; in q6asm_add_hdr() 206 hdr->src_port = ((ac->session << 8) & 0xFF00) | (stream_id); in q6asm_add_hdr() 207 hdr->dest_port = ((ac->session << 8) & 0xFF00) | (stream_id); in q6asm_add_hdr() 208 hdr->pkt_size = pkt_size; in q6asm_add_hdr() 210 hdr->token = ac->session; in q6asm_add_hdr() 216 struct apr_hdr *hdr = &pkt->hdr; in q6asm_apr_send_session_pkt() local 228 (ac->result.opcode == hdr->opcode) || in q6asm_apr_send_session_pkt() 233 (ac->result.opcode == hdr->opcode), in q6asm_apr_send_session_pkt() 272 pkt->hdr.hdr_field = APR_SEQ_CMD_HDR_FIELD; in __q6asm_memory_unmap() [all …]
|
D | q6adm.c | 129 struct apr_hdr *hdr = &data->hdr; in q6adm_callback() local 136 copp_idx = (hdr->token) & 0XFF; in q6adm_callback() 137 port_idx = ((hdr->token) >> 16) & 0xFF; in q6adm_callback() 140 port_idx, hdr->token); in q6adm_callback() 145 copp_idx, hdr->token); in q6adm_callback() 149 switch (hdr->opcode) { in q6adm_callback() 197 copp->result.opcode = hdr->opcode; in q6adm_callback() 205 hdr->opcode); in q6adm_callback() 241 uint32_t opcode = pkt->hdr.opcode; in q6adm_apr_send_copp_pkt() 284 close.hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD, in q6adm_device_close() [all …]
|
D | q6core.c | 74 struct apr_hdr *hdr = &data->hdr; in q6core_callback() local 77 switch (hdr->opcode) { in q6core_callback() 141 hdr->opcode); in q6core_callback() 157 pkt.hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD, in q6core_get_fwk_versions() 159 pkt.hdr.pkt_size = APR_HDR_SIZE; in q6core_get_fwk_versions() 160 pkt.hdr.opcode = AVCS_CMD_GET_FWK_VERSION; in q6core_get_fwk_versions() 187 pkt.hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD, in q6core_get_svc_versions() 189 pkt.hdr.pkt_size = APR_HDR_SIZE; in q6core_get_svc_versions() 190 pkt.hdr.opcode = AVCS_GET_VERSIONS; in q6core_get_svc_versions() 214 pkt.hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD, in __q6core_is_adsp_ready() [all …]
|
D | q6afe.c | 749 struct apr_hdr *hdr = &data->hdr; in q6afe_callback() local 756 switch (hdr->opcode) { in q6afe_callback() 767 port = q6afe_find_port(afe, hdr->token); in q6afe_callback() 807 struct apr_hdr *hdr = &pkt->hdr; in afe_apr_send_pkt() local 821 ret = wait_event_timeout(*wait, (port->result.opcode == hdr->opcode), in afe_apr_send_pkt() 861 pkt->hdr.hdr_field = APR_HDR_FIELD(APR_MSG_TYPE_SEQ_CMD, in q6afe_port_set_param() 864 pkt->hdr.pkt_size = pkt_size; in q6afe_port_set_param() 865 pkt->hdr.src_port = 0; in q6afe_port_set_param() 866 pkt->hdr.dest_port = 0; in q6afe_port_set_param() 867 pkt->hdr.token = port->token; in q6afe_port_set_param() [all …]
|
/sound/soc/sof/ |
D | ipc.c | 203 struct sof_ipc_cmd_hdr *hdr = msg->msg_data; in tx_wait_done() local 212 hdr->cmd, hdr->size); in tx_wait_done() 224 hdr->cmd, msg->reply_size); in tx_wait_done() 226 ipc_log_header(sdev->dev, "ipc tx succeeded", hdr->cmd); in tx_wait_done() 333 struct sof_ipc_cmd_hdr hdr; in snd_sof_ipc_msgs_rx() local 338 snd_sof_ipc_msg_data(sdev, NULL, &hdr, sizeof(hdr)); in snd_sof_ipc_msgs_rx() 339 ipc_log_header(sdev->dev, "ipc rx", hdr.cmd); in snd_sof_ipc_msgs_rx() 341 cmd = hdr.cmd & SOF_GLB_TYPE_MASK; in snd_sof_ipc_msgs_rx() 342 type = hdr.cmd & SOF_CMD_TYPE_MASK; in snd_sof_ipc_msgs_rx() 376 ipc_stream_message(sdev, hdr.cmd); in snd_sof_ipc_msgs_rx() [all …]
|
D | topology.c | 75 pcm.hdr.size = sizeof(pcm); in ipc_pcm_params() 76 pcm.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_PARAMS; in ipc_pcm_params() 78 pcm.params.hdr.size = sizeof(pcm.params); in ipc_pcm_params() 102 ret = sof_ipc_tx_message(sdev->ipc, pcm.hdr.cmd, &pcm, sizeof(pcm), in ipc_pcm_params() 120 stream.hdr.size = sizeof(stream); in ipc_trigger() 121 stream.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | cmd; in ipc_trigger() 125 ret = sof_ipc_tx_message(sdev->ipc, stream.hdr.cmd, &stream, in ipc_trigger() 442 struct snd_soc_tplg_ctl_hdr *hdr) in sof_control_load_volume() argument 446 container_of(hdr, struct snd_soc_tplg_mixer_control, hdr); in sof_control_load_volume() 506 struct snd_soc_tplg_ctl_hdr *hdr) in sof_control_load_enum() argument [all …]
|
D | pm.c | 69 struct sof_ipc_cmd_hdr *hdr; in sof_restore_pipelines() local 86 comp_dai->comp.hdr.cmd, in sof_restore_pipelines() 102 hdr = swidget->private; in sof_restore_pipelines() 103 ret = sof_ipc_tx_message(sdev->ipc, hdr->cmd, in sof_restore_pipelines() 104 swidget->private, hdr->size, in sof_restore_pipelines() 130 connect->hdr.cmd, in sof_restore_pipelines() 166 config->hdr.cmd, config, in sof_restore_pipelines() 167 config->hdr.size, in sof_restore_pipelines() 208 pm_ctx.hdr.size = sizeof(pm_ctx); in sof_send_pm_ipc() 209 pm_ctx.hdr.cmd = SOF_IPC_GLB_PM_MSG | cmd; in sof_send_pm_ipc() [all …]
|
D | pcm.c | 148 pcm.hdr.size = sizeof(pcm); in sof_pcm_hw_params() 149 pcm.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_PARAMS; in sof_pcm_hw_params() 151 pcm.params.hdr.size = sizeof(pcm.params); in sof_pcm_hw_params() 199 ret = sof_ipc_tx_message(sdev->ipc, pcm.hdr.cmd, &pcm, sizeof(pcm), in sof_pcm_hw_params() 227 stream.hdr.size = sizeof(stream); in sof_pcm_dsp_pcm_free() 228 stream.hdr.cmd = SOF_IPC_GLB_STREAM_MSG | SOF_IPC_STREAM_PCM_FREE; in sof_pcm_dsp_pcm_free() 232 ret = sof_ipc_tx_message(sdev->ipc, stream.hdr.cmd, &stream, in sof_pcm_dsp_pcm_free() 340 stream.hdr.size = sizeof(stream); in sof_pcm_trigger() 341 stream.hdr.cmd = SOF_IPC_GLB_STREAM_MSG; in sof_pcm_trigger() 346 stream.hdr.cmd |= SOF_IPC_STREAM_TRIG_PAUSE; in sof_pcm_trigger() [all …]
|
D | trace.c | 169 params.hdr.cmd = SOF_IPC_GLB_TRACE_MSG; in snd_sof_init_trace_ipc() 172 params.hdr.size = sizeof(struct sof_ipc_dma_trace_params_ext); in snd_sof_init_trace_ipc() 173 params.hdr.cmd |= SOF_IPC_TRACE_DMA_PARAMS_EXT; in snd_sof_init_trace_ipc() 176 params.hdr.size = sizeof(struct sof_ipc_dma_trace_params); in snd_sof_init_trace_ipc() 177 params.hdr.cmd |= SOF_IPC_TRACE_DMA_PARAMS; in snd_sof_init_trace_ipc() 197 params.hdr.cmd, ¶ms, sizeof(params), in snd_sof_init_trace_ipc()
|
D | debug.c | 31 struct sof_ipc_cmd_hdr hdr; in sof_debug_ipc_flood_test() local 42 hdr.cmd = SOF_IPC_GLB_TEST_MSG | SOF_IPC_TEST_IPC_FLOOD; in sof_debug_ipc_flood_test() 43 hdr.size = sizeof(hdr); in sof_debug_ipc_flood_test() 52 ret = sof_ipc_tx_message(sdev->ipc, hdr.cmd, &hdr, hdr.size, in sof_debug_ipc_flood_test()
|
/sound/pci/emu10k1/ |
D | memory.c | 300 struct snd_util_memhdr *hdr; in snd_emu10k1_alloc_pages() local 309 hdr = emu->memhdr; in snd_emu10k1_alloc_pages() 310 if (snd_BUG_ON(!hdr)) in snd_emu10k1_alloc_pages() 315 mutex_lock(&hdr->block_mutex); in snd_emu10k1_alloc_pages() 318 mutex_unlock(&hdr->block_mutex); in snd_emu10k1_alloc_pages() 335 mutex_unlock(&hdr->block_mutex); in snd_emu10k1_alloc_pages() 346 __snd_util_mem_free(hdr, (struct snd_util_memblk *)blk); in snd_emu10k1_alloc_pages() 347 mutex_unlock(&hdr->block_mutex); in snd_emu10k1_alloc_pages() 350 mutex_unlock(&hdr->block_mutex); in snd_emu10k1_alloc_pages() 405 struct snd_util_memhdr *hdr = hw->memhdr; in snd_emu10k1_synth_alloc() local [all …]
|
D | emu10k1_synth_local.h | 17 struct snd_util_memhdr *hdr, 21 struct snd_util_memhdr *hdr);
|
D | emu10k1_patch.c | 26 struct snd_util_memhdr *hdr, in snd_emu10k1_sample_new() argument 36 if (snd_BUG_ON(!sp || !hdr)) in snd_emu10k1_sample_new() 201 struct snd_util_memhdr *hdr) in snd_emu10k1_sample_free() argument 206 if (snd_BUG_ON(!sp || !hdr)) in snd_emu10k1_sample_free()
|
/sound/isa/wavefront/ |
D | wavefront_synth.c | 792 munge_buf ((unsigned char *)&header->hdr.p, bptr, WF_PATCH_BYTES); in wavefront_send_patch() 822 if (header->hdr.pr.layer[i].mute) { in wavefront_send_program() 823 dev->patch_status[header->hdr.pr.layer[i].patch_number] |= in wavefront_send_program() 833 munge_buf ((unsigned char *)&header->hdr.pr, &buf[1], WF_PROGRAM_BYTES); in wavefront_send_program() 956 skip = WF_GET_CHANNEL(&header->hdr.s); in wavefront_send_sample() 958 if (skip > 0 && header->hdr.s.SampleResolution != LINEAR_16BIT) { in wavefront_send_sample() 997 WF_GET_CHANNEL (&header->hdr.s), in wavefront_send_sample() 1002 WF_SET_CHANNEL(&header->hdr.s, 0); in wavefront_send_sample() 1028 shptr = munge_int32 (*((u32 *) &header->hdr.s.sampleStartOffset), in wavefront_send_sample() 1030 shptr = munge_int32 (*((u32 *) &header->hdr.s.loopStartOffset), in wavefront_send_sample() [all …]
|
/sound/usb/ |
D | validate.c | 73 const unsigned char *hdr = p; in validate_processing_unit() local 88 m = hdr[len]; in validate_processing_unit() 118 m = hdr[len]; in validate_processing_unit() 133 m = hdr[len]; in validate_processing_unit() 149 m = hdr[len]; in validate_processing_unit() 303 static bool validate_desc(unsigned char *hdr, int protocol, in validate_desc() argument 306 if (hdr[1] != USB_DT_CS_INTERFACE) in validate_desc() 310 if (v->type == hdr[2] && in validate_desc() 314 return v->func(hdr, v); in validate_desc() 316 return hdr[0] >= v->size; in validate_desc()
|
/sound/soc/sof/intel/ |
D | hda-ipc.c | 72 struct sof_ipc_cmd_hdr *hdr; in hda_dsp_ipc_get_reply() local 85 hdr = msg->msg_data; in hda_dsp_ipc_get_reply() 86 if (hdr->cmd == (SOF_IPC_GLB_PM_MSG | SOF_IPC_PM_CTX_SAVE)) { in hda_dsp_ipc_get_reply() 92 reply.hdr.cmd = SOF_IPC_GLB_REPLY; in hda_dsp_ipc_get_reply() 93 reply.hdr.size = sizeof(reply); in hda_dsp_ipc_get_reply() 107 if (reply.hdr.size != msg->reply_size) { in hda_dsp_ipc_get_reply() 109 msg->reply_size, reply.hdr.size); in hda_dsp_ipc_get_reply()
|
/sound/synth/emux/ |
D | soundfont.c | 513 struct soundfont_voice_rec_hdr hdr; in load_info() local 523 if (count < (long)sizeof(hdr)) { in load_info() 527 if (copy_from_user((char*)&hdr, data, sizeof(hdr))) in load_info() 530 data += sizeof(hdr); in load_info() 531 count -= sizeof(hdr); in load_info() 533 if (hdr.nvoices <= 0 || hdr.nvoices >= 100) { in load_info() 535 hdr.nvoices); in load_info() 539 if (count < (long)sizeof(struct soundfont_voice_info) * hdr.nvoices) { in load_info() 542 count, hdr.nvoices); in load_info() 546 switch (hdr.write_mode) { in load_info() [all …]
|
D | emux.c | 55 struct snd_util_memhdr *hdr, in sf_sample_new() argument 59 return emu->ops.sample_new(emu, sp, hdr, buf, count); in sf_sample_new() 64 struct snd_util_memhdr *hdr) in sf_sample_free() argument 67 return emu->ops.sample_free(emu, sp, hdr); in sf_sample_free()
|
/sound/isa/sb/ |
D | emu8000_local.h | 20 struct snd_util_memhdr *hdr, 23 struct snd_util_memhdr *hdr);
|
D | emu8000_patch.c | 137 struct snd_util_memhdr *hdr, in snd_emu8000_sample_new() argument 165 sp->block = snd_util_mem_alloc(hdr, truesize * 2); in snd_emu8000_sample_new() 274 struct snd_util_memhdr *hdr) in snd_emu8000_sample_free() argument 277 snd_util_mem_free(hdr, sp->block); in snd_emu8000_sample_free()
|
/sound/soc/intel/skylake/ |
D | skl-sst-utils.c | 338 struct skl_ext_manifest_hdr *hdr; in skl_dsp_strip_extended_manifest() local 341 if (fw->size < sizeof(hdr)) { in skl_dsp_strip_extended_manifest() 346 hdr = (struct skl_ext_manifest_hdr *)fw->data; in skl_dsp_strip_extended_manifest() 348 if (hdr->id == SKL_EXT_MANIFEST_HEADER_MAGIC) { in skl_dsp_strip_extended_manifest() 349 fw->size -= hdr->len; in skl_dsp_strip_extended_manifest() 350 fw->data += hdr->len; in skl_dsp_strip_extended_manifest()
|
D | skl-ssp-clk.h | 54 struct skl_tlv_hdr hdr; member 67 struct skl_tlv_hdr hdr; member
|