Lines Matching refs:ptables

738 static int __add_map(struct arm_mmu_ptables *ptables, const char *name,  in __add_map()  argument
750 return set_mapping(ptables->base_xlat_table, virt, size, desc, may_overwrite); in __add_map()
753 static int add_map(struct arm_mmu_ptables *ptables, const char *name, in add_map() argument
760 ret = __add_map(ptables, name, phys, virt, size, attrs); in add_map()
765 static void remove_map(struct arm_mmu_ptables *ptables, const char *name, in remove_map() argument
775 del_mapping(ptables->base_xlat_table, virt, size, BASE_XLAT_LEVEL); in remove_map()
833 static inline void add_arm_mmu_flat_range(struct arm_mmu_ptables *ptables, in add_arm_mmu_flat_range() argument
842 __add_map(ptables, range->name, address, address, in add_arm_mmu_flat_range()
847 static inline void add_arm_mmu_region(struct arm_mmu_ptables *ptables, in add_arm_mmu_region() argument
853 __add_map(ptables, region->name, region->base_pa, region->base_va, in add_arm_mmu_region()
873 static void setup_page_tables(struct arm_mmu_ptables *ptables) in setup_page_tables() argument
899 add_arm_mmu_flat_range(ptables, range, 0); in setup_page_tables()
908 add_arm_mmu_region(ptables, region, MT_NO_OVERWRITE); in setup_page_tables()
961 static void enable_mmu_el1(struct arm_mmu_ptables *ptables, unsigned int flags) in enable_mmu_el1() argument
969 write_ttbr0_el1((uint64_t)ptables->base_xlat_table); in enable_mmu_el1()
1034 domain_ptables = &domain->ptables; in sync_domains()
1047 struct arm_mmu_ptables *ptables; in __arch_mem_map() local
1051 ptables = &kernel_ptables; in __arch_mem_map()
1109 return add_map(ptables, "generic", phys, (uintptr_t)virt, size, entry_flags); in __arch_mem_map()
1206 struct arm_mmu_ptables *domain_ptables = &domain->arch.ptables; in arch_mem_domain_init()
1238 static int private_map(struct arm_mmu_ptables *ptables, const char *name, in private_map() argument
1243 ret = privatize_page_range(ptables, &kernel_ptables, virt, size, name); in private_map()
1245 ret = add_map(ptables, name, phys, virt, size, attrs | MT_NG); in private_map()
1253 static int reset_map(struct arm_mmu_ptables *ptables, const char *name, in reset_map() argument
1258 ret = globalize_page_range(ptables, &kernel_ptables, addr, size, name); in reset_map()
1268 struct arm_mmu_ptables *domain_ptables = &domain->arch.ptables; in arch_mem_domain_partition_add()
1278 struct arm_mmu_ptables *domain_ptables = &domain->arch.ptables; in arch_mem_domain_partition_remove()
1286 struct arm_mmu_ptables *ptables) in map_thread_stack() argument
1288 return private_map(ptables, "thread_stack", thread->stack_info.start, in map_thread_stack()
1301 domain_ptables = &domain->arch.ptables; in arch_mem_domain_thread_add()
1302 old_ptables = thread->arch.ptables; in arch_mem_domain_thread_add()
1311 thread->arch.ptables = domain_ptables; in arch_mem_domain_thread_add()
1335 domain_ptables = &domain->arch.ptables; in arch_mem_domain_thread_remove()
1351 struct arm_mmu_ptables *ptables = incoming->arch.ptables; in z_arm64_swap_ptables() local
1353 uint64_t new_ttbr0 = ptables->ttbr0; in z_arm64_swap_ptables()
1369 struct arm_mmu_ptables *ptables; in z_arm64_thread_mem_domains_init() local
1375 ptables = incoming->arch.ptables; in z_arm64_thread_mem_domains_init()
1378 map_thread_stack(incoming, ptables); in z_arm64_thread_mem_domains_init()
1392 static uint64_t *get_pte_location(struct arm_mmu_ptables *ptables, in get_pte_location() argument
1396 uint64_t *table = ptables->base_xlat_table; in get_pte_location()