Home
last modified time | relevance | path

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

/Linux-v5.10/sound/isa/sb/
Demu8000_synth.c47 if (hw->memhdr) { in snd_emu8000_probe()
49 snd_util_memhdr_free(hw->memhdr); in snd_emu8000_probe()
51 hw->memhdr = snd_util_memhdr_new(hw->mem_size); in snd_emu8000_probe()
52 if (hw->memhdr == NULL) { in snd_emu8000_probe()
58 emu->memhdr = hw->memhdr; in snd_emu8000_probe()
66 snd_util_memhdr_free(hw->memhdr); in snd_emu8000_probe()
68 hw->memhdr = NULL; in snd_emu8000_probe()
96 snd_util_memhdr_free(hw->memhdr); in snd_emu8000_remove()
98 hw->memhdr = NULL; in snd_emu8000_remove()
Demu8000_pcm.c569 snd_util_mem_free(rec->emu->memhdr, rec->block); in emu8k_pcm_hw_params()
574 rec->block = snd_util_mem_alloc(rec->emu->memhdr, rec->allocated_bytes); in emu8k_pcm_hw_params()
597 snd_util_mem_free(rec->emu->memhdr, rec->block); in emu8k_pcm_hw_free()
/Linux-v5.10/sound/synth/emux/
Demux_proc.c33 if (emu->memhdr) { in snd_emux_proc_info_read()
34 snd_iprintf(buf, "Memory Size: %d\n", emu->memhdr->size); in snd_emux_proc_info_read()
35 snd_iprintf(buf, "Memory Available: %d\n", snd_util_mem_avail(emu->memhdr)); in snd_emux_proc_info_read()
36 snd_iprintf(buf, "Allocated Blocks: %d\n", emu->memhdr->nblocks); in snd_emux_proc_info_read()
Demux_hwdep.c96 if (emu->memhdr) { in snd_emux_hwdep_ioctl()
97 int size = snd_util_mem_avail(emu->memhdr); in snd_emux_hwdep_ioctl()
Demux.c103 emu->sflist = snd_sf_new(&sf_cb, emu->memhdr); in snd_emux_register()
Demux_oss.c256 if (emu->memhdr) in snd_emux_ioctl_seq_oss()
257 return snd_util_mem_avail(emu->memhdr); in snd_emux_ioctl_seq_oss()
Dsoundfont.c740 (sflist->callback.private_data, sp, sflist->memhdr, in load_data()
1009 (sflist->callback.private_data, smp, sflist->memhdr, in load_guspatch()
1371 sp, sflist->memhdr); in snd_sf_clear()
1394 sflist->memhdr = hdr; in snd_sf_new()
1474 sp, sflist->memhdr); in snd_soundfont_remove_unlocked()
/Linux-v5.10/sound/pci/emu10k1/
Demu10k1_synth.c47 emux->memhdr = hw->memhdr; in snd_emu10k1_synth_probe()
Dmemory.c210 list_for_each(p, &emu->memhdr->block) { in search_empty()
221 …blk = (struct snd_emu10k1_memblk *)__snd_util_memblk_new(emu->memhdr, psize << PAGE_SHIFT, p->prev… in search_empty()
309 hdr = emu->memhdr; in snd_emu10k1_alloc_pages()
405 struct snd_util_memhdr *hdr = hw->memhdr; in snd_emu10k1_synth_alloc()
431 struct snd_util_memhdr *hdr = emu->memhdr; in snd_emu10k1_synth_free()
511 get_single_page_range(emu->memhdr, blk, &first_page, &last_page); in synth_alloc_pages()
541 get_single_page_range(emu->memhdr, blk, &first_page, &last_page); in synth_free_pages()
Demu10k1_main.c1261 snd_util_memhdr_free(emu->memhdr); in snd_emu10k1_free()
1935 emu->memhdr = snd_util_memhdr_new(emu->max_cache_pages * PAGE_SIZE); in snd_emu10k1_create()
1936 if (emu->memhdr == NULL) { in snd_emu10k1_create()
1940 emu->memhdr->block_extra_size = sizeof(struct snd_emu10k1_memblk) - in snd_emu10k1_create()
/Linux-v5.10/sound/pci/trident/
Dtrident_memory.c186 hdr = trident->tlb.memhdr; in snd_trident_alloc_sg_pages()
235 hdr = trident->tlb.memhdr; in snd_trident_alloc_cont_pages()
290 hdr = trident->tlb.memhdr; in snd_trident_free_pages()
Dtrident.h256 struct snd_util_memhdr * memhdr; /* page allocation list */ member
Dtrident_main.c3262 snd_iprintf(buffer, "Memory Maximum : %d\n", trident->tlb.memhdr->size); in snd_trident_proc_read()
3263 snd_iprintf(buffer, "Memory Used : %d\n", trident->tlb.memhdr->used); in snd_trident_proc_read()
3264 snd_iprintf(buffer, "Memory Free : %d\n", snd_util_mem_avail(trident->tlb.memhdr)); in snd_trident_proc_read()
3330 trident->tlb.memhdr = snd_util_memhdr_new(SNDRV_TRIDENT_PAGE_SIZE * SNDRV_TRIDENT_MAX_PAGES); in snd_trident_tlb_alloc()
3331 if (trident->tlb.memhdr == NULL) in snd_trident_tlb_alloc()
3334 trident->tlb.memhdr->block_extra_size = sizeof(struct snd_trident_memblk_arg); in snd_trident_tlb_alloc()
3636 snd_util_memhdr_free(trident->tlb.memhdr); in snd_trident_free()
/Linux-v5.10/include/sound/
Demu8000.h74 struct snd_util_memhdr *memhdr; member
Dsoundfont.h85 struct snd_util_memhdr *memhdr; member
Demux_synth.h111 struct snd_util_memhdr *memhdr; /* memory chunk information */ member
Demu10k1.h1706 struct snd_util_memhdr *memhdr; /* page allocation list */ member