Lines Matching refs:phys

739 		     uintptr_t phys, uintptr_t virt, size_t size, uint32_t attrs)  in __add_map()  argument
745 name, virt, phys, size, desc, in __add_map()
747 __ASSERT(((virt | phys | size) & (CONFIG_MMU_PAGE_SIZE - 1)) == 0, in __add_map()
749 desc |= phys; in __add_map()
754 uintptr_t phys, uintptr_t virt, size_t size, uint32_t attrs) in add_map() argument
760 ret = __add_map(ptables, name, phys, virt, size, attrs); in add_map()
1045 static int __arch_mem_map(void *virt, uintptr_t phys, size_t size, uint32_t flags) in __arch_mem_map() argument
1109 return add_map(ptables, "generic", phys, (uintptr_t)virt, size, entry_flags); in __arch_mem_map()
1112 void arch_mem_map(void *virt, uintptr_t phys, size_t size, uint32_t flags) in arch_mem_map() argument
1114 int ret = __arch_mem_map(virt, phys, size, flags); in arch_mem_map()
1144 int arch_page_phys_get(void *virt, uintptr_t *phys) in arch_page_phys_get() argument
1159 if (phys) { in arch_page_phys_get()
1160 *phys = par & GENMASK64(47, 12); in arch_page_phys_get()
1165 size_t arch_virt_region_align(uintptr_t phys, size_t size) in arch_virt_region_align() argument
1178 if ((phys & (level_size - 1))) { in arch_virt_region_align()
1239 uintptr_t phys, uintptr_t virt, size_t size, uint32_t attrs) in private_map() argument
1245 ret = add_map(ptables, name, phys, virt, size, attrs | MT_NG); in private_map()
1448 void arch_mem_page_in(void *addr, uintptr_t phys) in arch_mem_page_in() argument
1454 __ASSERT((phys & ~PTE_PHYSADDR_MASK) == 0, ""); in arch_mem_page_in()
1466 desc |= phys; in arch_mem_page_in()
1475 MMU_DEBUG("page_in: virt=%#lx phys=%#lx\n", virt, phys); in arch_mem_page_in()
1512 uintptr_t arch_page_info_get(void *addr, uintptr_t *phys, bool clear_accessed) in arch_page_info_get() argument
1538 if (phys) { in arch_page_info_get()
1539 *phys = desc & PTE_PHYSADDR_MASK; in arch_page_info_get()
1568 void arch_mem_scratch(uintptr_t phys) in arch_mem_scratch() argument
1572 int ret = add_map(&kernel_ptables, "scratch", phys, virt, size, MT_SCRATCH); in arch_mem_scratch()
1603 uintptr_t phys; in z_arm64_do_demand_paging() local
1673 phys = desc & PTE_PHYSADDR_MASK; in z_arm64_do_demand_paging()
1674 k_mem_paging_eviction_accessed(phys); in z_arm64_do_demand_paging()
1688 phys = desc & PTE_PHYSADDR_MASK; in z_arm64_do_demand_paging()
1689 k_mem_paging_eviction_accessed(phys); in z_arm64_do_demand_paging()