Lines Matching full:collect
144 static struct smallstack collect = { variable
172 while (collect.index >= 3) { in do_collection()
173 page = smallstack_pop(&collect); in do_collection()
174 shadow = smallstack_pop(&collect); in do_collection()
175 origin = smallstack_pop(&collect); in do_collection()
176 kmsan_setup_meta(page, shadow, origin, collect.order); in do_collection()
177 __free_pages_core(page, collect.order, MEMINIT_EARLY); in do_collection()
184 .order = collect.order - 1, in collect_split()
189 if (!collect.order) in collect_split()
191 while (collect.index) { in collect_split()
192 page = smallstack_pop(&collect); in collect_split()
196 __memcpy(&collect, &tmp, sizeof(tmp)); in collect_split()
207 * - push held_back[N].shadow and .origin to @collect; in kmsan_memblock_discard()
208 * - while there are >= 3 elements in @collect, do garbage collection: in kmsan_memblock_discard()
209 * - pop 3 ranges from @collect; in kmsan_memblock_discard()
212 * - split each remaining element from @collect into 2 ranges of in kmsan_memblock_discard()
216 collect.order = MAX_PAGE_ORDER; in kmsan_memblock_discard()
219 smallstack_push(&collect, held_back[i].shadow); in kmsan_memblock_discard()
221 smallstack_push(&collect, held_back[i].origin); in kmsan_memblock_discard()