/linux-6.6.21/mm/ |
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()
|
D | sparse.c | 185 unsigned long nr_pages) in subsection_mask_set() 193 void __init subsection_map_init(unsigned long pfn, unsigned long nr_pages) in subsection_map_init() 219 void __init subsection_map_init(unsigned long pfn, unsigned long nr_pages) in subsection_map_init() 429 unsigned long nr_pages, int nid, struct vmem_altmap *altmap, in __populate_section_memmap() 632 unsigned long nr_pages, int nid, struct vmem_altmap *altmap, in populate_section_memmap() 638 static void depopulate_section_memmap(unsigned long pfn, unsigned long nr_pages, in depopulate_section_memmap() 654 static int clear_subsection_map(unsigned long pfn, unsigned long nr_pages) in clear_subsection_map() 681 static int fill_subsection_map(unsigned long pfn, unsigned long nr_pages) in fill_subsection_map() 704 unsigned long nr_pages, int nid, struct vmem_altmap *altmap, in populate_section_memmap() 711 static void depopulate_section_memmap(unsigned long pfn, unsigned long nr_pages, in depopulate_section_memmap() [all …]
|
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() 311 static void __hugetlb_cgroup_commit_charge(int idx, unsigned long nr_pages, in __hugetlb_cgroup_commit_charge() 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() 349 static void __hugetlb_cgroup_uncharge_folio(int idx, unsigned long nr_pages, in __hugetlb_cgroup_uncharge_folio() 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() [all …]
|
D | memory_hotplug.c | 59 unsigned long nr_pages = PFN_UP(memory_block_memmap_size()); in memory_block_memmap_on_memory_pages() local 299 static int check_pfn_span(unsigned long pfn, unsigned long nr_pages) in check_pfn_span() 369 int __ref __add_pages(int nid, unsigned long pfn, unsigned long nr_pages, in __add_pages() 529 unsigned long nr_pages) in remove_pfn_range_from_zone() 573 void __remove_pages(unsigned long pfn, unsigned long nr_pages, in __remove_pages() 644 static void online_pages_range(unsigned long start_pfn, unsigned long nr_pages) in online_pages_range() 681 static void node_states_check_changes_online(unsigned long nr_pages, in node_states_check_changes_online() 705 unsigned long nr_pages) in resize_zone_range() 716 unsigned long nr_pages) in resize_pgdat_range() 750 unsigned long nr_pages, in move_pfn_range_to_zone() [all …]
|
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() 70 unsigned long nr_pages) in dump_pages_test() 104 unsigned long i, nr_pages, addr, next; in __gup_test_ioctl() local 224 long nr_pages, cur_pages, addr, remaining_pages; in pin_longterm_test_start() local
|
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
|
D | gup.c | 1185 unsigned long start, unsigned long nr_pages, in __get_user_pages() 1466 unsigned long nr_pages, in __get_user_pages_locked() 1625 unsigned long nr_pages = (end - start) / PAGE_SIZE; in populate_vma_page_range() local 1694 unsigned long nr_pages = (end - start) / PAGE_SIZE; in faultin_vma_page_range() local 1792 unsigned long nr_pages, struct page **pages, in __get_user_pages_locked() 2030 unsigned long nr_pages, in collect_longterm_unpinnable_pages() 2081 unsigned long nr_pages, in migrate_longterm_unpinnable_pages() 2161 static long check_and_migrate_movable_pages(unsigned long nr_pages, in check_and_migrate_movable_pages() 2176 static long check_and_migrate_movable_pages(unsigned long nr_pages, in check_and_migrate_movable_pages() 2189 unsigned long nr_pages, in __gup_longterm_locked() [all …]
|
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
|
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
|
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()
|
D | migrate.c | 1529 int rc, nr_pages; in migrate_hugetlbs() local 1629 int rc, rc_saved = 0, nr_pages; in migrate_pages_batch() local 1900 int nr_pages; in migrate_pages() local 2141 int start, int i, unsigned long nr_pages) in move_pages_and_store_status() 2170 unsigned long nr_pages, in do_pages_move() 2275 static void do_pages_stat_array(struct mm_struct *mm, unsigned long nr_pages, in do_pages_stat_array() 2338 static int do_pages_stat(struct mm_struct *mm, unsigned long nr_pages, in do_pages_stat() 2422 static int kernel_move_pages(pid_t pid, unsigned long nr_pages, in kernel_move_pages() 2452 SYSCALL_DEFINE6(move_pages, pid_t, pid, unsigned long, nr_pages, in SYSCALL_DEFINE6() argument 2506 int nr_pages = thp_nr_pages(page); in numamigrate_isolate_page() local [all …]
|
D | memcontrol.c | 267 unsigned int nr_pages; in obj_cgroup_release() local 470 unsigned long nr_pages = page_counter_read(&memcg->memory); in soft_limit_excess() local 939 int nr_pages) in mem_cgroup_charge_statistics() 1385 int zid, int nr_pages) in mem_cgroup_update_lru_size() 2182 unsigned int nr_pages; member 2217 static void memcg_account_kmem(struct mem_cgroup *memcg, int nr_pages) in memcg_account_kmem() 2233 static bool consume_stock(struct mem_cgroup *memcg, unsigned int nr_pages) in consume_stock() 2303 static void __refill_stock(struct mem_cgroup *memcg, unsigned int nr_pages) in __refill_stock() 2319 static void refill_stock(struct mem_cgroup *memcg, unsigned int nr_pages) in refill_stock() 2384 unsigned int nr_pages, in reclaim_high() [all …]
|
/linux-6.6.21/include/linux/ |
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.6.21/drivers/xen/ |
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()
|
D | balloon.c | 386 static enum bp_state increase_reservation(unsigned long nr_pages) in increase_reservation() 425 static enum bp_state decrease_reservation(unsigned long nr_pages, gfp_t gfp) in decrease_reservation() 567 static int add_ballooned_pages(unsigned int nr_pages) in add_ballooned_pages() 600 int xen_alloc_ballooned_pages(unsigned int nr_pages, struct page **pages) in xen_alloc_ballooned_pages() 653 void xen_free_ballooned_pages(unsigned int nr_pages, struct page **pages) in xen_free_ballooned_pages()
|
/linux-6.6.21/fs/ntfs/ |
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.6.21/net/rds/ |
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.6.21/include/xen/ |
D | xen.h | 71 static inline int xen_alloc_unpopulated_pages(unsigned int nr_pages, in xen_alloc_unpopulated_pages() 76 static inline void xen_free_unpopulated_pages(unsigned int nr_pages, in xen_free_unpopulated_pages()
|
/linux-6.6.21/drivers/firmware/efi/libstub/ |
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.6.21/tools/testing/selftests/mm/ |
D | hugetlb-madvise.c | 58 void write_fault_pages(void *addr, unsigned long nr_pages) in write_fault_pages() 66 void read_fault_pages(void *addr, unsigned long nr_pages) in read_fault_pages()
|
/linux-6.6.21/drivers/virtio/ |
D | virtio_mem.c | 923 const unsigned long nr_pages = PFN_DOWN(vm->sbm.sb_size); in virtio_mem_sbm_notify_going_offline() local 939 const unsigned long nr_pages = PFN_DOWN(vm->sbm.sb_size); in virtio_mem_sbm_notify_cancel_offline() local 955 unsigned long nr_pages) in virtio_mem_bbm_notify_going_offline() 970 unsigned long nr_pages) in virtio_mem_bbm_notify_cancel_offline() 1119 unsigned long nr_pages, bool onlined) in virtio_mem_set_fake_offline() 1140 unsigned long nr_pages, bool onlined) in virtio_mem_clear_fake_offline() 1155 static void virtio_mem_fake_online(unsigned long pfn, unsigned long nr_pages) in virtio_mem_fake_online() 1193 unsigned long nr_pages) in virtio_mem_fake_offline() 1237 unsigned long nr_pages) in virtio_mem_fake_offline_going_offline() 1261 unsigned long nr_pages) in virtio_mem_fake_offline_cancel_offline() [all …]
|
/linux-6.6.21/drivers/media/v4l2-core/ |
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.6.21/arch/arm64/include/asm/ |
D | kvm_pkvm.h | 29 unsigned long nr_pages = reg->size >> PAGE_SHIFT; in hyp_vmemmap_memblock_size() local 57 static inline unsigned long __hyp_pgtable_max_pages(unsigned long nr_pages) in __hyp_pgtable_max_pages()
|
/linux-6.6.21/arch/powerpc/platforms/powernv/ |
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.6.21/io_uring/ |
D | rsrc.c | 42 int __io_account_mem(struct user_struct *user, unsigned long nr_pages) in __io_account_mem() 62 static void io_unaccount_mem(struct io_ring_ctx *ctx, unsigned long nr_pages) in io_unaccount_mem() 71 static int io_account_mem(struct io_ring_ctx *ctx, unsigned long nr_pages) in io_account_mem() 977 int nr_pages, struct page *hpage) in headpage_already_acct() 1005 int nr_pages, struct io_mapped_ubuf *imu, in io_buffer_account_pin() 1038 unsigned long start, end, nr_pages; in io_pin_pages() local 1083 int ret, nr_pages, i; in io_sqe_buffer_register() local
|