Lines Matching refs:pf
70 static inline uint32_t pf_to_idx(struct k_mem_page_frame *pf) in pf_to_idx() argument
72 return (pf - k_mem_page_frames) + 1; in pf_to_idx()
119 struct k_mem_page_frame *pf = idx_to_pf(LRU_PF_HEAD); in lru_pf_remove() local
120 uintptr_t flags = arch_page_info_get(k_mem_page_frame_to_virt(pf), NULL, true); in lru_pf_remove()
128 void k_mem_paging_eviction_add(struct k_mem_page_frame *pf) in k_mem_paging_eviction_add() argument
130 uint32_t pf_idx = pf_to_idx(pf); in k_mem_paging_eviction_add()
133 __ASSERT(k_mem_page_frame_is_evictable(pf), ""); in k_mem_paging_eviction_add()
139 void k_mem_paging_eviction_remove(struct k_mem_page_frame *pf) in k_mem_paging_eviction_remove() argument
141 uint32_t pf_idx = pf_to_idx(pf); in k_mem_paging_eviction_remove()
151 struct k_mem_page_frame *pf = k_mem_phys_to_page_frame(phys); in k_mem_paging_eviction_accessed() local
152 uint32_t pf_idx = pf_to_idx(pf); in k_mem_paging_eviction_accessed()
170 struct k_mem_page_frame *pf = idx_to_pf(head_pf_idx); in k_mem_paging_eviction_select() local
171 uintptr_t flags = arch_page_info_get(k_mem_page_frame_to_virt(pf), NULL, false); in k_mem_paging_eviction_select()
173 __ASSERT(k_mem_page_frame_is_evictable(pf), ""); in k_mem_paging_eviction_select()
175 return pf; in k_mem_paging_eviction_select()