Lines Matching refs:nr_blocks
57 unsigned int nr_blocks; member
207 for (blk = 0; blk < win->nr_blocks; blk++) { in msc_win_oldest_block()
350 if (++iter->block == iter->win->nr_blocks) in msc_iter_block_advance()
463 for (blk = 0; blk < win->nr_blocks; blk++) { in msc_buffer_clear_hw_header()
675 static int msc_buffer_win_alloc(struct msc *msc, unsigned int nr_blocks) in msc_buffer_win_alloc() argument
681 if (!nr_blocks) in msc_buffer_win_alloc()
684 win = kzalloc(offsetof(struct msc_window, block[nr_blocks]), in msc_buffer_win_alloc()
693 win->pgoff = prev->pgoff + prev->nr_blocks; in msc_buffer_win_alloc()
696 for (i = 0; i < nr_blocks; i++) { in msc_buffer_win_alloc()
711 win->nr_blocks = nr_blocks; in msc_buffer_win_alloc()
719 msc->nr_pages += nr_blocks; in msc_buffer_win_alloc()
749 msc->nr_pages -= win->nr_blocks; in msc_buffer_win_free()
757 for (i = 0; i < win->nr_blocks; i++) { in msc_buffer_win_free()
801 for (blk = 0; blk < win->nr_blocks; blk++) { in msc_buffer_relink()
812 if (blk == win->nr_blocks - 1) { in msc_buffer_relink()
986 if (pgoff >= win->pgoff && pgoff < win->pgoff + win->nr_blocks) in msc_buffer_get_page()
1359 "%d%c", win->nr_blocks, in nr_pages_show()