Lines Matching refs:uintptr_t

19 #define K_MEM_PHYS_RAM_START	((uintptr_t)CONFIG_SRAM_BASE_ADDRESS)
65 #define K_MEM_BOOT_VIRT_TO_PHYS(virt) ((uintptr_t)(((uint8_t *)(virt)) - K_MEM_VM_OFFSET))
78 #define K_MEM_BOOT_PHYS_TO_VIRT(phys) ((uint8_t *)(((uintptr_t)(phys)) + K_MEM_VM_OFFSET))
173 uintptr_t va_and_flags;
249 uintptr_t wide_flags = flags; in k_mem_page_frame_clear()
254 static inline void k_mem_assert_phys_aligned(uintptr_t phys) in k_mem_assert_phys_aligned()
263 static inline uintptr_t k_mem_page_frame_to_phys(struct k_mem_page_frame *pf) in k_mem_page_frame_to_phys()
265 return (uintptr_t)((pf - k_mem_page_frames) * CONFIG_MMU_PAGE_SIZE) + in k_mem_page_frame_to_phys()
272 uintptr_t flags_mask = CONFIG_MMU_PAGE_SIZE - 1; in k_mem_page_frame_to_virt()
277 static inline bool k_mem_is_page_frame(uintptr_t 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()
281 (uintptr_t)(K_MEM_PHYS_RAM_END - 1)); 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()
295 __ASSERT((uintptr_t)addr % CONFIG_MMU_PAGE_SIZE == 0U, in k_mem_assert_virtual_region()
301 __ASSERT(IN_RANGE((uintptr_t)addr, in k_mem_assert_virtual_region()
302 (uintptr_t)K_MEM_VIRT_RAM_START, in k_mem_assert_virtual_region()
303 ((uintptr_t)K_MEM_VIRT_RAM_END - 1)) && in k_mem_assert_virtual_region()
304 IN_RANGE(((uintptr_t)addr + size - 1), in k_mem_assert_virtual_region()
305 (uintptr_t)K_MEM_VIRT_RAM_START, in k_mem_assert_virtual_region()
306 ((uintptr_t)K_MEM_VIRT_RAM_END - 1)), in k_mem_assert_virtual_region()
339 #define K_MEM_SCRATCH_PAGE ((void *)((uintptr_t)CONFIG_KERNEL_VM_BASE + \
340 (uintptr_t)CONFIG_KERNEL_VM_SIZE - \
378 int k_mem_page_frame_evict(uintptr_t phys);