Searched refs:hdr (Results 1 – 10 of 10) sorted by relevance
/sound/synth/ |
D | util_mem.c | 39 struct snd_util_memhdr *hdr; in snd_util_memhdr_new() local 41 hdr = kzalloc(sizeof(*hdr), GFP_KERNEL); in snd_util_memhdr_new() 42 if (hdr == NULL) in snd_util_memhdr_new() 44 hdr->size = memsize; in snd_util_memhdr_new() 45 mutex_init(&hdr->block_mutex); in snd_util_memhdr_new() 46 INIT_LIST_HEAD(&hdr->block); in snd_util_memhdr_new() 48 return hdr; in snd_util_memhdr_new() 54 void snd_util_memhdr_free(struct snd_util_memhdr *hdr) in snd_util_memhdr_free() argument 58 if (!hdr) in snd_util_memhdr_free() 61 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 149 list_for_each(p, &hdr->block) { in search_empty() 160 blk = __snd_util_memblk_new(hdr, psize * ALIGN_PAGE_SIZE, p->prev); in search_empty() 193 struct snd_util_memhdr *hdr; in snd_trident_alloc_sg_pages() local 202 hdr = trident->tlb.memhdr; in snd_trident_alloc_sg_pages() 203 if (snd_BUG_ON(!hdr)) in snd_trident_alloc_sg_pages() 208 mutex_lock(&hdr->block_mutex); in snd_trident_alloc_sg_pages() 209 blk = search_empty(hdr, runtime->dma_bytes); in snd_trident_alloc_sg_pages() 211 mutex_unlock(&hdr->block_mutex); in snd_trident_alloc_sg_pages() 223 __snd_util_mem_free(hdr, blk); in snd_trident_alloc_sg_pages() [all …]
|
/sound/pci/emu10k1/ |
D | memory.c | 299 struct snd_util_memhdr *hdr; in snd_emu10k1_alloc_pages() local 308 hdr = emu->memhdr; in snd_emu10k1_alloc_pages() 309 if (snd_BUG_ON(!hdr)) in snd_emu10k1_alloc_pages() 312 mutex_lock(&hdr->block_mutex); in snd_emu10k1_alloc_pages() 315 mutex_unlock(&hdr->block_mutex); in snd_emu10k1_alloc_pages() 328 mutex_unlock(&hdr->block_mutex); in snd_emu10k1_alloc_pages() 339 __snd_util_mem_free(hdr, (struct snd_util_memblk *)blk); in snd_emu10k1_alloc_pages() 340 mutex_unlock(&hdr->block_mutex); in snd_emu10k1_alloc_pages() 343 mutex_unlock(&hdr->block_mutex); in snd_emu10k1_alloc_pages() 371 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() 215 struct snd_util_memhdr *hdr) in snd_emu10k1_sample_free() argument 220 if (snd_BUG_ON(!sp || !hdr)) in snd_emu10k1_sample_free()
|
/sound/isa/wavefront/ |
D | wavefront_synth.c | 790 munge_buf ((unsigned char *)&header->hdr.p, bptr, WF_PATCH_BYTES); in wavefront_send_patch() 817 if (header->hdr.pr.layer[i].mute) { in wavefront_send_program() 818 dev->patch_status[header->hdr.pr.layer[i].patch_number] |= in wavefront_send_program() 828 munge_buf ((unsigned char *)&header->hdr.pr, &buf[1], WF_PROGRAM_BYTES); in wavefront_send_program() 948 skip = WF_GET_CHANNEL(&header->hdr.s); in wavefront_send_sample() 950 if (skip > 0 && header->hdr.s.SampleResolution != LINEAR_16BIT) { in wavefront_send_sample() 989 WF_GET_CHANNEL (&header->hdr.s), in wavefront_send_sample() 994 WF_SET_CHANNEL(&header->hdr.s, 0); in wavefront_send_sample() 1020 shptr = munge_int32 (*((u32 *) &header->hdr.s.sampleStartOffset), in wavefront_send_sample() 1022 shptr = munge_int32 (*((u32 *) &header->hdr.s.loopStartOffset), in wavefront_send_sample() [all …]
|
/sound/synth/emux/ |
D | soundfont.c | 523 struct soundfont_voice_rec_hdr hdr; in load_info() local 533 if (count < (long)sizeof(hdr)) { in load_info() 537 if (copy_from_user((char*)&hdr, data, sizeof(hdr))) in load_info() 540 data += sizeof(hdr); in load_info() 541 count -= sizeof(hdr); in load_info() 543 if (hdr.nvoices <= 0 || hdr.nvoices >= 100) { in load_info() 544 printk("Soundfont error: Illegal voice number %d\n", hdr.nvoices); in load_info() 548 if (count < (long)sizeof(struct soundfont_voice_info) * hdr.nvoices) { in load_info() 550 count, hdr.nvoices); in load_info() 554 switch (hdr.write_mode) { in load_info() [all …]
|
D | emux.c | 69 struct snd_util_memhdr *hdr, in sf_sample_new() argument 73 return emu->ops.sample_new(emu, sp, hdr, buf, count); in sf_sample_new() 78 struct snd_util_memhdr *hdr) in sf_sample_free() argument 81 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()
|