Home
last modified time | relevance | path

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

/linux/kernel/
A Drange.c15 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 Dinit.c312 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 Dcleanup.c54 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 Dmemremap.c87 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 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);
A Dmemremap.h119 int nr_range; member
/linux/drivers/dax/
A Dkmem.c65 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 Dbus.c144 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 Ddevice.c59 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 Ddax-private.h71 int nr_range; member
/linux/tools/testing/nvdimm/
A Ddax-dev.c14 for (i = 0; i < dev_dax->nr_range; i++) { in dax_pgoff_to_phys()
/linux/drivers/xen/
A Dunpopulated-alloc.c52 pgmap->nr_range = 1; in fill_list()
/linux/drivers/pci/
A Dp2pdma.c205 pgmap->nr_range = 1; in pci_p2pdma_add_resource()
/linux/drivers/nvdimm/
A Dpmem.c462 pmem->pgmap.nr_range = 1; in pmem_attach_disk()
A Dpfn_devs.c696 pgmap->nr_range = 1; in __nvdimm_setup_pfn()
/linux/drivers/gpu/drm/nouveau/
A Dnouveau_dmem.c254 chunk->pagemap.nr_range = 1; in nouveau_dmem_chunk_alloc()
/linux/arch/powerpc/kvm/
A Dbook3s_hv_uvmem.c1176 kvmppc_uvmem_pgmap.nr_range = 1; in kvmppc_uvmem_init()
/linux/drivers/gpu/drm/amd/amdkfd/
A Dkfd_migrate.c956 pgmap->nr_range = 1; in svm_migrate_init()
/linux/lib/
A Dtest_hmm.c476 devmem->pagemap.nr_range = 1; in dmirror_allocate_chunk()
/linux/fs/fuse/
A Dvirtio_fs.c841 pgmap->nr_range = 1; in virtio_fs_setup_dax()
/linux/Documentation/vm/
A Dhmm.rst295 pagemap.nr_range = 1;

Completed in 50 milliseconds