Lines Matching refs:tmpb
36 struct snd_dma_buffer tmpb; in snd_dma_sg_free() local
45 tmpb.dev.type = SNDRV_DMA_TYPE_DEV; in snd_dma_sg_free()
47 tmpb.dev.type = SNDRV_DMA_TYPE_DEV_WC; in snd_dma_sg_free()
48 tmpb.dev.dev = sgbuf->dev; in snd_dma_sg_free()
52 tmpb.area = sgbuf->table[i].buf; in snd_dma_sg_free()
53 tmpb.addr = sgbuf->table[i].addr & PAGE_MASK; in snd_dma_sg_free()
54 tmpb.bytes = (sgbuf->table[i].addr & ~PAGE_MASK) << PAGE_SHIFT; in snd_dma_sg_free()
55 snd_dma_free_pages(&tmpb); in snd_dma_sg_free()
70 struct snd_dma_buffer tmpb; in snd_dma_sg_alloc() local
107 chunk, &tmpb) < 0) { in snd_dma_sg_alloc()
113 chunk = tmpb.bytes >> PAGE_SHIFT; in snd_dma_sg_alloc()
115 table->buf = tmpb.area; in snd_dma_sg_alloc()
116 table->addr = tmpb.addr; in snd_dma_sg_alloc()
120 *pgtable++ = virt_to_page(tmpb.area); in snd_dma_sg_alloc()
121 tmpb.area += PAGE_SIZE; in snd_dma_sg_alloc()
122 tmpb.addr += PAGE_SIZE; in snd_dma_sg_alloc()