Lines Matching refs:lru_pf_queue
63 static struct lru_pf_idx lru_pf_queue[K_MEM_NUM_PAGE_FRAMES + 1]; variable
67 #define LRU_PF_HEAD lru_pf_queue[0].next
68 #define LRU_PF_TAIL lru_pf_queue[0].prev
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()
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()
93 lru_pf_queue[prev].next = next; in lru_pf_unlink()
94 lru_pf_queue[next].prev = 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()
102 bool unqueued = (lru_pf_queue[pf_idx].next == 0) && in lru_pf_in_queue()
103 (lru_pf_queue[pf_idx].prev == 0) && in lru_pf_in_queue()
118 (lru_pf_queue[LRU_PF_HEAD].next != 0)) { in lru_pf_remove()