Home
last modified time | relevance | path

Searched refs:pf_idx (Results 1 – 2 of 2) sorted by relevance

/Zephyr-latest/subsys/demand_paging/eviction/
Dlru.c80 static inline void lru_pf_append(uint32_t pf_idx) in lru_pf_append() argument
82 lru_pf_queue[pf_idx].next = 0; in lru_pf_append()
83 lru_pf_queue[pf_idx].prev = LRU_PF_TAIL; in lru_pf_append()
84 lru_pf_queue[LRU_PF_TAIL].next = pf_idx; in lru_pf_append()
85 LRU_PF_TAIL = pf_idx; in lru_pf_append()
88 static inline void lru_pf_unlink(uint32_t pf_idx) in lru_pf_unlink() argument
90 uint32_t next = lru_pf_queue[pf_idx].next; in lru_pf_unlink()
91 uint32_t prev = lru_pf_queue[pf_idx].prev; in lru_pf_unlink()
96 lru_pf_queue[pf_idx].next = 0; in lru_pf_unlink()
97 lru_pf_queue[pf_idx].prev = 0; in lru_pf_unlink()
[all …]
Dnru.c54 uint32_t pf_idx; in k_mem_paging_eviction_select() local
59 pf_idx = last_pf_idx; in k_mem_paging_eviction_select()
61 pf = &k_mem_page_frames[pf_idx]; in k_mem_paging_eviction_select()
62 pf_idx = (pf_idx + 1) % ARRAY_SIZE(k_mem_page_frames); in k_mem_paging_eviction_select()
95 } while (pf_idx != last_pf_idx); in k_mem_paging_eviction_select()