Lines Matching full:phys

456  * @param[out] phys Physical address mapped to the input virtual address
462 static int virt_to_page_frame(void *virt, uintptr_t *phys) in virt_to_page_frame() argument
472 *phys = z_page_frame_to_phys(pf); in virt_to_page_frame()
504 uintptr_t phys; in map_anon_page() local
532 phys = z_page_frame_to_phys(pf); in map_anon_page()
533 arch_mem_map(addr, phys, CONFIG_MMU_PAGE_SIZE, flags | K_MEM_CACHE_WB); in map_anon_page()
540 LOG_DBG("memory mapping anon page %p -> 0x%lx", addr, phys); in map_anon_page()
612 uintptr_t phys; in k_mem_unmap() local
652 ret = arch_page_phys_get(pos, &phys); in k_mem_unmap()
662 __ASSERT(z_is_page_frame(phys), in k_mem_unmap()
663 "%s: 0x%lx is not a page frame", __func__, phys); in k_mem_unmap()
664 if (!z_is_page_frame(phys)) { in k_mem_unmap()
673 pf = z_phys_to_page_frame(phys); in k_mem_unmap()
676 "%s: 0x%lx is not a mapped page frame", __func__, phys); in k_mem_unmap()
725 * @param[in] phys Physical address of region to be mapped, aligned to MMU_PAGE_SIZE
730 static size_t virt_region_align(uintptr_t phys, size_t size) in virt_region_align() argument
732 ARG_UNUSED(phys); in virt_region_align()
744 void z_phys_map(uint8_t **virt_ptr, uintptr_t phys, size_t size, uint32_t flags) in z_phys_map() argument
757 phys, size, in z_phys_map()
824 phys, size, flags); in z_phys_map()
900 uintptr_t phys; in z_mem_manage_init() local
954 Z_PAGE_FRAME_FOREACH(phys, pf) { in z_mem_manage_init()
1103 uintptr_t phys; in page_frame_prepare_locked() local
1107 phys = z_page_frame_to_phys(pf); in page_frame_prepare_locked()
1109 phys); in page_frame_prepare_locked()
1127 arch_mem_scratch(phys); in page_frame_prepare_locked()
1145 phys); in page_frame_prepare_locked()
1162 uintptr_t flags, phys; in do_mem_evict() local
1171 flags = arch_page_info_get(addr, &phys, false); in do_mem_evict()
1181 pf = z_phys_to_page_frame(phys); in do_mem_evict()
1226 int z_page_frame_evict(uintptr_t phys) in z_page_frame_evict() argument
1235 __func__, phys); in z_page_frame_evict()
1248 pf = z_phys_to_page_frame(phys); in z_page_frame_evict()
1437 uintptr_t phys = page_in_location; in do_page_fault() local
1439 pf = z_phys_to_page_frame(phys); in do_page_fault()
1545 uintptr_t flags, phys; in do_mem_unpin() local
1548 flags = arch_page_info_get(addr, &phys, false); in do_mem_unpin()
1552 pf = z_phys_to_page_frame(phys); in do_mem_unpin()