Lines Matching refs:pcm
79 struct snd_card *card = substream->pcm->card; in preallocate_pcm_pages()
94 substream->pcm->card->number, substream->pcm->device, in preallocate_pcm_pages()
96 substream->pcm->name, orig_size); in preallocate_pcm_pages()
108 do_free_pages(substream->pcm->card, &substream->dma_buffer); in snd_pcm_lib_preallocate_free()
117 void snd_pcm_lib_preallocate_free_for_all(struct snd_pcm *pcm) in snd_pcm_lib_preallocate_free_for_all() argument
122 for_each_pcm_substream(pcm, stream, substream) in snd_pcm_lib_preallocate_free_for_all()
161 struct snd_card *card = substream->pcm->card; in snd_pcm_lib_preallocate_proc_write()
189 substream->pcm->card->number, substream->pcm->device, in snd_pcm_lib_preallocate_proc_write()
191 substream->pcm->name, size); in snd_pcm_lib_preallocate_proc_write()
210 entry = snd_info_create_card_entry(substream->pcm->card, "prealloc", in preallocate_info_init()
218 entry = snd_info_create_card_entry(substream->pcm->card, "prealloc_max", in preallocate_info_init()
270 static int preallocate_pages_for_all(struct snd_pcm *pcm, int type, in preallocate_pages_for_all() argument
277 for_each_pcm_substream(pcm, stream, substream) { in preallocate_pages_for_all()
314 void snd_pcm_lib_preallocate_pages_for_all(struct snd_pcm *pcm, in snd_pcm_lib_preallocate_pages_for_all() argument
318 preallocate_pages_for_all(pcm, type, data, size, max, false); in snd_pcm_lib_preallocate_pages_for_all()
370 int snd_pcm_set_managed_buffer_all(struct snd_pcm *pcm, int type, in snd_pcm_set_managed_buffer_all() argument
374 return preallocate_pages_for_all(pcm, type, data, size, max, true); in snd_pcm_set_managed_buffer_all()
401 card = substream->pcm->card; in snd_pcm_lib_malloc_pages()
431 substream->pcm->card->number, substream->pcm->device, in snd_pcm_lib_malloc_pages()
433 substream->pcm->name, size); in snd_pcm_lib_malloc_pages()
453 struct snd_card *card = substream->pcm->card; in snd_pcm_lib_free_pages()