Lines Matching refs:buffsize
82 dmap->buffsize = dma_buffsize; in sound_alloc_dmap()
83 if (dmap->buffsize > dma_pagesize) in sound_alloc_dmap()
84 dmap->buffsize = dma_pagesize; in sound_alloc_dmap()
91 while (start_addr == NULL && dmap->buffsize > PAGE_SIZE) { in sound_alloc_dmap()
92 for (sz = 0, size = PAGE_SIZE; size < dmap->buffsize; sz++, size <<= 1); in sound_alloc_dmap()
93 dmap->buffsize = PAGE_SIZE * (1 << sz); in sound_alloc_dmap()
96 dmap->buffsize /= 2; in sound_alloc_dmap()
104 end_addr = start_addr + dmap->buffsize - 1; in sound_alloc_dmap()
113 …RN_ERR "sound: Got invalid address 0x%lx for %db DMA-buffer\n", (long) start_addr, dmap->buffsize); in sound_alloc_dmap()
118 dmap->raw_buf_phys = dma_map_single(NULL, start_addr, dmap->buffsize, DMA_BIDIRECTIONAL); in sound_alloc_dmap()
135 for (sz = 0, size = PAGE_SIZE; size < dmap->buffsize; sz++, size <<= 1); in sound_free_dmap()
138 end_addr = start_addr + dmap->buffsize; in sound_free_dmap()
143 dma_unmap_single(NULL, dmap->raw_buf_phys, dmap->buffsize, DMA_BIDIRECTIONAL); in sound_free_dmap()
175 dmap->bytes_in_use = dmap->buffsize; in dma_init_buffers()
1017 adev->dmap_out->buffsize); in do_outputintr()