Searched refs:unit_pages (Results 1 – 5 of 5) sorted by relevance
/linux-6.6.21/include/linux/ |
D | memory.h | 62 unsigned long unit_pages; member 158 extern int memory_group_register_dynamic(int nid, unsigned long unit_pages);
|
/linux-6.6.21/drivers/base/ |
D | memory.c | 1124 int memory_group_register_dynamic(int nid, unsigned long unit_pages) in memory_group_register_dynamic() argument 1130 .unit_pages = unit_pages, in memory_group_register_dynamic() 1134 if (!unit_pages || !is_power_of_2(unit_pages) || in memory_group_register_dynamic() 1135 unit_pages < PHYS_PFN(memory_block_size_bytes())) in memory_group_register_dynamic()
|
/linux-6.6.21/mm/ |
D | percpu.c | 3242 int unit_pages; in pcpu_page_first_chunk() local 3262 unit_pages = ai->unit_size >> PAGE_SHIFT; in pcpu_page_first_chunk() 3265 pages_size = PFN_ALIGN(unit_pages * num_possible_cpus() * in pcpu_page_first_chunk() 3276 for (i = 0; i < unit_pages; i++) { in pcpu_page_first_chunk() 3300 for (i = 0; i < unit_pages; i++) in pcpu_page_first_chunk() 3304 rc = __pcpu_map_pages(unit_addr, &pages[unit * unit_pages], in pcpu_page_first_chunk() 3305 unit_pages); in pcpu_page_first_chunk() 3317 unit_pages, psize_str, ai->static_size, in pcpu_page_first_chunk()
|
D | memory_hotplug.c | 980 } else if (!group || group->d.unit_pages == nr_pages) { in auto_movable_zone_for_pfn() 983 max_pages = group->d.unit_pages; in auto_movable_zone_for_pfn() 990 pfn = ALIGN_DOWN(pfn, group->d.unit_pages); in auto_movable_zone_for_pfn() 991 end_pfn = pfn + group->d.unit_pages; in auto_movable_zone_for_pfn()
|
/linux-6.6.21/drivers/virtio/ |
D | virtio_mem.c | 2513 uint64_t unit_pages, sb_size, addr; in virtio_mem_init_hotplug() local 2595 unit_pages = PHYS_PFN(memory_block_size_bytes()); in virtio_mem_init_hotplug() 2597 unit_pages = PHYS_PFN(vm->bbm.bb_size); in virtio_mem_init_hotplug() 2598 rc = memory_group_register_dynamic(vm->nid, unit_pages); in virtio_mem_init_hotplug()
|