Lines Matching refs:phys

479 static int virt_to_page_frame(void *virt, uintptr_t *phys)  in virt_to_page_frame()  argument
489 if (phys != NULL) { in virt_to_page_frame()
490 *phys = k_mem_page_frame_to_phys(pf); in virt_to_page_frame()
523 uintptr_t phys; in map_anon_page() local
551 phys = k_mem_page_frame_to_phys(pf); in map_anon_page()
552 arch_mem_map(addr, phys, CONFIG_MMU_PAGE_SIZE, flags); in map_anon_page()
564 LOG_DBG("memory mapping anon page %p -> 0x%lx", addr, phys); in map_anon_page()
569 void *k_mem_map_phys_guard(uintptr_t phys, size_t size, uint32_t flags, bool is_anon) in k_mem_map_phys_guard() argument
662 arch_mem_map(dst, phys, size, flags); in k_mem_map_phys_guard()
680 uintptr_t phys; in k_mem_unmap_phys_guard() local
745 phys = location; in k_mem_unmap_phys_guard()
749 ret = arch_page_phys_get(pos, &phys); in k_mem_unmap_phys_guard()
753 ret = arch_page_phys_get(pos, &phys); in k_mem_unmap_phys_guard()
763 __ASSERT(k_mem_is_page_frame(phys), in k_mem_unmap_phys_guard()
764 "%s: 0x%lx is not a page frame", __func__, phys); in k_mem_unmap_phys_guard()
765 if (!k_mem_is_page_frame(phys)) { in k_mem_unmap_phys_guard()
774 pf = k_mem_phys_to_page_frame(phys); in k_mem_unmap_phys_guard()
777 "%s: 0x%lx is not a mapped page frame", __func__, phys); in k_mem_unmap_phys_guard()
820 uintptr_t phys; in k_mem_update_flags() local
833 ret = arch_page_phys_get(addr, &phys); in k_mem_update_flags()
841 arch_mem_map(addr, phys, size, flags); in k_mem_update_flags()
877 static size_t virt_region_align(uintptr_t phys, size_t size) in virt_region_align() argument
879 ARG_UNUSED(phys); in virt_region_align()
891 void k_mem_map_phys_bare(uint8_t **virt_ptr, uintptr_t phys, size_t size, uint32_t flags) in k_mem_map_phys_bare() argument
904 phys, size, in k_mem_map_phys_bare()
975 phys, size, flags); in k_mem_map_phys_bare()
1085 uintptr_t phys; in z_mem_manage_init() local
1139 K_MEM_PAGE_FRAME_FOREACH(phys, pf) { in z_mem_manage_init()
1155 K_MEM_PAGE_FRAME_FOREACH(phys, pf) { in z_mem_manage_init()
1320 uintptr_t phys; in page_frame_prepare_locked() local
1324 phys = k_mem_page_frame_to_phys(pf); in page_frame_prepare_locked()
1326 phys); in page_frame_prepare_locked()
1344 arch_mem_scratch(phys); in page_frame_prepare_locked()
1366 phys); in page_frame_prepare_locked()
1383 uintptr_t flags, phys; in do_mem_evict() local
1397 flags = arch_page_info_get(addr, &phys, false); in do_mem_evict()
1407 pf = k_mem_phys_to_page_frame(phys); in do_mem_evict()
1456 int k_mem_page_frame_evict(uintptr_t phys) in k_mem_page_frame_evict() argument
1466 __func__, phys); in k_mem_page_frame_evict()
1483 pf = k_mem_phys_to_page_frame(phys); in k_mem_page_frame_evict()
1690 uintptr_t phys = page_in_location; in do_page_fault() local
1692 pf = k_mem_phys_to_page_frame(phys); in do_page_fault()
1810 uintptr_t flags, phys; in do_mem_unpin() local
1813 flags = arch_page_info_get(addr, &phys, false); in do_mem_unpin()
1817 pf = k_mem_phys_to_page_frame(phys); in do_mem_unpin()