Home
last modified time | relevance | path

Searched refs:memhdr (Results 1 – 13 of 13) sorted by relevance

/sound/isa/sb/
Demu8000_synth.c59 if (hw->memhdr) { in snd_emu8000_new_device()
61 snd_util_memhdr_free(hw->memhdr); in snd_emu8000_new_device()
63 hw->memhdr = snd_util_memhdr_new(hw->mem_size); in snd_emu8000_new_device()
64 if (hw->memhdr == NULL) { in snd_emu8000_new_device()
70 emu->memhdr = hw->memhdr; in snd_emu8000_new_device()
78 snd_util_memhdr_free(hw->memhdr); in snd_emu8000_new_device()
80 hw->memhdr = NULL; in snd_emu8000_new_device()
108 if (hw->memhdr) in snd_emu8000_delete_device()
109 snd_util_memhdr_free(hw->memhdr); in snd_emu8000_delete_device()
111 hw->memhdr = NULL; in snd_emu8000_delete_device()
Demu8000_pcm.c579 snd_util_mem_free(rec->emu->memhdr, rec->block); in emu8k_pcm_hw_params()
584 rec->block = snd_util_mem_alloc(rec->emu->memhdr, rec->allocated_bytes); in emu8k_pcm_hw_params()
607 snd_util_mem_free(rec->emu->memhdr, rec->block); in emu8k_pcm_hw_free()
/sound/synth/emux/
Demux_proc.c48 if (emu->memhdr) { in snd_emux_proc_info_read()
49 snd_iprintf(buf, "Memory Size: %d\n", emu->memhdr->size); in snd_emux_proc_info_read()
50 snd_iprintf(buf, "Memory Available: %d\n", snd_util_mem_avail(emu->memhdr)); in snd_emux_proc_info_read()
51 snd_iprintf(buf, "Allocated Blocks: %d\n", emu->memhdr->nblocks); in snd_emux_proc_info_read()
Demux_hwdep.c102 if (emu->memhdr) { in snd_emux_hwdep_ioctl()
103 int size = snd_util_mem_avail(emu->memhdr); in snd_emux_hwdep_ioctl()
Demux_oss.c271 if (emu->memhdr) in snd_emux_ioctl_seq_oss()
272 return snd_util_mem_avail(emu->memhdr); in snd_emux_ioctl_seq_oss()
Dsoundfont.c753 (sflist->callback.private_data, sp, sflist->memhdr, in load_data()
1020 (sflist->callback.private_data, smp, sflist->memhdr, in load_guspatch()
1382 sp, sflist->memhdr); in snd_sf_clear()
1405 sflist->memhdr = hdr; in snd_sf_new()
1485 sp, sflist->memhdr); in snd_soundfont_remove_unlocked()
Demux.c118 emu->sflist = snd_sf_new(&sf_cb, emu->memhdr); in snd_emux_register()
/sound/pci/emu10k1/
Dmemory.c214 list_for_each(p, &emu->memhdr->block) { in search_empty()
225 …blk = (struct snd_emu10k1_memblk *)__snd_util_memblk_new(emu->memhdr, psize << PAGE_SHIFT, p->prev… in search_empty()
313 hdr = emu->memhdr; in snd_emu10k1_alloc_pages()
382 struct snd_util_memhdr *hdr = hw->memhdr; in snd_emu10k1_synth_alloc()
408 struct snd_util_memhdr *hdr = emu->memhdr; in snd_emu10k1_synth_free()
470 get_single_page_range(emu->memhdr, blk, &first_page, &last_page); in synth_alloc_pages()
501 get_single_page_range(emu->memhdr, blk, &first_page, &last_page); in synth_free_pages()
Demu10k1_synth.c59 emux->memhdr = hw->memhdr; in snd_emu10k1_synth_new_device()
Demu10k1_main.c1309 if (emu->memhdr) in snd_emu10k1_free()
1310 snd_util_memhdr_free(emu->memhdr); in snd_emu10k1_free()
1934 emu->memhdr = snd_util_memhdr_new(emu->max_cache_pages * PAGE_SIZE); in snd_emu10k1_create()
1935 if (emu->memhdr == NULL) { in snd_emu10k1_create()
1939 emu->memhdr->block_extra_size = sizeof(struct snd_emu10k1_memblk) - in snd_emu10k1_create()
/sound/pci/trident/
Dtrident_memory.c201 hdr = trident->tlb.memhdr; in snd_trident_alloc_sg_pages()
250 hdr = trident->tlb.memhdr; in snd_trident_alloc_cont_pages()
305 hdr = trident->tlb.memhdr; in snd_trident_free_pages()
Dtrident.h271 struct snd_util_memhdr * memhdr; /* page allocation list */ member
Dtrident_main.c3330 snd_iprintf(buffer, "Memory Maximum : %d\n", trident->tlb.memhdr->size); in snd_trident_proc_read()
3331 snd_iprintf(buffer, "Memory Used : %d\n", trident->tlb.memhdr->used); in snd_trident_proc_read()
3332 snd_iprintf(buffer, "Memory Free : %d\n", snd_util_mem_avail(trident->tlb.memhdr)); in snd_trident_proc_read()
3400 trident->tlb.memhdr = snd_util_memhdr_new(SNDRV_TRIDENT_PAGE_SIZE * SNDRV_TRIDENT_MAX_PAGES); in snd_trident_tlb_alloc()
3401 if (trident->tlb.memhdr == NULL) in snd_trident_tlb_alloc()
3404 trident->tlb.memhdr->block_extra_size = sizeof(struct snd_trident_memblk_arg); in snd_trident_tlb_alloc()
3705 if (trident->tlb.memhdr) in snd_trident_free()
3706 snd_util_memhdr_free(trident->tlb.memhdr); in snd_trident_free()