/openbmc/linux/mm/ |
H 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()
|
H A 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() 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() 720 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 …]
|
H 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 …]
|
H A D | memory_hotplug.c | 59 unsigned long nr_pages = PFN_UP(memory_block_memmap_size()); in memory_block_memmap_on_memory_pages() local 529 unsigned long nr_pages) in remove_pfn_range_from_zone() 705 unsigned long nr_pages) in resize_zone_range() 750 unsigned long nr_pages, in move_pfn_range_to_zone() 843 unsigned long nr_pages) in auto_movable_can_online_movable() 897 unsigned long nr_pages) in default_kernel_zone_for_pfn() 965 unsigned long nr_pages) in auto_movable_zone_for_pfn() 1024 unsigned long nr_pages) in default_zone_for_pfn() 1049 unsigned long nr_pages) in zone_for_pfn_range() 1068 long nr_pages) in adjust_present_page_count() [all …]
|
H 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() 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
|
H 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
|
H A D | gup.c | 1097 unsigned long start, unsigned long nr_pages, in __get_user_pages() 1393 unsigned long nr_pages, in __get_user_pages_locked() 1552 unsigned long nr_pages = (end - start) / PAGE_SIZE; in populate_vma_page_range() local 1713 unsigned long nr_pages, struct page **pages, in __get_user_pages_locked() 1951 unsigned long nr_pages, in collect_longterm_unpinnable_pages() 2002 unsigned long nr_pages, in migrate_longterm_unpinnable_pages() 2110 unsigned long nr_pages, in __gup_longterm_locked() 2247 unsigned long start, unsigned long nr_pages, in get_user_pages_remote() 2265 unsigned long start, unsigned long nr_pages, in get_user_pages_remote() 3182 unsigned long nr_pages, in internal_get_user_pages_fast() [all …]
|
H 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
|
H 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
|
H 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()
|
H A D | cma.h | 49 unsigned long nr_pages) {}; in cma_sysfs_account_success_pages() 51 unsigned long nr_pages) {}; in cma_sysfs_account_fail_pages()
|
/openbmc/linux/include/linux/ |
H 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()
|
/openbmc/linux/drivers/xen/ |
H 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()
|
H A 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()
|
/openbmc/linux/fs/ntfs/ |
H 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
|
/openbmc/linux/include/xen/ |
H A 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()
|
/openbmc/linux/net/rds/ |
H 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 535 unsigned int nr_pages; in rds_rdma_pages() local 563 unsigned int nr_pages; in rds_rdma_extra_size() local 617 int nr_pages; in rds_cmsg_rdma_args() local
|
/openbmc/linux/drivers/firmware/efi/libstub/ |
H 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
|
/openbmc/linux/tools/testing/selftests/mm/ |
H A 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()
|
/openbmc/linux/arch/arm64/include/asm/ |
H A 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()
|
/openbmc/linux/drivers/media/v4l2-core/ |
H 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()
|
/openbmc/linux/arch/powerpc/platforms/powernv/ |
H 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
|
/openbmc/linux/io_uring/ |
H A D | rsrc.c | 41 int __io_account_mem(struct user_struct *user, unsigned long nr_pages) in __io_account_mem() 61 static void io_unaccount_mem(struct io_ring_ctx *ctx, unsigned long nr_pages) in io_unaccount_mem() 70 static int io_account_mem(struct io_ring_ctx *ctx, unsigned long nr_pages) in io_account_mem() 817 int nr_pages, struct page *hpage) in headpage_already_acct() 845 int nr_pages, struct io_mapped_ubuf *imu, in io_buffer_account_pin() 878 unsigned long start, end, nr_pages; in io_pin_pages() local 923 int ret, nr_pages, i; in io_sqe_buffer_register() local
|
/openbmc/linux/drivers/virtio/ |
H A 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() 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() 1698 unsigned long pfn, nr_pages; in virtio_mem_sbm_plug_any_sb() local [all …]
|
/openbmc/linux/arch/powerpc/mm/ |
H 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
|