/sound/synth/ |
D | util_mem.c | 40 struct snd_util_memhdr *hdr; in snd_util_memhdr_new() local 42 hdr = kzalloc(sizeof(*hdr), GFP_KERNEL); in snd_util_memhdr_new() 43 if (hdr == NULL) in snd_util_memhdr_new() 45 hdr->size = memsize; in snd_util_memhdr_new() 46 mutex_init(&hdr->block_mutex); in snd_util_memhdr_new() 47 INIT_LIST_HEAD(&hdr->block); in snd_util_memhdr_new() 49 return hdr; in snd_util_memhdr_new() 55 void snd_util_memhdr_free(struct snd_util_memhdr *hdr) in snd_util_memhdr_free() argument 59 if (!hdr) in snd_util_memhdr_free() 62 while ((p = hdr->block.next) != &hdr->block) { in snd_util_memhdr_free() [all …]
|
/sound/pci/trident/ |
D | trident_memory.c | 140 search_empty(struct snd_util_memhdr *hdr, int size) in search_empty() argument 148 list_for_each(p, &hdr->block) { in search_empty() 159 blk = __snd_util_memblk_new(hdr, psize * ALIGN_PAGE_SIZE, p->prev); in search_empty() 192 struct snd_util_memhdr *hdr; in snd_trident_alloc_sg_pages() local 201 hdr = trident->tlb.memhdr; in snd_trident_alloc_sg_pages() 202 if (snd_BUG_ON(!hdr)) in snd_trident_alloc_sg_pages() 207 mutex_lock(&hdr->block_mutex); in snd_trident_alloc_sg_pages() 208 blk = search_empty(hdr, runtime->dma_bytes); in snd_trident_alloc_sg_pages() 210 mutex_unlock(&hdr->block_mutex); in snd_trident_alloc_sg_pages() 222 __snd_util_mem_free(hdr, blk); in snd_trident_alloc_sg_pages() [all …]
|
/sound/pci/emu10k1/ |
D | memory.c | 304 struct snd_util_memhdr *hdr; in snd_emu10k1_alloc_pages() local 313 hdr = emu->memhdr; in snd_emu10k1_alloc_pages() 314 if (snd_BUG_ON(!hdr)) in snd_emu10k1_alloc_pages() 319 mutex_lock(&hdr->block_mutex); in snd_emu10k1_alloc_pages() 322 mutex_unlock(&hdr->block_mutex); in snd_emu10k1_alloc_pages() 339 mutex_unlock(&hdr->block_mutex); in snd_emu10k1_alloc_pages() 350 __snd_util_mem_free(hdr, (struct snd_util_memblk *)blk); in snd_emu10k1_alloc_pages() 351 mutex_unlock(&hdr->block_mutex); in snd_emu10k1_alloc_pages() 354 mutex_unlock(&hdr->block_mutex); in snd_emu10k1_alloc_pages() 382 struct snd_util_memhdr *hdr = hw->memhdr; in snd_emu10k1_synth_alloc() local [all …]
|
D | emu10k1_synth_local.h | 30 struct snd_util_memhdr *hdr, 34 struct snd_util_memhdr *hdr);
|
D | emu10k1_patch.c | 39 struct snd_util_memhdr *hdr, in snd_emu10k1_sample_new() argument 49 if (snd_BUG_ON(!sp || !hdr)) in snd_emu10k1_sample_new() 217 struct snd_util_memhdr *hdr) in snd_emu10k1_sample_free() argument 222 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() 819 if (header->hdr.pr.layer[i].mute) { in wavefront_send_program() 820 dev->patch_status[header->hdr.pr.layer[i].patch_number] |= in wavefront_send_program() 830 munge_buf ((unsigned char *)&header->hdr.pr, &buf[1], WF_PROGRAM_BYTES); in wavefront_send_program() 950 skip = WF_GET_CHANNEL(&header->hdr.s); in wavefront_send_sample() 952 if (skip > 0 && header->hdr.s.SampleResolution != LINEAR_16BIT) { in wavefront_send_sample() 991 WF_GET_CHANNEL (&header->hdr.s), in wavefront_send_sample() 996 WF_SET_CHANNEL(&header->hdr.s, 0); in wavefront_send_sample() 1022 shptr = munge_int32 (*((u32 *) &header->hdr.s.sampleStartOffset), in wavefront_send_sample() 1024 shptr = munge_int32 (*((u32 *) &header->hdr.s.loopStartOffset), in wavefront_send_sample() [all …]
|
/sound/synth/emux/ |
D | soundfont.c | 526 struct soundfont_voice_rec_hdr hdr; in load_info() local 536 if (count < (long)sizeof(hdr)) { in load_info() 540 if (copy_from_user((char*)&hdr, data, sizeof(hdr))) in load_info() 543 data += sizeof(hdr); in load_info() 544 count -= sizeof(hdr); in load_info() 546 if (hdr.nvoices <= 0 || hdr.nvoices >= 100) { in load_info() 548 hdr.nvoices); in load_info() 552 if (count < (long)sizeof(struct soundfont_voice_info) * hdr.nvoices) { in load_info() 555 count, hdr.nvoices); in load_info() 559 switch (hdr.write_mode) { in load_info() [all …]
|
D | emux.c | 70 struct snd_util_memhdr *hdr, in sf_sample_new() argument 74 return emu->ops.sample_new(emu, sp, hdr, buf, count); in sf_sample_new() 79 struct snd_util_memhdr *hdr) in sf_sample_free() argument 82 return emu->ops.sample_free(emu, sp, hdr); in sf_sample_free()
|
/sound/isa/sb/ |
D | emu8000_local.h | 33 struct snd_util_memhdr *hdr, 36 struct snd_util_memhdr *hdr);
|
D | emu8000_patch.c | 148 struct snd_util_memhdr *hdr, in snd_emu8000_sample_new() argument 179 sp->block = snd_util_mem_alloc(hdr, truesize * 2); in snd_emu8000_sample_new() 288 struct snd_util_memhdr *hdr) in snd_emu8000_sample_free() argument 291 snd_util_mem_free(hdr, sp->block); in snd_emu8000_sample_free()
|
/sound/usb/ |
D | mixer.c | 181 struct uac_feature_unit_descriptor *hdr = NULL; in find_audio_control_unit() local 183 while ((hdr = snd_usb_find_desc(state->buffer, state->buflen, hdr, in find_audio_control_unit() 185 if (hdr->bLength >= 4 && in find_audio_control_unit() 186 hdr->bDescriptorSubtype >= UAC_INPUT_TERMINAL && in find_audio_control_unit() 187 hdr->bDescriptorSubtype <= UAC2_SAMPLE_RATE_CONVERTER && in find_audio_control_unit() 188 hdr->bUnitID == unit) in find_audio_control_unit() 189 return hdr; in find_audio_control_unit() 706 unsigned char *hdr = p1; in check_input_term() local 708 switch (hdr[2]) { in check_input_term() 763 hdr[2] == UAC2_EFFECT_UNIT) { in check_input_term() [all …]
|
/sound/soc/codecs/ |
D | wm_adsp.c | 1193 struct wmfw_coeff_hdr *hdr; in wm_adsp_load_coeff() local 1220 if (sizeof(*hdr) >= firmware->size) { in wm_adsp_load_coeff() 1226 hdr = (void*)&firmware->data[0]; in wm_adsp_load_coeff() 1227 if (memcmp(hdr->magic, "WMDR", 4) != 0) { in wm_adsp_load_coeff() 1232 switch (be32_to_cpu(hdr->rev) & 0xff) { in wm_adsp_load_coeff() 1237 file, be32_to_cpu(hdr->rev) & 0xff); in wm_adsp_load_coeff() 1243 (le32_to_cpu(hdr->ver) >> 16) & 0xff, in wm_adsp_load_coeff() 1244 (le32_to_cpu(hdr->ver) >> 8) & 0xff, in wm_adsp_load_coeff() 1245 le32_to_cpu(hdr->ver) & 0xff); in wm_adsp_load_coeff() 1247 pos = le32_to_cpu(hdr->len); in wm_adsp_load_coeff()
|
/sound/pci/hda/ |
D | patch_ca0132.c | 1264 unsigned int hdr; member 1365 memcpy(&ret_msg->hdr, &spec->scp_resp_header, 4); in dspio_send_scp_message() 1418 scp_send.hdr = make_scp_header(mod_id, 0x20, (dir == SCP_GET), req, in dspio_scp() 1437 extract_scp_header(scp_send.hdr, NULL, NULL, &send_get_flag, in dspio_scp() 1439 extract_scp_header(scp_reply.hdr, NULL, NULL, NULL, NULL, NULL, in dspio_scp() 1447 ret_size = (ret_bytes - sizeof(scp_reply.hdr)) in dspio_scp()
|