Lines Matching refs:buffers
415 if (sq->buffers)
419 sq->buffers = kmalloc_array (num, sizeof(char *), GFP_KERNEL);
420 if (!sq->buffers)
423 sq->buffers[i] = dmasound.mach.dma_alloc(size, GFP_KERNEL);
424 if (!sq->buffers[i]) {
426 dmasound.mach.dma_free(sq->buffers[i], size);
427 kfree(sq->buffers);
428 sq->buffers = NULL;
439 if (sq->buffers) {
441 dmasound.mach.dma_free(sq->buffers[i], sq->bufSize);
442 kfree(sq->buffers);
443 sq->buffers = NULL;
606 dest = write_sq.buffers[write_sq.rear];
647 dest = write_sq.buffers[(write_sq.rear+1) % write_sq.max_count];
731 /* allocate the default number & size of buffers.
819 sound_silence(); /* this _must_ stop DMA, we might be about to lose the buffers */
1002 read/write - the app doesn't care about our internal buffers.
1440 * buffers being other than powers of two. This is not checked yet.
1452 printk("dmasound_setup: invalid number of buffers, using default = %d\n", numWriteBufs);