Lines Matching refs:last
272 int last; member
276 #define TOPA_ENTRY(t, i) ((i) == -1 ? &(t)->table[(t)->last] : &(t)->table[(i)])
296 topa->last = 0; in topa_alloc()
331 struct topa *last = buf->last; in topa_insert_table() local
336 buf->first = buf->last = buf->cur = topa; in topa_insert_table()
340 topa->offset = last->offset + last->size; in topa_insert_table()
341 buf->last = topa; in topa_insert_table()
346 BUG_ON(last->last != TENTS_PER_PAGE - 1); in topa_insert_table()
348 TOPA_ENTRY(last, -1)->base = topa->phys >> TOPA_SHIFT; in topa_insert_table()
349 TOPA_ENTRY(last, -1)->end = 1; in topa_insert_table()
360 return !!topa->last; in topa_table_full()
362 return topa->last == TENTS_PER_PAGE - 1; in topa_table_full()
377 struct topa *topa = buf->last; in topa_insert_pages()
400 topa->last++; in topa_insert_pages()
449 if (buf->cur_idx == buf->cur->last) { in pt_buffer_advance()
450 if (buf->cur == buf->last) in pt_buffer_advance()
595 if (buf->first == buf->last && buf->first->last == 1) in pt_topa_next_entry()
676 struct topa *cur = buf->first, *prev = buf->last; in pt_buffer_setup_topa_index()
678 *te_prev = TOPA_ENTRY(prev, prev->last - 1); in pt_buffer_setup_topa_index()
690 if (idx == cur->last - 1) { in pt_buffer_setup_topa_index()
776 TOPA_ENTRY(buf->last, -1)->base = buf->first->phys >> TOPA_SHIFT; in pt_buffer_init_topa()
777 TOPA_ENTRY(buf->last, -1)->end = 1; in pt_buffer_init_topa()