Lines Matching refs:PAGE
10 /* Allocating a page at a time, we should do first fit. */
15 void *alloc = hpdata_reserve_alloc(&hpdata, PAGE);
16 expect_ptr_eq((char *)HPDATA_ADDR + i * PAGE, alloc, "");
27 hpdata_unreserve(&hpdata, (char *)HPDATA_ADDR + 10 * PAGE, 2 * PAGE);
31 hpdata_unreserve(&hpdata, (char *)HPDATA_ADDR + 12 * PAGE, 2 * PAGE);
35 hpdata_unreserve(&hpdata, (char *)HPDATA_ADDR + 8 * PAGE, 2 * PAGE);
40 * Leave page 14 reserved, but free page 15 (this test the case where
43 hpdata_unreserve(&hpdata, (char *)HPDATA_ADDR + 15 * PAGE, PAGE);
46 * 6, then a reserved page, then another free range.
51 /* After freeing page 14, the two ranges get combined. */
52 hpdata_unreserve(&hpdata, (char *)HPDATA_ADDR + 14 * PAGE, PAGE);
62 void *alloc = hpdata_reserve_alloc(&hpdata, HUGEPAGE_PAGES / 2 * PAGE);
66 hpdata_unreserve(&hpdata, alloc, HUGEPAGE_PAGES / 4 * PAGE);
81 expect_zu_eq(HUGEPAGE_PAGES / 4 * PAGE, purge_size, "");
103 void *alloc = hpdata_reserve_alloc(&hpdata, 3 * HUGEPAGE_PAGES / 4 * PAGE);
107 hpdata_unreserve(&hpdata, alloc, HUGEPAGE_PAGES / 4 * PAGE);
109 (void *)((uintptr_t)alloc + 2 * HUGEPAGE_PAGES / 4 * PAGE),
110 HUGEPAGE_PAGES / 4 * PAGE);
126 expect_zu_eq(HUGEPAGE_PAGES / 4 * PAGE, purge_size, "");
130 (void *)((uintptr_t)alloc + 1 * HUGEPAGE_PAGES / 4 * PAGE),
131 HUGEPAGE_PAGES / 4 * PAGE);
138 (void *)((uintptr_t)alloc + 2 * HUGEPAGE_PAGES / 4 * PAGE),
140 expect_zu_ge(HUGEPAGE_PAGES / 4 * PAGE, purge_size, "");
161 void *alloc = hpdata_reserve_alloc(&hpdata, 3 * HUGEPAGE_PAGES / 4 * PAGE);
166 (void *)((uintptr_t)alloc + HUGEPAGE_PAGES / 4 * PAGE);
167 hpdata_unreserve(&hpdata, second_quarter, HUGEPAGE_PAGES / 4 * PAGE);
181 expect_zu_eq(HUGEPAGE_PAGES / 4 * PAGE, purge_size, "");
192 hpdata_unreserve(&hpdata, HPDATA_ADDR, HUGEPAGE_PAGES / 4 * PAGE);
194 (void *)((uintptr_t)alloc + 2 * HUGEPAGE_PAGES / 4 * PAGE),
195 HUGEPAGE_PAGES / 4 * PAGE);
209 expect_zu_eq(3 * HUGEPAGE_PAGES / 4 * PAGE, purge_size, "");
232 /* Hugeifying should have increased the dirty page count. */