Lines Matching refs:last
331 int last; member
335 #define TOPA_ENTRY(t, i) ((i) == -1 ? &(t)->table[(t)->last] : &(t)->table[(i)])
355 topa->last = 0; in topa_alloc()
390 struct topa *last = buf->last; in topa_insert_table() local
395 buf->first = buf->last = buf->cur = topa; in topa_insert_table()
399 topa->offset = last->offset + last->size; in topa_insert_table()
400 buf->last = topa; in topa_insert_table()
405 BUG_ON(last->last != TENTS_PER_PAGE - 1); in topa_insert_table()
407 TOPA_ENTRY(last, -1)->base = topa->phys >> TOPA_SHIFT; in topa_insert_table()
408 TOPA_ENTRY(last, -1)->end = 1; in topa_insert_table()
419 return !!topa->last; in topa_table_full()
421 return topa->last == TENTS_PER_PAGE - 1; in topa_table_full()
436 struct topa *topa = buf->last; in topa_insert_pages()
459 topa->last++; in topa_insert_pages()
508 if (buf->cur_idx == buf->cur->last) { in pt_buffer_advance()
509 if (buf->cur == buf->last) in pt_buffer_advance()
654 if (buf->first == buf->last && buf->first->last == 1) in pt_topa_next_entry()
737 struct topa *cur = buf->first, *prev = buf->last; in pt_buffer_setup_topa_index()
739 *te_prev = TOPA_ENTRY(prev, prev->last - 1); in pt_buffer_setup_topa_index()
751 if (idx == cur->last - 1) { in pt_buffer_setup_topa_index()
844 TOPA_ENTRY(buf->last, -1)->base = buf->first->phys >> TOPA_SHIFT; in pt_buffer_init_topa()
845 TOPA_ENTRY(buf->last, -1)->end = 1; in pt_buffer_init_topa()