Home
last modified time | relevance | path

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

1234567891011

/linux/mm/
H A 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()
H A Dsparse.c185 unsigned long nr_pages) in subsection_mask_set() argument
193 void __init subsection_map_init(unsigned long pfn, unsigned long nr_pages) in subsection_map_init() argument
216 void __init subsection_map_init(unsigned long pfn, unsigned long nr_pages) in subsection_map_init() argument
426 unsigned long nr_pages, int nid, struct vmem_altmap *altmap, in __populate_section_memmap() argument
634 unsigned long nr_pages, int nid, struct vmem_altmap *altmap, in populate_section_memmap() argument
640 depopulate_section_memmap(unsigned long pfn,unsigned long nr_pages,struct vmem_altmap * altmap) depopulate_section_memmap() argument
657 clear_subsection_map(unsigned long pfn,unsigned long nr_pages) clear_subsection_map() argument
684 fill_subsection_map(unsigned long pfn,unsigned long nr_pages) fill_subsection_map() argument
707 populate_section_memmap(unsigned long pfn,unsigned long nr_pages,int nid,struct vmem_altmap * altmap,struct dev_pagemap * pgmap) populate_section_memmap() argument
714 depopulate_section_memmap(unsigned long pfn,unsigned long nr_pages,struct vmem_altmap * altmap) depopulate_section_memmap() argument
723 unsigned long magic, nr_pages; free_map_bootmem() local
750 clear_subsection_map(unsigned long pfn,unsigned long nr_pages) clear_subsection_map() argument
760 fill_subsection_map(unsigned long pfn,unsigned long nr_pages) fill_subsection_map() argument
782 section_deactivate(unsigned long pfn,unsigned long nr_pages,struct vmem_altmap * altmap) section_deactivate() argument
832 section_activate(int nid,unsigned long pfn,unsigned long nr_pages,struct vmem_altmap * altmap,struct dev_pagemap * pgmap) section_activate() argument
894 sparse_add_section(int nid,unsigned long start_pfn,unsigned long nr_pages,struct vmem_altmap * altmap,struct dev_pagemap * pgmap) sparse_add_section() argument
929 sparse_remove_section(unsigned long pfn,unsigned long nr_pages,struct vmem_altmap * altmap) sparse_remove_section() argument
[all...]
H A 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 …]
H A 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() argument
369 int __add_pages(int nid, unsigned long pfn, unsigned long nr_pages, in __add_pages() argument
529 remove_pfn_range_from_zone(struct zone * zone,unsigned long start_pfn,unsigned long nr_pages) remove_pfn_range_from_zone() argument
573 __remove_pages(unsigned long pfn,unsigned long nr_pages,struct vmem_altmap * altmap) __remove_pages() argument
638 online_pages_range(unsigned long start_pfn,unsigned long nr_pages) online_pages_range() argument
676 node_states_check_changes_online(unsigned long nr_pages,struct zone * zone,struct memory_notify * arg) node_states_check_changes_online() argument
700 resize_zone_range(struct zone * zone,unsigned long start_pfn,unsigned long nr_pages) resize_zone_range() argument
711 resize_pgdat_range(struct pglist_data * pgdat,unsigned long start_pfn,unsigned long nr_pages) resize_pgdat_range() argument
745 move_pfn_range_to_zone(struct zone * zone,unsigned long start_pfn,unsigned long nr_pages,struct vmem_altmap * altmap,int migratetype) move_pfn_range_to_zone() argument
838 auto_movable_can_online_movable(int nid,struct memory_group * group,unsigned long nr_pages) auto_movable_can_online_movable() argument
893 default_kernel_zone_for_pfn(int nid,unsigned long start_pfn,unsigned long nr_pages) default_kernel_zone_for_pfn() argument
961 auto_movable_zone_for_pfn(int nid,struct memory_group * group,unsigned long pfn,unsigned long nr_pages) auto_movable_zone_for_pfn() argument
1020 default_zone_for_pfn(int nid,unsigned long start_pfn,unsigned long nr_pages) default_zone_for_pfn() argument
1045 zone_for_pfn_range(int online_type,int nid,struct memory_group * group,unsigned long start_pfn,unsigned long nr_pages) zone_for_pfn_range() argument
1064 adjust_present_page_count(struct page * page,struct memory_group * group,long nr_pages) adjust_present_page_count() argument
1084 mhp_init_memmap_on_memory(unsigned long pfn,unsigned long nr_pages,struct zone * zone,bool mhp_off_inaccessible) mhp_init_memmap_on_memory() argument
1123 mhp_deinit_memmap_on_memory(unsigned long pfn,unsigned long nr_pages) mhp_deinit_memmap_on_memory() argument
1146 online_pages(unsigned long pfn,unsigned long nr_pages,struct zone * zone,struct memory_group * group) online_pages() argument
1876 node_states_check_changes_offline(unsigned long nr_pages,struct zone * zone,struct memory_notify * arg) node_states_check_changes_offline() argument
1924 count_system_ram_pages_cb(unsigned long start_pfn,unsigned long nr_pages,void * data) count_system_ram_pages_cb() argument
1935 offline_pages(unsigned long start_pfn,unsigned long nr_pages,struct zone * zone,struct memory_group * group) offline_pages() argument
[all...]
H A 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
H A Dmemcontrol-v1.h14 unsigned int nr_pages) in try_charge()
112 static inline void memcg1_uncharge_skmem(struct mem_cgroup *memcg, unsigned int nr_pages) in memcg1_uncharge_skmem()
145 static inline void memcg1_account_kmem(struct mem_cgroup *memcg, int nr_pages) {} in memcg1_account_kmem()
147 static inline bool memcg1_charge_skmem(struct mem_cgroup *memcg, unsigned int nr_pages, in memcg1_charge_skmem()
149 static inline void memcg1_uncharge_skmem(struct mem_cgroup *memcg, unsigned int nr_pages) {} in memcg1_uncharge_skmem()
H A 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
H A 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()
H A 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()
H A 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()
H A Dgup.c1425 unsigned long start, unsigned long nr_pages, in __get_user_pages()
1719 unsigned long nr_pages, in __get_user_pages_locked()
1889 unsigned long nr_pages = (end - start) / PAGE_SIZE; in populate_vma_page_range() local
1962 unsigned long nr_pages = (end - start) / PAGE_SIZE; in faultin_page_range() local
2052 unsigned long nr_pages, struct page **pages, in __get_user_pages_locked()
2492 static long check_and_migrate_movable_pages(unsigned long nr_pages, in check_and_migrate_movable_pages()
2504 static long check_and_migrate_movable_pages(unsigned long nr_pages, in check_and_migrate_movable_pages()
2523 unsigned long nr_pages, in __gup_longterm_locked()
2660 unsigned long start, unsigned long nr_pages, in get_user_pages_remote()
2678 unsigned long start, unsigned long nr_pages, in get_user_pages_remote()
[all …]
H A Dmemcontrol.c134 unsigned int nr_pages; obj_cgroup_release() local
1258 mem_cgroup_update_lru_size(struct lruvec * lruvec,enum lru_list lru,int zid,int nr_pages) mem_cgroup_update_lru_size() argument
1700 unsigned int nr_pages; global() member
1732 consume_stock(struct mem_cgroup * memcg,unsigned int nr_pages) consume_stock() argument
1805 __refill_stock(struct mem_cgroup * memcg,unsigned int nr_pages) __refill_stock() argument
1823 refill_stock(struct mem_cgroup * memcg,unsigned int nr_pages) refill_stock() argument
1888 reclaim_high(struct mem_cgroup * memcg,unsigned int nr_pages,gfp_t gfp_mask) reclaim_high() argument
2028 calculate_high_delay(struct mem_cgroup * memcg,unsigned int nr_pages,u64 max_overage) calculate_high_delay() argument
2069 unsigned int nr_pages = current->memcg_nr_pages_over_high; mem_cgroup_handle_over_high() local
2158 try_charge_memcg(struct mem_cgroup * memcg,gfp_t gfp_mask,unsigned int nr_pages) try_charge_memcg() argument
2358 mem_cgroup_cancel_charge(struct mem_cgroup * memcg,unsigned int nr_pages) mem_cgroup_cancel_charge() argument
2598 obj_cgroup_uncharge_pages(struct obj_cgroup * objcg,unsigned int nr_pages) obj_cgroup_uncharge_pages() argument
2620 obj_cgroup_charge_pages(struct obj_cgroup * objcg,gfp_t gfp,unsigned int nr_pages) obj_cgroup_charge_pages() argument
2674 unsigned int nr_pages = 1 << order; __memcg_kmem_uncharge_page() local
2777 unsigned int nr_pages = stock->nr_bytes >> PAGE_SHIFT; drain_obj_stock() local
2854 unsigned int nr_pages = 0; refill_obj_stock() local
2883 unsigned int nr_pages, nr_bytes; obj_cgroup_charge() local
4078 unsigned long nr_pages = page_counter_read(&memcg->memory); memory_high_write() local
4127 unsigned long nr_pages = page_counter_read(&memcg->memory); memory_max_write() local
4511 mem_cgroup_hugetlb_try_charge(struct mem_cgroup * memcg,gfp_t gfp,long nr_pages) mem_cgroup_hugetlb_try_charge() argument
4573 mem_cgroup_swapin_uncharge_swap(swp_entry_t entry,unsigned int nr_pages) mem_cgroup_swapin_uncharge_swap() argument
4631 long nr_pages; uncharge_folio() local
4727 long nr_pages = folio_nr_pages(new); mem_cgroup_replace_folio() local
4841 mem_cgroup_charge_skmem(struct mem_cgroup * memcg,unsigned int nr_pages,gfp_t gfp_mask) mem_cgroup_charge_skmem() argument
4860 mem_cgroup_uncharge_skmem(struct mem_cgroup * memcg,unsigned int nr_pages) mem_cgroup_uncharge_skmem() argument
5010 unsigned int nr_pages = folio_nr_pages(folio); __mem_cgroup_try_charge_swap() local
5054 __mem_cgroup_uncharge_swap(swp_entry_t entry,unsigned int nr_pages) __mem_cgroup_uncharge_swap() argument
[all...]
H A Dswap.c152 long nr_pages = folio_nr_pages(folio); lru_add() local
331 long nr_pages = folio_nr_pages(folio); lru_activate() local
559 long nr_pages = folio_nr_pages(folio); lru_deactivate_file() local
599 long nr_pages = folio_nr_pages(folio); lru_deactivate() local
615 long nr_pages = folio_nr_pages(folio); lru_lazyfree() local
[all...]
/linux/include/linux/
H A 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()
/linux/io_uring/
H A Dmemmap.c17 static void *io_mem_alloc_compound(struct page **pages, int nr_pages, in io_mem_alloc_compound()
39 static void *io_mem_alloc_single(struct page **pages, int nr_pages, size_t size, in io_mem_alloc_single()
65 int nr_pages; in io_pages_map() local
137 unsigned long start, end, nr_pages; in io_pin_pages() local
181 unsigned int nr_pages; in __io_uaddr_map() local
224 int nr_pages, ret; in io_create_region() local
316 unsigned long nr_pages = npages; in io_uring_mmap_pages() local
H A Drsrc.c35 int __io_account_mem(struct user_struct *user, unsigned long nr_pages) in __io_account_mem()
55 static void io_unaccount_mem(struct io_ring_ctx *ctx, unsigned long nr_pages) in io_unaccount_mem()
64 static int io_account_mem(struct io_ring_ctx *ctx, unsigned long nr_pages) in io_account_mem()
566 int nr_pages, struct page *hpage) in headpage_already_acct()
598 int nr_pages, struct io_mapped_ubuf *imu, in io_buffer_account_pin()
629 static bool io_do_coalesce_buffer(struct page ***pages, int *nr_pages, in io_do_coalesce_buffer()
670 static bool io_try_coalesce_buffer(struct page ***pages, int *nr_pages, in io_try_coalesce_buffer()
730 int ret, nr_pages, i; in io_sqe_buffer_register() local
/linux/drivers/xen/
H A 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()
H A 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/net/rds/
H A 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/include/xen/
H A 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/tools/testing/selftests/mm/
H A 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/drivers/firmware/efi/libstub/
H A Drelocate.c28 unsigned long nr_pages; in efi_low_alloc_above() local
120 unsigned long nr_pages; in efi_relocate_kernel() local
/linux/drivers/virtio/
H A 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/arch/powerpc/platforms/powernv/
H A 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
/linux/drivers/net/ethernet/ibm/ehea/
H A Dehea_qmr.c93 int i, nr_pages; in hw_queue_dtor() local
358 int nr_pages, int wqe_size, int act_nr_sges, in ehea_qp_alloc_register()
608 static int ehea_update_busmap(unsigned long pfn, unsigned long nr_pages, int add) in ehea_update_busmap()
651 int ehea_add_sect_bmap(unsigned long pfn, unsigned long nr_pages) in ehea_add_sect_bmap()
661 int ehea_rem_sect_bmap(unsigned long pfn, unsigned long nr_pages) in ehea_rem_sect_bmap()
686 unsigned long pfn, start_pfn, end_pfn, nr_pages; in ehea_create_busmap_callback() local

1234567891011