Lines Matching defs:last

243  * Cache of results from last calculation
246 vmusage_t *vmc_results; /* Results from last call to */
665 end, char type, vmu_bound_t **first, vmu_bound_t **last)
674 *first = *last = NULL;
717 *first = *last = tmp;
725 if (*last != NULL) {
731 * If we are here we still need to set *last and
734 *last = *first;
736 if (ISWITHIN(*last, end)) {
740 walker = AVL_NEXT(tree, *last);
744 tmp->vmb_start = (*last)->vmb_end + 1;
748 avl_insert_here(tree, tmp, *last, AVL_AFTER);
749 *last = tmp;
752 if ((*last)->vmb_end + 1 != walker->vmb_start) {
755 tmp->vmb_start = (*last)->vmb_end + 1;
759 avl_insert_here(tree, tmp, *last, AVL_AFTER);
760 *last = tmp;
762 *last = walker;
773 * tree: avl_tree in which first and last hang.
775 * first, last: list of continuous bounds, of which zero or more are of
782 * update the types of bounds in (first,last) with
785 * For the list of bounds (first,last), this function updates any bounds
793 * The number of pages in the list of bounds (first,last) that were of
799 vmu_update_bounds(avl_tree_t *tree, vmu_bound_t **first, vmu_bound_t **last,
809 * Verify first and last bound are covered by new bounds if they
814 ASSERT((*last)->vmb_type != VMUSAGE_BOUND_UNKNOWN ||
815 (*last)->vmb_end <= new_last->vmb_end);
819 if (next == *last)
836 if (*last == next)
837 *last = tmp;
844 if (next == *last)
853 * Merges adjacent bounds with same type between first and last bound.
854 * After merge, last pointer may point to a different bound, as (incoming)
855 * last bound may have been merged away.
858 vmu_merge_bounds(avl_tree_t *tree, vmu_bound_t **first, vmu_bound_t **last)
865 ASSERT(*last != NULL);
868 while (current != *last) {
875 if (next == *last) {
876 *last = current;
889 * first and last may be modified, as bounds may be split into multiple
897 vmu_bound_t **first, vmu_bound_t **last, boolean_t incore)
916 if (next == *last)
963 if (*last == next)
964 *last = tmp;
977 if (next == *last) {
992 vmu_bound_t **first, vmu_bound_t **last)
1006 if (next == *last)
1050 if (*last == next)
1051 *last = tmp;
1064 if (next == *last) {
1094 vmu_bound_t *last = NULL;
1243 last = cur;
1245 last->vmb_next = cur;
1246 last = cur;
1371 &first, &last) > 0) {
1379 &last);
1385 &last, incore);
1387 vmu_merge_bounds(tree, &first, &last);
1413 &e_last, tree, first, last);