Lines Matching refs:alloc_size
33 static const size_t alloc_size = (1UL << PD_SHIFT) - PAGE_SIZE; in mmu_tests() local
45 err = aspace.MapContiguous(va + alloc_size - PAGE_SIZE, 0, 1, arch_rw_flags, &mapped); in mmu_tests()
53 err = aspace.Query(va + alloc_size - PAGE_SIZE, &pa, &flags); in mmu_tests()
59 err = aspace.Unmap(va, alloc_size / PAGE_SIZE, &unmapped); in mmu_tests()
61 EXPECT_EQ(unmapped, alloc_size / PAGE_SIZE, "unmap unallocated region"); in mmu_tests()
64 err = aspace.Query(va + alloc_size - PAGE_SIZE, &pa, &flags); in mmu_tests()
93 static const size_t alloc_size = 3UL << PD_SHIFT; in mmu_tests() local
107 err = aspace.Unmap(va, alloc_size / PAGE_SIZE, &unmapped); in mmu_tests()
109 EXPECT_EQ(unmapped, alloc_size / PAGE_SIZE, "unmap unallocated region"); in mmu_tests()
135 static const size_t alloc_size = 1UL << PD_SHIFT; in mmu_tests() local
138 err = aspace.MapContiguous(va, 0, alloc_size / PAGE_SIZE, arch_rw_flags, &mapped); in mmu_tests()