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()
188 for (pg = blk->first_page; pg <= blk->last_page; pg++) { in unmap_memblk()
214 page = blk->last_page + 1; in search_empty()
325 for (page = blk->first_page; page <= blk->last_page; page++, idx++) { in snd_emu10k1_alloc_pages()
455 int first_page, last_page; in get_single_page_range() local
459 if (q->last_page == first_page) in get_single_page_range()
462 last_page = blk->last_page; in get_single_page_range()
465 if (q->first_page == last_page) in get_single_page_range()
466 last_page--; /* last page was already allocated */ in get_single_page_range()
469 *last_page_ret = last_page; in get_single_page_range()
474 int last_page) in __synth_free_pages() argument
482 for (page = first_page; page <= last_page; page++) { in __synth_free_pages()
507 int page, first_page, last_page; in synth_alloc_pages() local
511 get_single_page_range(emu->memhdr, blk, &first_page, &last_page); in synth_alloc_pages()
513 for (page = first_page; page <= last_page; page++) { in synth_alloc_pages()
528 last_page = page - 1; in synth_alloc_pages()
529 __synth_free_pages(emu, first_page, last_page); in synth_alloc_pages()
539 int first_page, last_page; in synth_free_pages() local
541 get_single_page_range(emu->memhdr, blk, &first_page, &last_page); in synth_free_pages()
542 __synth_free_pages(emu, first_page, last_page); in synth_free_pages()