Lines Matching refs:pages
47 for (i = 0; i < sgbuf->pages; i++) { in snd_free_sgbuf_pages()
71 unsigned int i, pages, chunk, maxpages; in snd_malloc_sgbuf_pages() local
82 pages = snd_sgbuf_aligned_pages(size); in snd_malloc_sgbuf_pages()
83 sgbuf->tblsize = sgbuf_align_table(pages); in snd_malloc_sgbuf_pages()
95 while (pages > 0) { in snd_malloc_sgbuf_pages()
96 chunk = pages; in snd_malloc_sgbuf_pages()
103 if (!sgbuf->pages) in snd_malloc_sgbuf_pages()
107 size = sgbuf->pages * PAGE_SIZE; in snd_malloc_sgbuf_pages()
121 sgbuf->pages += chunk; in snd_malloc_sgbuf_pages()
122 pages -= chunk; in snd_malloc_sgbuf_pages()
128 dmab->area = vmap(sgbuf->page_table, sgbuf->pages, VM_MAP, PAGE_KERNEL); in snd_malloc_sgbuf_pages()