Lines Matching refs:tmpb
22 struct snd_dma_buffer tmpb; in snd_free_sgbuf_pages() local
31 tmpb.dev.type = SNDRV_DMA_TYPE_DEV; in snd_free_sgbuf_pages()
33 tmpb.dev.type = SNDRV_DMA_TYPE_DEV_UC; in snd_free_sgbuf_pages()
34 tmpb.dev.dev = sgbuf->dev; in snd_free_sgbuf_pages()
38 tmpb.area = sgbuf->table[i].buf; in snd_free_sgbuf_pages()
39 tmpb.addr = sgbuf->table[i].addr & PAGE_MASK; in snd_free_sgbuf_pages()
40 tmpb.bytes = (sgbuf->table[i].addr & ~PAGE_MASK) << PAGE_SHIFT; in snd_free_sgbuf_pages()
41 snd_dma_free_pages(&tmpb); in snd_free_sgbuf_pages()
60 struct snd_dma_buffer tmpb; in snd_malloc_sgbuf_pages() local
98 chunk, &tmpb) < 0) { in snd_malloc_sgbuf_pages()
106 chunk = tmpb.bytes >> PAGE_SHIFT; in snd_malloc_sgbuf_pages()
108 table->buf = tmpb.area; in snd_malloc_sgbuf_pages()
109 table->addr = tmpb.addr; in snd_malloc_sgbuf_pages()
113 *pgtable++ = virt_to_page(tmpb.area); in snd_malloc_sgbuf_pages()
114 tmpb.area += PAGE_SIZE; in snd_malloc_sgbuf_pages()
115 tmpb.addr += PAGE_SIZE; in snd_malloc_sgbuf_pages()