Lines Matching full:blocks

26  * For DMA buffers the storage is sub-divided into so called blocks. Each block
37 * Blocks are exchanged between the DMA controller and the application via the
38 * means of two queues. The incoming queue and the outgoing queue. Blocks on the
46 * * On the incoming list: Blocks on the incoming list are queued up to be
50 * * On the outgoing list: Blocks on the outgoing list have been successfully
58 * In addition to this blocks are reference counted and the memory associated
64 * managing the blocks.
250 * @queue: Queue for which to complete blocks.
251 * @list: List of aborted blocks. All blocks in this list must be from @queue.
255 * hand the blocks back to the queue.
351 for (i = 0; i < ARRAY_SIZE(queue->fileio.blocks); i++) { in iio_dma_buffer_request_update()
352 block = queue->fileio.blocks[i]; in iio_dma_buffer_request_update()
360 * At this point all blocks are either owned by the core or in iio_dma_buffer_request_update()
368 for (i = 0; i < ARRAY_SIZE(queue->fileio.blocks); i++) { in iio_dma_buffer_request_update()
369 if (queue->fileio.blocks[i]) { in iio_dma_buffer_request_update()
370 block = queue->fileio.blocks[i]; in iio_dma_buffer_request_update()
387 queue->fileio.blocks[i] = block; in iio_dma_buffer_request_update()
419 for (i = 0; i < ARRAY_SIZE(queue->fileio.blocks); i++) { in iio_dma_buffer_fileio_free()
420 if (!queue->fileio.blocks[i]) in iio_dma_buffer_fileio_free()
422 queue->fileio.blocks[i]->state = IIO_BLOCK_STATE_DEAD; in iio_dma_buffer_fileio_free()
428 for (i = 0; i < ARRAY_SIZE(queue->fileio.blocks); i++) { in iio_dma_buffer_fileio_free()
429 if (!queue->fileio.blocks[i]) in iio_dma_buffer_fileio_free()
431 iio_buffer_block_put(queue->fileio.blocks[i]); in iio_dma_buffer_fileio_free()
432 queue->fileio.blocks[i] = NULL; in iio_dma_buffer_fileio_free()
542 block = queue->fileio.blocks[idx]; in iio_dma_buffer_dequeue()
547 idx = (idx + 1) % ARRAY_SIZE(queue->fileio.blocks); in iio_dma_buffer_dequeue()
651 * but won't increase since all blocks are in use. in iio_dma_buffer_usage()
660 for (i = 0; i < ARRAY_SIZE(queue->fileio.blocks); i++) { in iio_dma_buffer_usage()
661 block = queue->fileio.blocks[i]; in iio_dma_buffer_usage()
681 * If the buffer is enabled and in fileio mode new blocks can't be in iio_dma_buffer_attach_dmabuf()