/sound/synth/ |
H A D | util_mem.c | 39 struct snd_util_memhdr *hdr; local 41 hdr = kzalloc(sizeof(*hdr), GFP_KERNEL); 42 if (hdr == NULL) 44 hdr->size = memsize; 45 mutex_init(&hdr->block_mutex); 46 INIT_LIST_HEAD(&hdr->block); 48 return hdr; 54 void snd_util_memhdr_free(struct snd_util_memhdr *hdr) argument 58 if (!hdr) 72 __snd_util_mem_alloc(struct snd_util_memhdr *hdr, int size) argument 109 __snd_util_memblk_new(struct snd_util_memhdr *hdr, unsigned int units, struct list_head *prev) argument 137 snd_util_mem_alloc(struct snd_util_memhdr *hdr, int size) argument 152 __snd_util_mem_free(struct snd_util_memhdr *hdr, struct snd_util_memblk *blk) argument 163 snd_util_mem_free(struct snd_util_memhdr *hdr, struct snd_util_memblk *blk) argument 177 snd_util_mem_avail(struct snd_util_memhdr *hdr) argument [all...] |
/sound/pci/emu10k1/ |
H A D | emu10k1_patch.c | 39 struct snd_util_memhdr *hdr, 49 if (snd_BUG_ON(!sp || !hdr)) 215 struct snd_util_memhdr *hdr) 220 if (snd_BUG_ON(!sp || !hdr)) 38 snd_emu10k1_sample_new(struct snd_emux *rec, struct snd_sf_sample *sp, struct snd_util_memhdr *hdr, const void __user *data, long count) argument 214 snd_emu10k1_sample_free(struct snd_emux *rec, struct snd_sf_sample *sp, struct snd_util_memhdr *hdr) argument
|
H A D | memory.c | 300 struct snd_util_memhdr *hdr; local 309 hdr = emu->memhdr; 310 if (snd_BUG_ON(!hdr)) 315 mutex_lock(&hdr->block_mutex); 318 mutex_unlock(&hdr->block_mutex); 331 mutex_unlock(&hdr->block_mutex); 342 __snd_util_mem_free(hdr, (struct snd_util_memblk *)blk); 343 mutex_unlock(&hdr->block_mutex); 346 mutex_unlock(&hdr->block_mutex); 374 struct snd_util_memhdr *hdr local 400 struct snd_util_memhdr *hdr = emu->memhdr; local 418 get_single_page_range(struct snd_util_memhdr *hdr, struct snd_emu10k1_memblk *blk, int *first_page_ret, int *last_page_ret) argument [all...] |
/sound/synth/emux/ |
H A D | emux.c | 69 struct snd_util_memhdr *hdr, 73 return emu->ops.sample_new(emu, sp, hdr, buf, count); 78 struct snd_util_memhdr *hdr) 81 return emu->ops.sample_free(emu, sp, hdr); 68 sf_sample_new(void *private_data, struct snd_sf_sample *sp, struct snd_util_memhdr *hdr, const void __user *buf, long count) argument 77 sf_sample_free(void *private_data, struct snd_sf_sample *sp, struct snd_util_memhdr *hdr) argument
|
H A D | soundfont.c | 525 struct soundfont_voice_rec_hdr hdr; local 535 if (count < (long)sizeof(hdr)) { 539 if (copy_from_user((char*)&hdr, data, sizeof(hdr))) 542 data += sizeof(hdr); 543 count -= sizeof(hdr); 545 if (hdr.nvoices <= 0 || hdr.nvoices >= 100) { 547 hdr.nvoices); 551 if (count < (long)sizeof(struct soundfont_voice_info) * hdr 1394 snd_sf_new(struct snd_sf_callback *callback, struct snd_util_memhdr *hdr) argument [all...] |
/sound/isa/sb/ |
H A D | emu8000_patch.c | 148 struct snd_util_memhdr *hdr, 179 sp->block = snd_util_mem_alloc(hdr, truesize * 2); 288 struct snd_util_memhdr *hdr) 291 snd_util_mem_free(hdr, sp->block); 147 snd_emu8000_sample_new(struct snd_emux *rec, struct snd_sf_sample *sp, struct snd_util_memhdr *hdr, const void __user *data, long count) argument 287 snd_emu8000_sample_free(struct snd_emux *rec, struct snd_sf_sample *sp, struct snd_util_memhdr *hdr) argument
|
/sound/pci/trident/ |
H A D | trident_memory.c | 140 search_empty(struct snd_util_memhdr *hdr, int size) argument 149 list_for_each(p, &hdr->block) { 160 blk = __snd_util_memblk_new(hdr, psize * ALIGN_PAGE_SIZE, p->prev); 193 struct snd_util_memhdr *hdr; local 202 hdr = trident->tlb.memhdr; 203 if (snd_BUG_ON(!hdr)) 208 mutex_lock(&hdr->block_mutex); 209 blk = search_empty(hdr, runtime->dma_bytes); 211 mutex_unlock(&hdr->block_mutex); 223 __snd_util_mem_free(hdr, bl 240 struct snd_util_memhdr *hdr; local 300 struct snd_util_memhdr *hdr; local [all...] |
/sound/usb/ |
H A D | mixer.c | 180 struct uac_feature_unit_descriptor *hdr = NULL; local 182 while ((hdr = snd_usb_find_desc(state->buffer, state->buflen, hdr, 184 if (hdr->bLength >= 4 && 185 hdr->bDescriptorSubtype >= UAC_INPUT_TERMINAL && 186 hdr->bDescriptorSubtype <= UAC2_SAMPLE_RATE_CONVERTER && 187 hdr->bUnitID == unit) 188 return hdr; 652 unsigned char *hdr = p1; local 654 switch (hdr[ 1208 struct uac_feature_unit_descriptor *hdr = _ftr; local [all...] |