Lines Matching refs:bytes
33 static void __update_allocated_size(struct snd_card *card, ssize_t bytes) in __update_allocated_size() argument
35 card->total_pcm_alloc_bytes += bytes; in __update_allocated_size()
38 static void update_allocated_size(struct snd_card *card, ssize_t bytes) in update_allocated_size() argument
41 __update_allocated_size(card, bytes); in update_allocated_size()
44 static void decrease_allocated_size(struct snd_card *card, size_t bytes) in decrease_allocated_size() argument
47 WARN_ON(card->total_pcm_alloc_bytes < bytes); in decrease_allocated_size()
48 __update_allocated_size(card, -(ssize_t)bytes); in decrease_allocated_size()
74 if (dmab->bytes != size) in do_alloc_pages()
75 update_allocated_size(card, dmab->bytes - size); in do_alloc_pages()
87 decrease_allocated_size(card, dmab->bytes); in do_free_pages()
115 dmab->bytes = 0; /* tell error */ in preallocate_pcm_pages()
160 snd_iprintf(buffer, "%lu\n", (unsigned long) substream->dma_buffer.bytes / 1024); in snd_pcm_lib_preallocate_proc_read()
204 if (substream->dma_buffer.bytes == size) in snd_pcm_lib_preallocate_proc_write()
287 if (substream->dma_buffer.bytes > 0) in preallocate_pages()
288 substream->buffer_bytes_max = substream->dma_buffer.bytes; in preallocate_pages()
438 if (runtime->dma_buffer_p->bytes >= size) { in snd_pcm_lib_malloc_pages()
445 substream->dma_buffer.bytes >= size) { in snd_pcm_lib_malloc_pages()