Lines Matching defs:alloc_size
31 // Make sure alloc_size is less than 1 PD page, to exercise the
33 static const size_t alloc_size = (1UL << PD_SHIFT) - PAGE_SIZE;
45 err = aspace.MapContiguous(va + alloc_size - PAGE_SIZE, 0, 1, arch_rw_flags, &mapped);
53 err = aspace.Query(va + alloc_size - PAGE_SIZE, &pa, &flags);
59 err = aspace.Unmap(va, alloc_size / PAGE_SIZE, &unmapped);
61 EXPECT_EQ(unmapped, alloc_size / PAGE_SIZE, "unmap unallocated region");
64 err = aspace.Query(va + alloc_size - PAGE_SIZE, &pa, &flags);
91 // Make sure alloc_size is bigger than 1 PD page, to exercise the
93 static const size_t alloc_size = 3UL << PD_SHIFT;
107 err = aspace.Unmap(va, alloc_size / PAGE_SIZE, &unmapped);
109 EXPECT_EQ(unmapped, alloc_size / PAGE_SIZE, "unmap unallocated region");
135 static const size_t alloc_size = 1UL << PD_SHIFT;
138 err = aspace.MapContiguous(va, 0, alloc_size / PAGE_SIZE, arch_rw_flags, &mapped);