Home
last modified time | relevance | path

Searched refs:nr_range (Results 1 – 23 of 23) sorted by relevance

/linux-6.1.9/kernel/
Drange.c12 int add_range(struct range *range, int az, int nr_range, u64 start, u64 end) in add_range() argument
15 return nr_range; in add_range()
18 if (nr_range >= az) in add_range()
19 return nr_range; in add_range()
21 range[nr_range].start = start; in add_range()
22 range[nr_range].end = end; in add_range()
24 nr_range++; in add_range()
26 return nr_range; in add_range()
29 int add_range_with_merge(struct range *range, int az, int nr_range, in add_range_with_merge() argument
35 return nr_range; in add_range_with_merge()
[all …]
/linux-6.1.9/arch/x86/mm/
Dinit.c311 static int __meminit save_mr(struct map_range *mr, int nr_range, in save_mr() argument
316 if (nr_range >= NR_RANGE_MR) in save_mr()
318 mr[nr_range].start = start_pfn<<PAGE_SHIFT; in save_mr()
319 mr[nr_range].end = end_pfn<<PAGE_SHIFT; in save_mr()
320 mr[nr_range].page_size_mask = page_size_mask; in save_mr()
321 nr_range++; in save_mr()
324 return nr_range; in save_mr()
332 int nr_range) in adjust_range_page_size_mask() argument
336 for (i = 0; i < nr_range; i++) { in adjust_range_page_size_mask()
386 static int __meminit split_mem_range(struct map_range *mr, int nr_range, in split_mem_range() argument
[all …]
/linux-6.1.9/arch/x86/kernel/cpu/mtrr/
Dcleanup.c54 static int __initdata nr_range; variable
65 x86_get_mtrr_mem_range(struct range *range, int nr_range, in x86_get_mtrr_mem_range() argument
79 nr_range = add_range_with_merge(range, RANGE_NUM, nr_range, in x86_get_mtrr_mem_range()
84 for (i = 0; i < nr_range; i++) in x86_get_mtrr_mem_range()
126 nr_range = clean_sort_range(range, RANGE_NUM); in x86_get_mtrr_mem_range()
129 for (i = 0; i < nr_range; i++) in x86_get_mtrr_mem_range()
134 return nr_range; in x86_get_mtrr_mem_range()
139 static unsigned long __init sum_ranges(struct range *range, int nr_range) in sum_ranges() argument
144 for (i = 0; i < nr_range; i++) in sum_ranges()
473 x86_setup_var_mtrrs(struct range *range, int nr_range, in x86_setup_var_mtrrs() argument
[all …]
/linux-6.1.9/mm/
Dmemremap.c86 for (i = 0; i < pgmap->nr_range; i++) { in pgmap_pfn_valid()
143 for (i = 0; i < pgmap->nr_range; i++) in memunmap_pages()
148 for (i = 0; i < pgmap->nr_range; i++) in memunmap_pages()
298 const int nr_range = pgmap->nr_range; in memremap_pages() local
301 if (WARN_ONCE(!nr_range, "nr_range must be specified\n")) in memremap_pages()
363 pgmap->nr_range = 0; in memremap_pages()
365 for (i = 0; i < nr_range; i++) { in memremap_pages()
369 pgmap->nr_range++; in memremap_pages()
372 if (i < nr_range) { in memremap_pages()
374 pgmap->nr_range = nr_range; in memremap_pages()
Dsparse-vmemmap.c303 PHYS_PFN(pgmap->ranges[pgmap->nr_range].start); in reuse_compound_section()
/linux-6.1.9/include/linux/
Drange.h16 int add_range(struct range *range, int az, int nr_range,
20 int add_range_with_merge(struct range *range, int az, int nr_range,
27 void sort_range(struct range *range, int nr_range);
Dmemremap.h135 int nr_range; member
/linux-6.1.9/drivers/dax/
Dkmem.c74 for (i = 0; i < dev_dax->nr_range; i++) { in dev_dax_kmem_probe()
94 data = kzalloc(struct_size(data, res, dev_dax->nr_range), GFP_KERNEL); in dev_dax_kmem_probe()
107 for (i = 0; i < dev_dax->nr_range; i++) { in dev_dax_kmem_probe()
188 for (i = 0; i < dev_dax->nr_range; i++) { in dev_dax_kmem_remove()
210 if (success >= dev_dax->nr_range) { in dev_dax_kmem_remove()
Dbus.c166 for (i = 0; i < dev_dax->nr_range; i++) in dev_dax_size()
401 int i = dev_dax->nr_range - 1; in trim_dev_dax_range()
411 if (--dev_dax->nr_range == 0) { in trim_dev_dax_range()
419 while (dev_dax->nr_range) in free_dev_dax_ranges()
797 if (dev_WARN_ONCE(dev, dev_dax->nr_range, in alloc_dev_dax_range()
809 * (dev_dax->nr_range + 1), GFP_KERNEL); in alloc_dev_dax_range()
815 for (i = 0; i < dev_dax->nr_range; i++) in alloc_dev_dax_range()
818 ranges[dev_dax->nr_range++] = (struct dev_dax_range) { in alloc_dev_dax_range()
826 dev_dbg(dev, "alloc range[%d]: %pa:%pa\n", dev_dax->nr_range - 1, in alloc_dev_dax_range()
836 rc = devm_register_dax_mapping(dev_dax, dev_dax->nr_range - 1); in alloc_dev_dax_range()
[all …]
Ddevice.c59 for (i = 0; i < dev_dax->nr_range; i++) { in dax_pgoff_to_phys()
410 if (dev_dax->nr_range > 1) { in dev_dax_probe()
425 struct_size(pgmap, ranges, dev_dax->nr_range - 1), in dev_dax_probe()
430 pgmap->nr_range = dev_dax->nr_range; in dev_dax_probe()
433 for (i = 0; i < dev_dax->nr_range; i++) { in dev_dax_probe()
439 for (i = 0; i < dev_dax->nr_range; i++) { in dev_dax_probe()
Ddax-private.h71 int nr_range; member
/linux-6.1.9/tools/testing/nvdimm/
Ddax-dev.c14 for (i = 0; i < dev_dax->nr_range; i++) { in dax_pgoff_to_phys()
/linux-6.1.9/drivers/xen/
Dunpopulated-alloc.c95 pgmap->nr_range = 1; in fill_list()
/linux-6.1.9/Documentation/translations/zh_CN/mm/
Dhmm.rst241 pagemap.nr_range = 1;
/linux-6.1.9/drivers/pci/
Dp2pdma.c199 pgmap->nr_range = 1; in pci_p2pdma_add_resource()
/linux-6.1.9/drivers/nvdimm/
Dpmem.c544 pmem->pgmap.nr_range = 1; in pmem_attach_disk()
Dpfn_devs.c698 pgmap->nr_range = 1; in __nvdimm_setup_pfn()
/linux-6.1.9/drivers/gpu/drm/nouveau/
Dnouveau_dmem.c255 chunk->pagemap.nr_range = 1; in nouveau_dmem_chunk_alloc()
/linux-6.1.9/arch/powerpc/kvm/
Dbook3s_hv_uvmem.c1181 kvmppc_uvmem_pgmap.nr_range = 1; in kvmppc_uvmem_init()
/linux-6.1.9/drivers/gpu/drm/amd/amdkfd/
Dkfd_migrate.c1023 pgmap->nr_range = 1; in svm_migrate_init()
/linux-6.1.9/fs/fuse/
Dvirtio_fs.c839 pgmap->nr_range = 1; in virtio_fs_setup_dax()
/linux-6.1.9/lib/
Dtest_hmm.c537 devmem->pagemap.nr_range = 1; in dmirror_allocate_chunk()
/linux-6.1.9/Documentation/mm/
Dhmm.rst295 pagemap.nr_range = 1;