Lines Matching refs:first_page
83 blk->first_page = get_aligned_page(blk->mem.offset);
85 blk->pages = blk->last_page - blk->first_page + 1;
152 for (pg = blk->first_page; pg <= blk->last_page; pg++) {
192 for (pg = blk->first_page; pg <= blk->last_page; pg++) {
216 if (page + psize <= blk->first_page)
328 for (page = blk->first_page; page <= blk->last_page; page++, idx++) {
458 int first_page, last_page;
459 first_page = blk->first_page;
463 if (q->last_page == first_page)
464 first_page++; /* first page was already allocated */
470 if (q->first_page == last_page)
473 *first_page_ret = first_page;
478 static void __synth_free_pages(struct snd_emu10k1 *emu, int first_page,
487 for (page = first_page; page <= last_page; page++) {
512 int page, first_page, last_page;
516 get_single_page_range(emu->memhdr, blk, &first_page, &last_page);
518 for (page = first_page; page <= last_page; page++) {
534 __synth_free_pages(emu, first_page, last_page);
544 int first_page, last_page;
546 get_single_page_range(emu->memhdr, blk, &first_page, &last_page);
547 __synth_free_pages(emu, first_page, last_page);
586 ptr = offset_ptr(emu, page + p->first_page, offset);
616 ptr = offset_ptr(emu, page + p->first_page, offset);