Lines Matching refs:p
168 struct Page *p = z->pages_group; in mm_init() local
170 for (int j = 0; j < z->count_pages; ++j, ++p) in mm_init()
172 p->zone = z; in mm_init()
173 p->addr_phys = addr_start + PAGE_2M_SIZE * j; in mm_init()
174 p->attr = 0; in mm_init()
176 p->ref_counts = 0; in mm_init()
177 p->age = 0; in mm_init()
180 …*(memory_management_struct.bmp + ((p->addr_phys >> PAGE_2M_SHIFT) >> 6)) ^= (1UL << ((p->addr_phys… in mm_init()
341 ul *p = memory_management_struct.bmp + (j >> 6); in alloc_pages() local
348 if (!((k ? ((*p >> k) | (*(p + 1) << (64 - k))) : *p) & tmp_num)) in alloc_pages()
380 unsigned long page_clean(struct Page *p) in page_clean() argument
382 --p->ref_counts; in page_clean()
383 --p->zone->total_pages_link; in page_clean()
386 if (!p->ref_counts) in page_clean()
388 p->attr &= PAGE_PGT_MAPPED; in page_clean()
480 struct Page *p = z->pages_group; in page_table_init() local
487 …mm_map_proc_page_table((uint64_t)get_CR3(), true, (ul)phys_2_virt(p->addr_phys), p->addr_phys, PAG… in page_table_init()
489 ++p; in page_table_init()
605 ul *p = memory_management_struct.bmp + (j >> 6); in mm_find_page() local
610 if ((*p >> k) & 1) // 若当前页已分配 in mm_find_page()
656 struct Page *p = mm_find_page(phys, ZONE_NORMAL); in mm_do_brk() local
657 if (p == NULL) in mm_do_brk()
663 free_pages(p, 1); in mm_do_brk()
680 struct Page *p = (struct Page *)kzalloc(sizeof(struct Page), 0); in __create_mmio_page_struct() local
681 if (p == NULL) in __create_mmio_page_struct()
683 p->addr_phys = paddr; in __create_mmio_page_struct()
684 page_init(p, PAGE_DEVICE); in __create_mmio_page_struct()
685 return p; in __create_mmio_page_struct()