/linux-6.3-rc2/mm/ |
A D | page_counter.c | 49 void page_counter_cancel(struct page_counter *counter, unsigned long nr_pages) in page_counter_cancel() 70 void page_counter_charge(struct page_counter *counter, unsigned long nr_pages) in page_counter_charge() 98 unsigned long nr_pages, in page_counter_try_charge() 153 void page_counter_uncharge(struct page_counter *counter, unsigned long nr_pages) in page_counter_uncharge() 171 int page_counter_set_max(struct page_counter *counter, unsigned long nr_pages) in page_counter_set_max() 210 void page_counter_set_min(struct page_counter *counter, unsigned long nr_pages) in page_counter_set_min() 227 void page_counter_set_low(struct page_counter *counter, unsigned long nr_pages) in page_counter_set_low() 247 unsigned long *nr_pages) in page_counter_memparse()
|
A D | sparse.c | 186 unsigned long nr_pages) in subsection_mask_set() 194 void __init subsection_map_init(unsigned long pfn, unsigned long nr_pages) in subsection_map_init() 220 void __init subsection_map_init(unsigned long pfn, unsigned long nr_pages) in subsection_map_init() 430 unsigned long nr_pages, int nid, struct vmem_altmap *altmap, in __populate_section_memmap() 633 unsigned long nr_pages, int nid, struct vmem_altmap *altmap, in populate_section_memmap() 682 static int fill_subsection_map(unsigned long pfn, unsigned long nr_pages) in fill_subsection_map() 705 unsigned long nr_pages, int nid, struct vmem_altmap *altmap, in populate_section_memmap() 721 unsigned long magic, nr_pages; in free_map_bootmem() local 829 unsigned long nr_pages, struct vmem_altmap *altmap, in section_activate() 891 unsigned long nr_pages, struct vmem_altmap *altmap, in sparse_add_section() [all …]
|
A D | hugetlb_cgroup.c | 190 unsigned int nr_pages; in hugetlb_cgroup_move_parent() local 255 static int __hugetlb_cgroup_charge_cgroup(int idx, unsigned long nr_pages, in __hugetlb_cgroup_charge_cgroup() 298 int hugetlb_cgroup_charge_cgroup(int idx, unsigned long nr_pages, in hugetlb_cgroup_charge_cgroup() 304 int hugetlb_cgroup_charge_cgroup_rsvd(int idx, unsigned long nr_pages, in hugetlb_cgroup_charge_cgroup_rsvd() 332 void hugetlb_cgroup_commit_charge(int idx, unsigned long nr_pages, in hugetlb_cgroup_commit_charge() 339 void hugetlb_cgroup_commit_charge_rsvd(int idx, unsigned long nr_pages, in hugetlb_cgroup_commit_charge_rsvd() 381 void hugetlb_cgroup_uncharge_folio(int idx, unsigned long nr_pages, in hugetlb_cgroup_uncharge_folio() 387 void hugetlb_cgroup_uncharge_folio_rsvd(int idx, unsigned long nr_pages, in hugetlb_cgroup_uncharge_folio_rsvd() 411 void hugetlb_cgroup_uncharge_cgroup(int idx, unsigned long nr_pages, in hugetlb_cgroup_uncharge_cgroup() 437 unsigned long nr_pages, in hugetlb_cgroup_uncharge_file_region() [all …]
|
A D | memory_hotplug.c | 462 unsigned long nr_pages) in remove_pfn_range_from_zone() 643 unsigned long nr_pages) in resize_zone_range() 654 unsigned long nr_pages) in resize_pgdat_range() 688 unsigned long nr_pages, in move_pfn_range_to_zone() 781 unsigned long nr_pages) in auto_movable_can_online_movable() 835 unsigned long nr_pages) in default_kernel_zone_for_pfn() 903 unsigned long nr_pages) in auto_movable_zone_for_pfn() 962 unsigned long nr_pages) in default_zone_for_pfn() 987 unsigned long nr_pages) in zone_for_pfn_range() 1006 long nr_pages) in adjust_present_page_count() [all …]
|
A D | gup_test.c | 11 unsigned long nr_pages, unsigned int gup_test_flags) in put_back_pages() 40 unsigned long nr_pages) in verify_dma_pinned() 69 unsigned long nr_pages) in dump_pages_test() 103 unsigned long i, nr_pages, addr, next; in __gup_test_ioctl() local 225 long nr_pages, cur_pages, addr, remaining_pages; in pin_longterm_test_start() local
|
A D | percpu-km.c | 55 const int nr_pages = pcpu_group_sizes[0] >> PAGE_SHIFT; in pcpu_create_chunk() local 89 const int nr_pages = pcpu_group_sizes[0] >> PAGE_SHIFT; in pcpu_destroy_chunk() local 109 size_t nr_pages, alloc_pages; in pcpu_verify_alloc_info() local
|
A D | gup.c | 1077 unsigned long start, unsigned long nr_pages, in __get_user_pages() 1342 unsigned long nr_pages, in __get_user_pages_locked() 1502 unsigned long nr_pages = (end - start) / PAGE_SIZE; in populate_vma_page_range() local 1669 unsigned long nr_pages, struct page **pages, in __get_user_pages_locked() 1910 unsigned long nr_pages, in collect_longterm_unpinnable_pages() 1961 unsigned long nr_pages, in migrate_longterm_unpinnable_pages() 2069 unsigned long nr_pages, in __gup_longterm_locked() 2220 unsigned long start, unsigned long nr_pages, in get_user_pages_remote() 2238 unsigned long start, unsigned long nr_pages, in get_user_pages_remote() 2948 unsigned long nr_pages, in internal_get_user_pages_fast() [all …]
|
A D | page_isolation.c | 181 unsigned long nr_pages; in set_migratetype_isolate() local 209 unsigned long flags, nr_pages; in unset_migratetype_isolate() local 267 __first_valid_page(unsigned long pfn, unsigned long nr_pages) in __first_valid_page() 393 unsigned long nr_pages = compound_nr(head); in isolate_single_pageblock() local
|
A D | swap.c | 94 long nr_pages = folio_nr_pages(folio); in __page_cache_release() local 166 long nr_pages = folio_nr_pages(folio); in lru_add_fn() local 330 long nr_pages = folio_nr_pages(folio); in folio_activate_fn() local 564 long nr_pages = folio_nr_pages(folio); in lru_deactivate_file_fn() local 605 long nr_pages = folio_nr_pages(folio); in lru_deactivate_fn() local 622 long nr_pages = folio_nr_pages(folio); in lru_lazyfree_fn() local
|
A D | cma_sysfs.c | 17 void cma_sysfs_account_success_pages(struct cma *cma, unsigned long nr_pages) in cma_sysfs_account_success_pages() 22 void cma_sysfs_account_fail_pages(struct cma *cma, unsigned long nr_pages) in cma_sysfs_account_fail_pages()
|
A D | migrate.c | 1540 int rc, nr_pages; in migrate_hugetlbs() local 1637 int rc, rc_saved, nr_pages; in migrate_pages_batch() local 1948 int nr_pages; in migrate_pages() local 2171 int start, int i, unsigned long nr_pages) in move_pages_and_store_status() 2200 unsigned long nr_pages, in do_pages_move() 2297 static void do_pages_stat_array(struct mm_struct *mm, unsigned long nr_pages, in do_pages_stat_array() 2360 static int do_pages_stat(struct mm_struct *mm, unsigned long nr_pages, in do_pages_stat() 2444 static int kernel_move_pages(pid_t pid, unsigned long nr_pages, in kernel_move_pages() 2474 SYSCALL_DEFINE6(move_pages, pid_t, pid, unsigned long, nr_pages, in SYSCALL_DEFINE6() argument 2531 int nr_pages = thp_nr_pages(page); in numamigrate_isolate_page() local [all …]
|
A D | memcontrol.c | 266 unsigned int nr_pages; in obj_cgroup_release() local 927 int nr_pages) in mem_cgroup_charge_statistics() 1374 int zid, int nr_pages) in mem_cgroup_update_lru_size() 2186 unsigned int nr_pages; member 2388 unsigned int nr_pages, in reclaim_high() 2527 unsigned int nr_pages, in calculate_high_delay() 2642 unsigned int nr_pages) in try_charge_memcg() 3102 unsigned int nr_pages) in obj_cgroup_charge_pages() 3334 unsigned int nr_pages = 0; in refill_obj_stock() local 3839 unsigned long nr_pages; in mem_cgroup_write() local [all …]
|
/linux-6.3-rc2/include/linux/ |
A D | hugetlb_cgroup.h | 173 unsigned long nr_pages, in hugetlb_cgroup_uncharge_file_region() 218 static inline int hugetlb_cgroup_charge_cgroup(int idx, unsigned long nr_pages, in hugetlb_cgroup_charge_cgroup() 225 unsigned long nr_pages, in hugetlb_cgroup_charge_cgroup_rsvd() 231 static inline void hugetlb_cgroup_commit_charge(int idx, unsigned long nr_pages, in hugetlb_cgroup_commit_charge() 238 hugetlb_cgroup_commit_charge_rsvd(int idx, unsigned long nr_pages, in hugetlb_cgroup_commit_charge_rsvd() 244 static inline void hugetlb_cgroup_uncharge_folio(int idx, unsigned long nr_pages, in hugetlb_cgroup_uncharge_folio() 250 unsigned long nr_pages, in hugetlb_cgroup_uncharge_folio_rsvd() 255 unsigned long nr_pages, in hugetlb_cgroup_uncharge_cgroup() 261 hugetlb_cgroup_uncharge_cgroup_rsvd(int idx, unsigned long nr_pages, in hugetlb_cgroup_uncharge_cgroup_rsvd()
|
/linux-6.3-rc2/drivers/xen/ |
A D | unpopulated-alloc.c | 34 static int fill_list(unsigned int nr_pages) in fill_list() 158 int xen_alloc_unpopulated_pages(unsigned int nr_pages, struct page **pages) in xen_alloc_unpopulated_pages() 214 void xen_free_unpopulated_pages(unsigned int nr_pages, struct page **pages) in xen_free_unpopulated_pages()
|
A D | balloon.c | 404 static enum bp_state increase_reservation(unsigned long nr_pages) in increase_reservation() 443 static enum bp_state decrease_reservation(unsigned long nr_pages, gfp_t gfp) in decrease_reservation() 585 static int add_ballooned_pages(unsigned int nr_pages) in add_ballooned_pages() 618 int xen_alloc_ballooned_pages(unsigned int nr_pages, struct page **pages) in xen_alloc_ballooned_pages() 671 void xen_free_ballooned_pages(unsigned int nr_pages, struct page **pages) in xen_free_ballooned_pages()
|
/linux-6.3-rc2/fs/ntfs/ |
A D | file.c | 488 pgoff_t index, const unsigned nr_pages, struct page **pages, in __ntfs_grab_cache_pages() 564 unsigned nr_pages, s64 pos, size_t bytes) in ntfs_prepare_pages_for_non_resident_write() 1354 unsigned nr_pages) in ntfs_flush_dcache_pages() 1378 struct page **pages, const unsigned nr_pages, in ntfs_commit_pages_after_non_resident_write() 1533 const unsigned nr_pages, s64 pos, size_t bytes) in ntfs_commit_pages_after_write() 1678 static size_t ntfs_copy_from_user_iter(struct page **pages, unsigned nr_pages, in ntfs_copy_from_user_iter() 1733 unsigned nr_pages; in ntfs_perform_write() local
|
/linux-6.3-rc2/net/rds/ |
A D | rdma.c | 154 static int rds_pin_pages(unsigned long user_addr, unsigned int nr_pages, in rds_pin_pages() 178 unsigned int nr_pages; in __rds_rdma_map() local 532 unsigned int nr_pages; in rds_rdma_pages() local 560 unsigned int nr_pages; in rds_rdma_extra_size() local 614 int nr_pages; in rds_cmsg_rdma_args() local
|
/linux-6.3-rc2/include/xen/ |
A D | xen.h | 62 static inline int xen_alloc_unpopulated_pages(unsigned int nr_pages, in xen_alloc_unpopulated_pages() 67 static inline void xen_free_unpopulated_pages(unsigned int nr_pages, in xen_free_unpopulated_pages()
|
/linux-6.3-rc2/drivers/firmware/efi/libstub/ |
A D | relocate.c | 28 unsigned long nr_pages; in efi_low_alloc_above() local 120 unsigned long nr_pages; in efi_relocate_kernel() local
|
/linux-6.3-rc2/arch/arm64/include/asm/ |
A D | kvm_pkvm.h | 27 unsigned long nr_pages = reg->size >> PAGE_SHIFT; in hyp_vmemmap_memblock_size() local 55 static inline unsigned long __hyp_pgtable_max_pages(unsigned long nr_pages) in __hyp_pgtable_max_pages()
|
/linux-6.3-rc2/drivers/virtio/ |
A D | virtio_mem.c | 889 const unsigned long nr_pages = PFN_DOWN(vm->sbm.sb_size); in virtio_mem_sbm_notify_going_offline() local 905 const unsigned long nr_pages = PFN_DOWN(vm->sbm.sb_size); in virtio_mem_sbm_notify_cancel_offline() local 921 unsigned long nr_pages) in virtio_mem_bbm_notify_going_offline() 936 unsigned long nr_pages) in virtio_mem_bbm_notify_cancel_offline() 1085 unsigned long nr_pages, bool onlined) in virtio_mem_set_fake_offline() 1106 unsigned long nr_pages, bool onlined) in virtio_mem_clear_fake_offline() 1194 unsigned long nr_pages) in virtio_mem_fake_offline_going_offline() 1218 unsigned long nr_pages) in virtio_mem_fake_offline_cancel_offline() 1655 unsigned long pfn, nr_pages; in virtio_mem_sbm_plug_any_sb() local 2104 const unsigned long nr_pages = PFN_DOWN(vm->bbm.bb_size); in virtio_mem_bbm_offline_remove_and_unplug_bb() local [all …]
|
/linux-6.3-rc2/drivers/media/v4l2-core/ |
A D | videobuf-dma-sg.c | 63 int nr_pages) in videobuf_vmalloc_to_sg() 93 int nr_pages, int offset, size_t size) in videobuf_pages_to_sg() 207 unsigned long nr_pages) in videobuf_dma_init_kernel() 266 dma_addr_t addr, unsigned long nr_pages) in videobuf_dma_init_overlay()
|
/linux-6.3-rc2/arch/powerpc/platforms/powernv/ |
A D | memtrace.c | 92 unsigned long nr_pages) in memtrace_clear_range() 113 const unsigned long nr_pages = PHYS_PFN(size); in memtrace_alloc_node() local 216 const unsigned long nr_pages = PHYS_PFN(size); in memtrace_free() local
|
/linux-6.3-rc2/tools/testing/selftests/mm/ |
A D | hugetlb-madvise.c | 81 void write_fault_pages(void *addr, unsigned long nr_pages) in write_fault_pages() 89 void read_fault_pages(void *addr, unsigned long nr_pages) in read_fault_pages()
|
/linux-6.3-rc2/arch/powerpc/mm/ |
A D | mem.c | 125 int __ref add_pages(int nid, unsigned long start_pfn, unsigned long nr_pages, in add_pages() 145 unsigned long nr_pages = size >> PAGE_SHIFT; in arch_add_memory() local 160 unsigned long nr_pages = size >> PAGE_SHIFT; in arch_remove_memory() local
|