Lines Matching refs:as
83 AS *as = PAlloc_AllocPage();
85 if (!as)
88 as->root = PAlloc_AllocPage();
89 as->tables = 1;
90 as->mappings = 0;
92 if (!as->root) {
93 PAlloc_Release(as);
99 as->root->entries[i] = 0;
102 as->root->entries[i] = systemAS.root->entries[i];
105 return as;
269 * entry. This function allocates page tables as necessary to fill in the
345 * @param [in] as Address space.
355 PMap_Map(AS *as, uint64_t phys, uint64_t virt, uint64_t pages, uint64_t flags)
362 PMapLookupEntry(as, va, &entry, PGSIZE);
379 * @param [in] as Address space.
387 PMap_Unmap(AS *as, uint64_t va, uint64_t pages)
394 PMapLookupEntry(as, vai, &entry, PGSIZE);
414 * @param [in] as Address space.
423 PMap_AllocMap(AS *as, uint64_t virt, uint64_t len, uint64_t flags)
433 PMapLookupEntry(as, va, &entry, PGSIZE);
452 * page entry. This function allocates page tables as necessary to fill in the