Lines Matching full:phys
51 #define Z_BOOT_PHYS_TO_VIRT(phys) ((uint8_t *)(((uintptr_t)phys) + Z_VM_OFFSET)) argument
165 static inline void z_assert_phys_aligned(uintptr_t phys) in z_assert_phys_aligned() argument
167 __ASSERT(phys % CONFIG_MMU_PAGE_SIZE == 0U, in z_assert_phys_aligned()
168 "physical address 0x%lx is not page-aligned", phys); in z_assert_phys_aligned()
169 (void)phys; in z_assert_phys_aligned()
186 static inline bool z_is_page_frame(uintptr_t phys) in z_is_page_frame() argument
188 z_assert_phys_aligned(phys); in z_is_page_frame()
189 return (phys >= Z_PHYS_RAM_START) && (phys < Z_PHYS_RAM_END); in z_is_page_frame()
192 static inline struct z_page_frame *z_phys_to_page_frame(uintptr_t phys) in z_phys_to_page_frame() argument
194 __ASSERT(z_is_page_frame(phys), in z_phys_to_page_frame()
195 "0x%lx not an SRAM physical address", phys); in z_phys_to_page_frame()
197 return &z_page_frames[(phys - Z_PHYS_RAM_START) / in z_phys_to_page_frame()
267 * @param phys Page frame physical address
271 int z_page_frame_evict(uintptr_t phys);