Lines Matching refs:next

702 	 * by the previous node. We know that the next node
706 * start we want and the next node.
802 vmu_bound_t *next, *new_next, *tmp;
805 next = *first;
817 /* If bound already has type, proceed to next bound. */
818 if (next->vmb_type != VMUSAGE_BOUND_UNKNOWN) {
819 if (next == *last)
821 next = AVL_NEXT(tree, next);
824 while (new_next->vmb_end < next->vmb_start)
827 next->vmb_type = new_next->vmb_type;
828 if (new_next->vmb_end < next->vmb_end) {
833 tmp->vmb_end = next->vmb_end;
834 avl_insert_here(tree, tmp, next, AVL_AFTER);
835 next->vmb_end = new_next->vmb_end;
836 if (*last == next)
838 if (next->vmb_type == VMUSAGE_BOUND_INCORE)
839 rss += next->vmb_end - next->vmb_start + 1;
840 next = tmp;
842 if (next->vmb_type == VMUSAGE_BOUND_INCORE)
843 rss += next->vmb_end - next->vmb_start + 1;
844 if (next == *last)
846 next = AVL_NEXT(tree, next);
861 vmu_bound_t *next;
869 next = AVL_NEXT(tree, current);
870 if ((current->vmb_end + 1) == next->vmb_start &&
871 current->vmb_type == next->vmb_type) {
872 current->vmb_end = next->vmb_end;
873 avl_remove(tree, next);
874 vmu_free_bound(next);
875 if (next == *last) {
899 vmu_bound_t *next;
908 next = *first;
913 next->vmb_type = VMUSAGE_BOUND_INCORE;
915 if (next->vmb_type != VMUSAGE_BOUND_UNKNOWN) {
916 if (next == *last)
918 next = AVL_NEXT(tree, next);
921 bound_type = next->vmb_type;
922 index = next->vmb_start;
923 while (index <= next->vmb_end) {
951 next->vmb_type = page_type;
952 } else if (next->vmb_type != page_type) {
960 tmp->vmb_end = next->vmb_end;
961 avl_insert_here(tree, tmp, next, AVL_AFTER);
962 next->vmb_end = index - 1;
963 if (*last == next)
965 next = tmp;
969 * If inside large page, jump to next large
977 if (next == *last) {
978 ASSERT(next->vmb_type != VMUSAGE_BOUND_UNKNOWN);
981 next = AVL_NEXT(tree, next);
994 vmu_bound_t *next;
1000 next = *first;
1003 next->vmb_type = VMUSAGE_BOUND_NOT_INCORE;
1005 if (next->vmb_type != VMUSAGE_BOUND_UNKNOWN) {
1006 if (next == *last)
1008 next = AVL_NEXT(tree, next);
1012 bound_type = next->vmb_type;
1013 index = next->vmb_start;
1014 while (index <= next->vmb_end) {
1038 next->vmb_type = page_type;
1039 } else if (next->vmb_type != page_type) {
1047 tmp->vmb_end = next->vmb_end;
1048 avl_insert_here(tree, tmp, next, AVL_AFTER);
1049 next->vmb_end = index - 1;
1050 if (*last == next)
1052 next = tmp;
1056 * If inside large page, jump to next large
1064 if (next == *last) {
1065 ASSERT(next->vmb_type != VMUSAGE_BOUND_UNKNOWN);
1068 next = AVL_NEXT(tree, next);
1216 * If next anon is past end of mapping, simulate
1269 * page in mapping, and increment indicies to the next