Lines Matching full:phys
74 * @param phys Physical address.
78 #define K_MEM_BOOT_PHYS_TO_VIRT(phys) ((uint8_t *)(((uintptr_t)(phys)) + K_MEM_VM_OFFSET)) argument
254 static inline void k_mem_assert_phys_aligned(uintptr_t phys) in k_mem_assert_phys_aligned() argument
256 __ASSERT(phys % CONFIG_MMU_PAGE_SIZE == 0U, in k_mem_assert_phys_aligned()
257 "physical address 0x%lx is not page-aligned", phys); in k_mem_assert_phys_aligned()
258 (void)phys; in k_mem_assert_phys_aligned()
277 static inline bool k_mem_is_page_frame(uintptr_t phys) in k_mem_is_page_frame() argument
279 k_mem_assert_phys_aligned(phys); in k_mem_is_page_frame()
280 return IN_RANGE(phys, (uintptr_t)K_MEM_PHYS_RAM_START, in k_mem_is_page_frame()
284 static inline struct k_mem_page_frame *k_mem_phys_to_page_frame(uintptr_t phys) in k_mem_phys_to_page_frame() argument
286 __ASSERT(k_mem_is_page_frame(phys), in k_mem_phys_to_page_frame()
287 "0x%lx not an SRAM physical address", phys); in k_mem_phys_to_page_frame()
289 return &k_mem_page_frames[(phys - K_MEM_PHYS_RAM_START) / in k_mem_phys_to_page_frame()
374 * @param phys Page frame physical address
378 int k_mem_page_frame_evict(uintptr_t phys);