Searched refs:unit_pages (Results 1 - 6 of 6) sorted by relevance
/kernel/linux/linux-6.6/include/linux/ |
H A D | memory.h | 36 * @d.unit_pages: Valid with &memory_group.is_dynamic == true. Unit in pages 62 unsigned long unit_pages; member 158 extern int memory_group_register_dynamic(int nid, unsigned long unit_pages);
|
/kernel/linux/linux-6.6/drivers/base/ |
H A D | memory.c | 1112 * @unit_pages: Unit in pages in which is memory added/removed in this dynamic 1117 * in unit_pages. 1120 * memory groups can be registered, or if unit_pages is invalid (0, not a 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()
|
/kernel/linux/linux-5.10/mm/ |
H A D | percpu.c | 2971 int unit_pages; in pcpu_page_first_chunk() local 2991 unit_pages = ai->unit_size >> PAGE_SHIFT; in pcpu_page_first_chunk() 2994 pages_size = PFN_ALIGN(unit_pages * num_possible_cpus() * in pcpu_page_first_chunk() 3005 for (i = 0; i < unit_pages; i++) { in pcpu_page_first_chunk() 3029 for (i = 0; i < unit_pages; i++) in pcpu_page_first_chunk() 3033 rc = __pcpu_map_pages(unit_addr, &pages[unit * unit_pages], in pcpu_page_first_chunk() 3034 unit_pages); in pcpu_page_first_chunk() 3052 unit_pages, psize_str, ai->static_size, in pcpu_page_first_chunk()
|
/kernel/linux/linux-6.6/mm/ |
H A 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()
|
H A D | memory_hotplug.c | 981 } else if (!group || group->d.unit_pages == nr_pages) { in auto_movable_zone_for_pfn() 984 max_pages = group->d.unit_pages; in auto_movable_zone_for_pfn() 991 pfn = ALIGN_DOWN(pfn, group->d.unit_pages); in auto_movable_zone_for_pfn() 992 end_pfn = pfn + group->d.unit_pages; in auto_movable_zone_for_pfn()
|
/kernel/linux/linux-6.6/drivers/virtio/ |
H A 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()
|
Completed in 24 milliseconds