Lines Matching refs:last
578 int last; member
618 ? &topa_to_page(t)->table[(t)->last] \
668 tp->topa.last = 0; in topa_alloc()
702 struct topa *last = buf->last; in topa_insert_table() local
707 buf->first = buf->last = buf->cur = topa; in topa_insert_table()
711 topa->offset = last->offset + last->size; in topa_insert_table()
712 buf->last = topa; in topa_insert_table()
717 BUG_ON(last->last != TENTS_PER_PAGE - 1); in topa_insert_table()
719 TOPA_ENTRY(last, -1)->base = topa_pfn(topa); in topa_insert_table()
720 TOPA_ENTRY(last, -1)->end = 1; in topa_insert_table()
731 return !!topa->last; in topa_table_full()
733 return topa->last == TENTS_PER_PAGE - 1; in topa_table_full()
748 struct topa *topa = buf->last; in topa_insert_pages()
764 if (topa->z_count == topa->last - 1) { in topa_insert_pages()
765 if (order == TOPA_ENTRY(topa, topa->last - 1)->size) in topa_insert_pages()
777 topa->last++; in topa_insert_pages()
829 if (buf->cur_idx == buf->cur->last) { in pt_buffer_advance()
830 if (buf->cur == buf->last) in pt_buffer_advance()
1008 if (WARN_ON_ONCE(topa->last == -1)) in pt_topa_entry_for_page()
1030 for (idx = start_idx, cur_pg += z_pg; idx < topa->last; idx++) { in pt_topa_entry_for_page()
1058 topa = buf->last; in pt_topa_prev_entry()
1064 return &tp->table[topa->last - 1]; in pt_topa_prev_entry()
1235 TOPA_ENTRY(buf->last, -1)->base = topa_pfn(buf->first); in pt_buffer_init_topa()
1236 TOPA_ENTRY(buf->last, -1)->end = 1; in pt_buffer_init_topa()