Lines Matching full:collect
145 static struct smallstack collect = { variable
173 while (collect.index >= 3) { in do_collection()
174 page = smallstack_pop(&collect); in do_collection()
175 shadow = smallstack_pop(&collect); in do_collection()
176 origin = smallstack_pop(&collect); in do_collection()
177 kmsan_setup_meta(page, shadow, origin, collect.order); in do_collection()
178 __free_pages_core(page, collect.order, MEMINIT_EARLY); in do_collection()
185 .order = collect.order - 1, in collect_split()
190 if (!collect.order) in collect_split()
192 while (collect.index) { in collect_split()
193 page = smallstack_pop(&collect); in collect_split()
197 __memcpy(&collect, &tmp, sizeof(tmp)); in collect_split()
208 * - push held_back[N].shadow and .origin to @collect; in kmsan_memblock_discard()
209 * - while there are >= 3 elements in @collect, do garbage collection: in kmsan_memblock_discard()
210 * - pop 3 ranges from @collect; in kmsan_memblock_discard()
213 * - split each remaining element from @collect into 2 ranges of in kmsan_memblock_discard()
217 collect.order = MAX_PAGE_ORDER; in kmsan_memblock_discard()
220 smallstack_push(&collect, held_back[i].shadow); in kmsan_memblock_discard()
222 smallstack_push(&collect, held_back[i].origin); in kmsan_memblock_discard()