Lines Matching refs:block

65  * @_sgt:	array of block descriptors
66 * @sgt: array of block descriptors
87 * @start_block: oldest block in the window
88 * @block: block number in the window
89 * @block_off: offset into current block
90 * @wrap_count: block wrapping handling
100 struct scatterlist *block;
406 * msc_win_oldest_sg() - locate the oldest block in a given window
409 * Return: index of the block with the oldest data
417 /* without wrapping, first block is the oldest */
422 * with wrapping, last written block contains both the newest and the
437 return sg_virt(iter->block);
486 iter->block = iter->start_block;
490 * start with the block with oldest data; if data has wrapped
491 * in this window, it should be in this block
536 if (iter->wrap_count && iter->block == iter->start_block) {
539 /* copied newest data from the wrapped block */
543 /* no wrapping, check for last written block */
548 /* block advance */
549 if (sg_is_last(iter->block))
550 iter->block = msc_win_base_sg(iter->win);
552 iter->block = sg_next(iter->block);
554 /* no wrapping, sanity check in case there is no last written block */
555 if (!iter->wrap_count && iter->block == iter->start_block)
601 * If block wrapping happened, we need to visit the last block
609 * Second time (wrap_count==1), it's just like any other block,
612 if (iter->block == iter->start_block && iter->wrap_count == 2) {
997 void *block;
1005 block = dma_alloc_coherent(msc_dev(win->msc)->parent->parent,
1008 if (!block)
1011 sg_set_buf(sg_ptr, block, PAGE_SIZE);
1188 * msc_buffer_relink() - set up block descriptors for multiblock mode
1224 * Similarly to last window, last block should point