Lines Matching refs:pg
95 FreePage *pg;
155 pg = (void *)(start + i);
156 pg->magic = FREEPAGE_MAGIC_FREE;
161 LIST_INSERT_HEAD(&freeList, pg, entries);
172 PAllocGetInfo(void *pg)
174 uintptr_t entry = (uintptr_t)DMVA2PA(pg) / PGSIZE;
191 FreePage *pg;
194 pg = LIST_FIRST(&freeList);
195 ASSERT(pg != NULL);
196 LIST_REMOVE(pg, entries);
198 ASSERT(pg->magic == FREEPAGE_MAGIC_FREE);
200 info = PAllocGetInfo(pg);
205 pg->magic = FREEPAGE_MAGIC_INUSE;
210 memset(pg, 0, PGSIZE);
212 return (void *)pg;
223 FreePage *pg = (FreePage *)region;
227 LIST_INSERT_HEAD(&freeList, pg, entries);
232 ASSERT(pg->magic != FREEPAGE_MAGIC_FREE);
234 PageInfo *info = PAllocGetInfo(pg);
238 pg->magic = FREEPAGE_MAGIC_FREE;
248 PAlloc_Retain(void *pg)
250 PageInfo *info = PAllocGetInfo(pg);
265 PAlloc_Release(void *pg)
267 PageInfo *info = PAllocGetInfo(pg);
273 PAllocFreePage(pg);