Lines Matching refs:last_page

84 	blk->last_page = get_aligned_page(blk->mem.offset + blk->mem.size - 1);  in emu10k1_memblk_init()
85 blk->pages = blk->last_page - blk->first_page + 1; in emu10k1_memblk_init()
152 for (pg = blk->first_page; pg <= blk->last_page; pg++) { in map_memblk()
192 for (pg = blk->first_page; pg <= blk->last_page; pg++) { in unmap_memblk()
218 page = blk->last_page + 1; in search_empty()
328 for (page = blk->first_page; page <= blk->last_page; page++, idx++) { in snd_emu10k1_alloc_pages()
458 int first_page, last_page; in get_single_page_range() local
463 if (q->last_page == first_page) in get_single_page_range()
466 last_page = blk->last_page; in get_single_page_range()
470 if (q->first_page == last_page) in get_single_page_range()
471 last_page--; /* last page was already allocated */ in get_single_page_range()
474 *last_page_ret = last_page; in get_single_page_range()
479 int last_page) in __synth_free_pages() argument
487 for (page = first_page; page <= last_page; page++) { in __synth_free_pages()
512 int page, first_page, last_page; in synth_alloc_pages() local
516 get_single_page_range(emu->memhdr, blk, &first_page, &last_page); in synth_alloc_pages()
518 for (page = first_page; page <= last_page; page++) { in synth_alloc_pages()
533 last_page = page - 1; in synth_alloc_pages()
534 __synth_free_pages(emu, first_page, last_page); in synth_alloc_pages()
544 int first_page, last_page; in synth_free_pages() local
546 get_single_page_range(emu->memhdr, blk, &first_page, &last_page); in synth_free_pages()
547 __synth_free_pages(emu, first_page, last_page); in synth_free_pages()