Lines Matching defs:pg
119 struct vm_page *pg;
140 pg = LIST_FIRST(head);
141 while (__predict_true(pg != NULL && count < FILLPGS)) {
142 KASSERT(pg->flags & PG_FREE);
143 KASSERT(uvm_page_get_bucket(pg) == b);
144 pcc->pages[count++] = pg;
145 pg = LIST_NEXT(pg, pageq.list);
149 head->lh_first = pg;
150 if (__predict_true(pg != NULL)) {
151 pg->pageq.list.le_prev = &head->lh_first;
208 struct vm_page *pg;
220 pg = pcc->pages[--(pcc->count)];
221 KASSERT(pg != NULL);
222 KASSERT(pg->flags == PG_FREE);
223 KASSERT(uvm_page_get_freelist(pg) == fl);
224 KASSERT(uvm_page_get_bucket(pg) == ucpu->pgflbucket);
225 pg->flags = PG_BUSY | PG_CLEAN | PG_FAKE;
226 return pg;
237 uvm_pgflcache_free(struct uvm_cpu *ucpu, struct vm_page *pg)
243 KASSERT(uvm_page_get_bucket(pg) == ucpu->pgflbucket);
246 fl = uvm_page_get_freelist(pg);
252 c = VM_PGCOLOR(pg);
254 KASSERT((pg->flags & PG_FREE) == 0);
258 pg->flags = PG_FREE;
259 pcc->pages[pcc->count] = pg;
425 uvm_pgflcache_free(struct uvm_cpu *ucpu, struct vm_page *pg)