Home
last modified time | relevance | path

Searched defs:nr_pages (Results 1 – 25 of 303) sorted by relevance

12345678910>>...13

/linux-6.12.1/mm/
Dpage_counter.c54 void page_counter_cancel(struct page_counter *counter, unsigned long nr_pages) in page_counter_cancel()
76 void page_counter_charge(struct page_counter *counter, unsigned long nr_pages) in page_counter_charge()
119 unsigned long nr_pages, in page_counter_try_charge()
177 void page_counter_uncharge(struct page_counter *counter, unsigned long nr_pages) in page_counter_uncharge()
195 int page_counter_set_max(struct page_counter *counter, unsigned long nr_pages) in page_counter_set_max()
234 void page_counter_set_min(struct page_counter *counter, unsigned long nr_pages) in page_counter_set_min()
251 void page_counter_set_low(struct page_counter *counter, unsigned long nr_pages) in page_counter_set_low()
271 unsigned long *nr_pages) in page_counter_memparse()
Dsparse.c185 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()
216 void __init subsection_map_init(unsigned long pfn, unsigned long nr_pages) in subsection_map_init()
426 unsigned long nr_pages, int nid, struct vmem_altmap *altmap, in __populate_section_memmap()
634 unsigned long nr_pages, int nid, struct vmem_altmap *altmap, in populate_section_memmap()
640 static void depopulate_section_memmap(unsigned long pfn, unsigned long nr_pages, in depopulate_section_memmap()
657 static int clear_subsection_map(unsigned long pfn, unsigned long nr_pages) in clear_subsection_map()
684 static int fill_subsection_map(unsigned long pfn, unsigned long nr_pages) in fill_subsection_map()
707 unsigned long nr_pages, int nid, struct vmem_altmap *altmap, in populate_section_memmap()
714 static void depopulate_section_memmap(unsigned long pfn, unsigned long nr_pages, in depopulate_section_memmap()
[all …]
Dhugetlb_cgroup.c200 unsigned int nr_pages; in hugetlb_cgroup_move_parent() local
265 static int __hugetlb_cgroup_charge_cgroup(int idx, unsigned long nr_pages, in __hugetlb_cgroup_charge_cgroup()
302 int hugetlb_cgroup_charge_cgroup(int idx, unsigned long nr_pages, in hugetlb_cgroup_charge_cgroup()
308 int hugetlb_cgroup_charge_cgroup_rsvd(int idx, unsigned long nr_pages, in hugetlb_cgroup_charge_cgroup_rsvd()
315 static void __hugetlb_cgroup_commit_charge(int idx, unsigned long nr_pages, in __hugetlb_cgroup_commit_charge()
336 void hugetlb_cgroup_commit_charge(int idx, unsigned long nr_pages, in hugetlb_cgroup_commit_charge()
343 void hugetlb_cgroup_commit_charge_rsvd(int idx, unsigned long nr_pages, in hugetlb_cgroup_commit_charge_rsvd()
353 static void __hugetlb_cgroup_uncharge_folio(int idx, unsigned long nr_pages, in __hugetlb_cgroup_uncharge_folio()
385 void hugetlb_cgroup_uncharge_folio(int idx, unsigned long nr_pages, in hugetlb_cgroup_uncharge_folio()
391 void hugetlb_cgroup_uncharge_folio_rsvd(int idx, unsigned long nr_pages, in hugetlb_cgroup_uncharge_folio_rsvd()
[all …]
Dmemory_hotplug.c59 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 __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()
638 static void online_pages_range(unsigned long start_pfn, unsigned long nr_pages) in online_pages_range()
676 static void node_states_check_changes_online(unsigned long nr_pages, in node_states_check_changes_online()
700 unsigned long nr_pages) in resize_zone_range()
711 unsigned long nr_pages) in resize_pgdat_range()
745 unsigned long nr_pages, in move_pfn_range_to_zone()
[all …]
Dgup_test.c11 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
Dmemcontrol-v1.h14 unsigned int nr_pages) in try_charge()
117 static inline void memcg1_uncharge_skmem(struct mem_cgroup *memcg, unsigned int nr_pages) in memcg1_uncharge_skmem()
151 static inline void memcg1_account_kmem(struct mem_cgroup *memcg, int nr_pages) {} in memcg1_account_kmem()
153 static inline bool memcg1_charge_skmem(struct mem_cgroup *memcg, unsigned int nr_pages, in memcg1_charge_skmem()
155 static inline void memcg1_uncharge_skmem(struct mem_cgroup *memcg, unsigned int nr_pages) {} in memcg1_uncharge_skmem()
Dpercpu-km.c55 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
Dcma_sysfs.c17 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()
27 void cma_sysfs_account_release_pages(struct cma *cma, unsigned long nr_pages) in cma_sysfs_account_release_pages()
Dcma.h52 unsigned long nr_pages) {}; in cma_sysfs_account_success_pages()
54 unsigned long nr_pages) {}; in cma_sysfs_account_fail_pages()
56 unsigned long nr_pages) {}; in cma_sysfs_account_release_pages()
Dmmu_gather.c60 unsigned int nr_pages = 1; in tlb_flush_rmap_batch() local
104 unsigned int nr, nr_pages; in __tlb_batch_free_encoded_pages() local
165 struct page *page, unsigned int nr_pages, bool delay_rmap, in __tlb_remove_folio_pages_size()
206 unsigned int nr_pages, bool delay_rmap) in __tlb_remove_folio_pages()
Dgup.c1416 unsigned long start, unsigned long nr_pages, in __get_user_pages()
1710 unsigned long nr_pages, in __get_user_pages_locked()
1880 unsigned long nr_pages = (end - start) / PAGE_SIZE; in populate_vma_page_range() local
1953 unsigned long nr_pages = (end - start) / PAGE_SIZE; in faultin_page_range() local
2043 unsigned long nr_pages, struct page **pages, in __get_user_pages_locked()
2483 static long check_and_migrate_movable_pages(unsigned long nr_pages, in check_and_migrate_movable_pages()
2495 static long check_and_migrate_movable_pages(unsigned long nr_pages, in check_and_migrate_movable_pages()
2514 unsigned long nr_pages, in __gup_longterm_locked()
2651 unsigned long start, unsigned long nr_pages, in get_user_pages_remote()
2669 unsigned long start, unsigned long nr_pages, in get_user_pages_remote()
[all …]
Dmemcontrol.c134 unsigned int nr_pages; in obj_cgroup_release() local
1258 int zid, int nr_pages) in mem_cgroup_update_lru_size()
1700 unsigned int nr_pages; member
1732 static bool consume_stock(struct mem_cgroup *memcg, unsigned int nr_pages) in consume_stock()
1805 static void __refill_stock(struct mem_cgroup *memcg, unsigned int nr_pages) in __refill_stock()
1823 static void refill_stock(struct mem_cgroup *memcg, unsigned int nr_pages) in refill_stock()
1888 unsigned int nr_pages, in reclaim_high()
2028 unsigned int nr_pages, in calculate_high_delay()
2069 unsigned int nr_pages = current->memcg_nr_pages_over_high; in mem_cgroup_handle_over_high() local
2158 unsigned int nr_pages) in try_charge_memcg()
[all …]
Dswap.c152 long nr_pages = folio_nr_pages(folio); in lru_add() local
331 long nr_pages = folio_nr_pages(folio); in lru_activate() local
559 long nr_pages = folio_nr_pages(folio); in lru_deactivate_file() local
599 long nr_pages = folio_nr_pages(folio); in lru_deactivate() local
615 long nr_pages = folio_nr_pages(folio); in lru_lazyfree() local
/linux-6.12.1/include/linux/
Dhugetlb_cgroup.h162 unsigned long nr_pages, in hugetlb_cgroup_uncharge_file_region()
207 static inline int hugetlb_cgroup_charge_cgroup(int idx, unsigned long nr_pages, in hugetlb_cgroup_charge_cgroup()
214 unsigned long nr_pages, in hugetlb_cgroup_charge_cgroup_rsvd()
220 static inline void hugetlb_cgroup_commit_charge(int idx, unsigned long nr_pages, in hugetlb_cgroup_commit_charge()
227 hugetlb_cgroup_commit_charge_rsvd(int idx, unsigned long nr_pages, in hugetlb_cgroup_commit_charge_rsvd()
233 static inline void hugetlb_cgroup_uncharge_folio(int idx, unsigned long nr_pages, in hugetlb_cgroup_uncharge_folio()
239 unsigned long nr_pages, in hugetlb_cgroup_uncharge_folio_rsvd()
244 unsigned long nr_pages, in hugetlb_cgroup_uncharge_cgroup()
250 hugetlb_cgroup_uncharge_cgroup_rsvd(int idx, unsigned long nr_pages, in hugetlb_cgroup_uncharge_cgroup_rsvd()
Drmap.h198 struct page *page, int nr_pages, enum rmap_level level) in __folio_rmap_sanity_checks()
325 struct page *page, int nr_pages, enum rmap_level level) in __folio_dup_file_rmap()
361 struct page *page, int nr_pages) in folio_dup_file_rmap_ptes()
392 struct page *page, int nr_pages, struct vm_area_struct *src_vma, in __folio_try_dup_anon_rmap()
476 struct page *page, int nr_pages, struct vm_area_struct *src_vma) in folio_try_dup_anon_rmap_ptes()
524 struct page *page, int nr_pages, enum rmap_level level) in __folio_try_share_anon_rmap()
677 unsigned long nr_pages; member
/linux-6.12.1/io_uring/
Dmemmap.c16 static void *io_mem_alloc_compound(struct page **pages, int nr_pages, in io_mem_alloc_compound()
38 static void *io_mem_alloc_single(struct page **pages, int nr_pages, size_t size, in io_mem_alloc_single()
64 int nr_pages; in io_pages_map() local
134 unsigned long start, end, nr_pages; in io_pin_pages() local
171 unsigned int nr_pages; in __io_uaddr_map() local
234 unsigned long nr_pages = npages; in io_uring_mmap_pages() local
Drsrc.c44 int __io_account_mem(struct user_struct *user, unsigned long nr_pages) in __io_account_mem()
64 static void io_unaccount_mem(struct io_ring_ctx *ctx, unsigned long nr_pages) in io_unaccount_mem()
73 static int io_account_mem(struct io_ring_ctx *ctx, unsigned long nr_pages) in io_account_mem()
802 int nr_pages, struct page *hpage) in headpage_already_acct()
830 int nr_pages, struct io_mapped_ubuf *imu, in io_buffer_account_pin()
861 static bool io_do_coalesce_buffer(struct page ***pages, int *nr_pages, in io_do_coalesce_buffer()
902 static bool io_try_coalesce_buffer(struct page ***pages, int *nr_pages, in io_try_coalesce_buffer()
961 int ret, nr_pages, i; in io_sqe_buffer_register() local
/linux-6.12.1/drivers/xen/
Dunpopulated-alloc.c34 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()
Dballoon.c386 static enum bp_state increase_reservation(unsigned long nr_pages) in increase_reservation()
429 static enum bp_state decrease_reservation(unsigned long nr_pages, gfp_t gfp) in decrease_reservation()
571 static int add_ballooned_pages(unsigned int nr_pages) in add_ballooned_pages()
604 int xen_alloc_ballooned_pages(unsigned int nr_pages, struct page **pages) in xen_alloc_ballooned_pages()
657 void xen_free_ballooned_pages(unsigned int nr_pages, struct page **pages) in xen_free_ballooned_pages()
/linux-6.12.1/net/rds/
Drdma.c154 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
/linux-6.12.1/include/xen/
Dxen.h71 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.12.1/tools/testing/selftests/mm/
Dhugetlb-madvise.c40 void write_fault_pages(void *addr, unsigned long nr_pages) in write_fault_pages()
48 void read_fault_pages(void *addr, unsigned long nr_pages) in read_fault_pages()
/linux-6.12.1/drivers/firmware/efi/libstub/
Drelocate.c28 unsigned long nr_pages; in efi_low_alloc_above() local
120 unsigned long nr_pages; in efi_relocate_kernel() local
/linux-6.12.1/drivers/virtio/
Dvirtio_mem.c928 const unsigned long nr_pages = PFN_DOWN(vm->sbm.sb_size); in virtio_mem_sbm_notify_going_offline() local
944 const unsigned long nr_pages = PFN_DOWN(vm->sbm.sb_size); in virtio_mem_sbm_notify_cancel_offline() local
960 unsigned long nr_pages) in virtio_mem_bbm_notify_going_offline()
975 unsigned long nr_pages) in virtio_mem_bbm_notify_cancel_offline()
1143 unsigned long nr_pages, bool onlined) in virtio_mem_set_fake_offline()
1168 unsigned long nr_pages, bool onlined) in virtio_mem_clear_fake_offline()
1185 static void virtio_mem_fake_online(unsigned long pfn, unsigned long nr_pages) in virtio_mem_fake_online()
1223 unsigned long nr_pages) in virtio_mem_fake_offline()
1267 unsigned long nr_pages) in virtio_mem_fake_offline_going_offline()
1285 unsigned long nr_pages) in virtio_mem_fake_offline_cancel_offline()
[all …]
/linux-6.12.1/arch/powerpc/platforms/powernv/
Dmemtrace.c92 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

12345678910>>...13