/linux/kernel/ |
A D | range.c | 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() 35 return nr_range; in add_range_with_merge() 57 nr_range--; in add_range_with_merge() 150 nr_range = i; in clean_sort_range() [all …]
|
/linux/arch/x86/mm/ |
A D | init.c | 312 nr_range++; in save_mr() 315 return nr_range; in save_mr() 406 nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, 0); in split_mem_range() 421 nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, in split_mem_range() 431 nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, in split_mem_range() 441 nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, in split_mem_range() 450 nr_range = save_mr(mr, nr_range, start_pfn, end_pfn, 0); in split_mem_range() 456 for (i = 0; nr_range > 1 && i < nr_range - 1; i++) { in split_mem_range() 466 nr_range--; in split_mem_range() 474 return nr_range; in split_mem_range() [all …]
|
/linux/arch/x86/kernel/cpu/mtrr/ |
A D | cleanup.c | 54 static int __initdata nr_range; variable 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() 129 for (i = 0; i < nr_range; i++) in x86_get_mtrr_mem_range() 134 return nr_range; in x86_get_mtrr_mem_range() 144 for (i = 0; i < nr_range; i++) in sum_ranges() 730 nr_range = x86_get_mtrr_mem_range(range, nr_range, in mtrr_cleanup() 945 nr_range = 0; in mtrr_trim_uncached_memory() 951 nr_range++; in mtrr_trim_uncached_memory() 953 nr_range = x86_get_mtrr_mem_range(range, nr_range, 0, 0); in mtrr_trim_uncached_memory() [all …]
|
/linux/mm/ |
A D | memremap.c | 87 for (i = 0; i < pgmap->nr_range; i++) { in pgmap_pfn_valid() 171 for (i = 0; i < pgmap->nr_range; i++) in memunmap_pages() 176 for (i = 0; i < pgmap->nr_range; i++) in memunmap_pages() 323 const int nr_range = pgmap->nr_range; in memremap_pages() local 326 if (WARN_ONCE(!nr_range, "nr_range must be specified\n")) in memremap_pages() 389 pgmap->nr_range = 0; in memremap_pages() 391 for (i = 0; i < nr_range; i++) { in memremap_pages() 395 pgmap->nr_range++; in memremap_pages() 398 if (i < nr_range) { in memremap_pages() 400 pgmap->nr_range = nr_range; in memremap_pages()
|
/linux/include/linux/ |
A D | range.h | 16 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);
|
A D | memremap.h | 119 int nr_range; member
|
/linux/drivers/dax/ |
A D | kmem.c | 65 for (i = 0; i < dev_dax->nr_range; i++) { in dev_dax_kmem_probe() 82 data = kzalloc(struct_size(data, res, dev_dax->nr_range), GFP_KERNEL); in dev_dax_kmem_probe() 96 for (i = 0; i < dev_dax->nr_range; i++) { in dev_dax_kmem_probe() 174 for (i = 0; i < dev_dax->nr_range; i++) { in dev_dax_kmem_remove() 196 if (success >= dev_dax->nr_range) { in dev_dax_kmem_remove()
|
A D | bus.c | 144 for (i = 0; i < dev_dax->nr_range; i++) in dev_dax_size() 371 int i = dev_dax->nr_range - 1; in trim_dev_dax_range() 381 if (--dev_dax->nr_range == 0) { in trim_dev_dax_range() 389 while (dev_dax->nr_range) in free_dev_dax_ranges() 767 if (dev_WARN_ONCE(dev, dev_dax->nr_range, in alloc_dev_dax_range() 779 * (dev_dax->nr_range + 1), GFP_KERNEL); in alloc_dev_dax_range() 785 for (i = 0; i < dev_dax->nr_range; i++) in alloc_dev_dax_range() 815 int last_range = dev_dax->nr_range - 1; in adjust_dev_dax_range() 915 if (dev_dax->nr_range == 0) in adjust_ok() 1110 for (i = 0; i < dev_dax->nr_range; i++) { in dev_dax_validate_align() [all …]
|
A D | device.c | 59 for (i = 0; i < dev_dax->nr_range; i++) { in dax_pgoff_to_phys() 402 if (dev_WARN_ONCE(dev, pgmap && dev_dax->nr_range > 1, in dev_dax_probe() 408 * (dev_dax->nr_range - 1), GFP_KERNEL); in dev_dax_probe() 411 pgmap->nr_range = dev_dax->nr_range; in dev_dax_probe() 414 for (i = 0; i < dev_dax->nr_range; i++) { in dev_dax_probe()
|
A D | dax-private.h | 71 int nr_range; member
|
/linux/tools/testing/nvdimm/ |
A D | dax-dev.c | 14 for (i = 0; i < dev_dax->nr_range; i++) { in dax_pgoff_to_phys()
|
/linux/drivers/xen/ |
A D | unpopulated-alloc.c | 52 pgmap->nr_range = 1; in fill_list()
|
/linux/drivers/pci/ |
A D | p2pdma.c | 205 pgmap->nr_range = 1; in pci_p2pdma_add_resource()
|
/linux/drivers/nvdimm/ |
A D | pmem.c | 462 pmem->pgmap.nr_range = 1; in pmem_attach_disk()
|
A D | pfn_devs.c | 696 pgmap->nr_range = 1; in __nvdimm_setup_pfn()
|
/linux/drivers/gpu/drm/nouveau/ |
A D | nouveau_dmem.c | 254 chunk->pagemap.nr_range = 1; in nouveau_dmem_chunk_alloc()
|
/linux/arch/powerpc/kvm/ |
A D | book3s_hv_uvmem.c | 1176 kvmppc_uvmem_pgmap.nr_range = 1; in kvmppc_uvmem_init()
|
/linux/drivers/gpu/drm/amd/amdkfd/ |
A D | kfd_migrate.c | 956 pgmap->nr_range = 1; in svm_migrate_init()
|
/linux/lib/ |
A D | test_hmm.c | 476 devmem->pagemap.nr_range = 1; in dmirror_allocate_chunk()
|
/linux/fs/fuse/ |
A D | virtio_fs.c | 841 pgmap->nr_range = 1; in virtio_fs_setup_dax()
|
/linux/Documentation/vm/ |
A D | hmm.rst | 295 pagemap.nr_range = 1;
|