Lines Matching defs:last
571 * @last: index of the last initialized entry in this table
578 int last;
615 /* make -1 stand for the last table entry */
618 ? &topa_to_page(t)->table[(t)->last] \
668 tp->topa.last = 0;
698 * "last" table and adjust the last table pointer to @topa.
702 struct topa *last = buf->last;
707 buf->first = buf->last = buf->cur = topa;
711 topa->offset = last->offset + last->size;
712 buf->last = topa;
717 BUG_ON(last->last != TENTS_PER_PAGE - 1);
719 TOPA_ENTRY(last, -1)->base = topa_pfn(topa);
720 TOPA_ENTRY(last, -1)->end = 1;
731 return !!topa->last;
733 return topa->last == TENTS_PER_PAGE - 1;
748 struct topa *topa = buf->last;
764 if (topa->z_count == topa->last - 1) {
765 if (order == TOPA_ENTRY(topa, topa->last - 1)->size)
777 topa->last++;
829 if (buf->cur_idx == buf->cur->last) {
830 if (buf->cur == buf->last)
1008 if (WARN_ON_ONCE(topa->last == -1))
1030 for (idx = start_idx, cur_pg += z_pg; idx < topa->last; idx++) {
1058 topa = buf->last;
1064 return &tp->table[topa->last - 1];
1233 /* link last table to the first one, unless we're double buffering */
1235 TOPA_ENTRY(buf->last, -1)->base = topa_pfn(buf->first);
1236 TOPA_ENTRY(buf->last, -1)->end = 1;