Lines Matching refs:last
562 int last; member
602 ? &topa_to_page(t)->table[(t)->last] \
652 tp->topa.last = 0; in topa_alloc()
686 struct topa *last = buf->last; in topa_insert_table() local
691 buf->first = buf->last = buf->cur = topa; in topa_insert_table()
695 topa->offset = last->offset + last->size; in topa_insert_table()
696 buf->last = topa; in topa_insert_table()
701 BUG_ON(last->last != TENTS_PER_PAGE - 1); in topa_insert_table()
703 TOPA_ENTRY(last, -1)->base = topa_pfn(topa); in topa_insert_table()
704 TOPA_ENTRY(last, -1)->end = 1; in topa_insert_table()
715 return !!topa->last; in topa_table_full()
717 return topa->last == TENTS_PER_PAGE - 1; in topa_table_full()
732 struct topa *topa = buf->last; in topa_insert_pages()
748 if (topa->z_count == topa->last - 1) { in topa_insert_pages()
749 if (order == TOPA_ENTRY(topa, topa->last - 1)->size) in topa_insert_pages()
761 topa->last++; in topa_insert_pages()
813 if (buf->cur_idx == buf->cur->last) { in pt_buffer_advance()
814 if (buf->cur == buf->last) in pt_buffer_advance()
992 if (WARN_ON_ONCE(topa->last == -1)) in pt_topa_entry_for_page()
1014 for (idx = start_idx, cur_pg += z_pg; idx < topa->last; idx++) { in pt_topa_entry_for_page()
1042 topa = buf->last; in pt_topa_prev_entry()
1048 return &tp->table[topa->last - 1]; in pt_topa_prev_entry()
1219 TOPA_ENTRY(buf->last, -1)->base = topa_pfn(buf->first); in pt_buffer_init_topa()
1220 TOPA_ENTRY(buf->last, -1)->end = 1; in pt_buffer_init_topa()