Home
last modified time | relevance | path

Searched refs:max_nr (Results 1 – 18 of 18) sorted by relevance

/linux/drivers/irqchip/
H A Dexynos-combiner.c41 static unsigned int max_nr = 20; variable
177 nr_irq = max_nr * IRQ_IN_COMBINER; in combiner_init()
179 combiner_data = kcalloc(max_nr, sizeof (*combiner_data), GFP_KERNEL); in combiner_init()
190 for (i = 0; i < max_nr; i++) { in combiner_init()
213 for (i = 0; i < max_nr; i++) in combiner_suspend()
232 for (i = 0; i < max_nr; i++) { in combiner_resume()
265 if (of_property_read_u32(np, "samsung,combiner-nr", &max_nr)) { in combiner_of_init()
268 __func__, max_nr); in combiner_of_init()
/linux/mm/
H A Dswap.h284 static inline int swap_zeromap_batch(swp_entry_t entry, int max_nr, in swap_zeromap_batch() argument
289 unsigned long end = start + max_nr; in swap_zeromap_batch()
296 if (max_nr <= 1) in swap_zeromap_batch()
297 return max_nr; in swap_zeromap_batch()
304 static inline int non_swapcache_batch(swp_entry_t entry, int max_nr) in non_swapcache_batch() argument
315 for (i = 0; i < max_nr; i++) { in non_swapcache_batch()
437 static inline int swap_zeromap_batch(swp_entry_t entry, int max_nr, in swap_zeromap_batch() argument
443 static inline int non_swapcache_batch(swp_entry_t entry, int max_nr) in non_swapcache_batch() argument
H A Dinternal.h269 unsigned int max_nr, fpb_t flags) in folio_pte_batch_flags() argument
276 VM_WARN_ON_FOLIO(!folio_test_large(folio) || max_nr < 1, folio); in folio_pte_batch_flags()
286 max_nr = min_t(unsigned long, max_nr, in folio_pte_batch_flags()
293 while (nr < max_nr) { in folio_pte_batch_flags()
319 return min(nr, max_nr); in folio_pte_batch_flags()
323 unsigned int max_nr);
379 static inline int swap_pte_batch(pte_t *start_ptep, int max_nr, pte_t pte) in swap_pte_batch() argument
382 const pte_t *end_ptep = start_ptep + max_nr; in swap_pte_batch()
387 VM_WARN_ON(max_nr < 1); in swap_pte_batch()
H A Dmincore.c197 unsigned int max_nr = (end - addr) >> PAGE_SHIFT; in mincore_pte_range() local
199 step = min_t(unsigned int, batch, max_nr); in mincore_pte_range()
H A Dmadvise.c348 int max_nr = (end - addr) / PAGE_SIZE; in madvise_folio_pte_batch() local
350 return folio_pte_batch_flags(folio, NULL, ptep, ptentp, max_nr, in madvise_folio_pte_batch()
666 int nr, max_nr; in madvise_free_pte_range() local
694 max_nr = (end - addr) / PAGE_SIZE; in madvise_free_pte_range()
695 nr = swap_pte_batch(pte, max_nr, ptent); in madvise_free_pte_range()
H A Dmemory.c1115 int max_nr, int *rss, struct folio **prealloc) in copy_present_ptes() argument
1133 if (unlikely(!*prealloc && folio_test_large(folio) && max_nr != 1)) { in copy_present_ptes()
1139 nr = folio_pte_batch_flags(folio, src_vma, src_pte, &pte, max_nr, flags); in copy_present_ptes()
1219 int progress, max_nr, ret = 0; in copy_pte_range() local
1303 max_nr = (end - addr) / PAGE_SIZE; in copy_pte_range()
1305 ptent, addr, max_nr, rss, &prealloc); in copy_pte_range()
1669 unsigned int max_nr, unsigned long addr, in zap_present_ptes() argument
1701 if (unlikely(folio_test_large(folio) && max_nr != 1)) { in zap_present_ptes()
1702 nr = folio_pte_batch(folio, pte, ptent, max_nr); in zap_present_ptes()
1715 unsigned int max_nr, unsigned long addr, in zap_nonpresent_ptes() argument
[all …]
H A Dmremap.c179 pte_t *ptep, pte_t pte, int max_nr) in mremap_folio_pte_batch() argument
183 if (max_nr == 1) in mremap_folio_pte_batch()
194 return folio_pte_batch_flags(folio, NULL, ptep, &pte, max_nr, FPB_RESPECT_WRITE); in mremap_folio_pte_batch()
H A Dutil.c1430 unsigned int max_nr) in folio_pte_batch() argument
1432 return folio_pte_batch_flags(folio, NULL, ptep, &pte, max_nr, 0); in folio_pte_batch()
H A Drmap.c1829 unsigned int max_nr; in folio_unmap_pte_batch() local
1838 max_nr = (end_addr - addr) >> PAGE_SHIFT; in folio_unmap_pte_batch()
1846 return folio_pte_batch(folio, pvmw->pte, pte, max_nr); in folio_unmap_pte_batch()
H A Dmempolicy.c689 int max_nr, nr; in queue_folios_pte_range() local
704 max_nr = (end - addr) >> PAGE_SHIFT; in queue_folios_pte_range()
719 if (folio_test_large(folio) && max_nr != 1) in queue_folios_pte_range()
720 nr = folio_pte_batch(folio, pte, ptent, max_nr); in queue_folios_pte_range()
/linux/io_uring/
H A Dalloc_cache.c22 unsigned max_nr, unsigned int size, in io_alloc_cache_init() argument
25 cache->entries = kvmalloc_array(max_nr, sizeof(void *), GFP_KERNEL); in io_alloc_cache_init()
30 cache->max_cached = max_nr; in io_alloc_cache_init()
H A Dalloc_cache.h14 unsigned max_nr, unsigned int size,
/linux/lib/
H A Dtest_kho.c207 unsigned long max_nr; in kho_test_save() local
211 max_nr = max_mem >> PAGE_SHIFT; in kho_test_save()
213 folios = kvmalloc_array(max_nr, sizeof(*state->folios), GFP_KERNEL); in kho_test_save()
/linux/fs/xfs/scrub/
H A Dxfarray.c99 array->max_nr = xfarray_idx(array, MAX_LFS_FILESIZE); in xfarray_create()
103 if (array->max_nr < required_capacity) { in xfarray_create()
107 array->max_nr = required_capacity; in xfarray_create()
207 if (idx >= array->max_nr) in xfarray_store()
H A Dtrace.h1054 __field(uint64_t, max_nr)
1060 __entry->max_nr = xfa->max_nr;
1068 __entry->max_nr,
/linux/tools/perf/util/
H A Dauxtrace.c2827 int max_nr) in parse_addr_filter() argument
2839 if (filts.cnt > max_nr) { in parse_addr_filter()
2841 filts.cnt, max_nr); in parse_addr_filter()
2894 int err, max_nr; in auxtrace_parse_filters() local
2898 max_nr = evsel__nr_addr_filter(evsel); in auxtrace_parse_filters()
2899 if (!filter || !max_nr) in auxtrace_parse_filters()
2902 err = parse_addr_filter(evsel, filter, max_nr); in auxtrace_parse_filters()
H A Dsession.c2804 size_t i, nr, max_nr; in perf_event__process_id_index() local
2811 max_nr = sz / e1_sz; in perf_event__process_id_index()
2813 if (nr > max_nr) { in perf_event__process_id_index()
2814 printf("Too big: nr %zu max_nr %zu\n", nr, max_nr); in perf_event__process_id_index()
2819 max_nr = sz / etot_sz; in perf_event__process_id_index()
2820 if (nr > max_nr) { in perf_event__process_id_index()
2821 printf("Too big2: nr %zu max_nr %zu\n", nr, max_nr); in perf_event__process_id_index()
H A Dsynthetic-events.c1852 size_t nr = 0, i = 0, sz, max_nr, n, pos; in __perf_event__synthesize_id_index() local
1859 max_nr = (UINT16_MAX - sizeof(struct perf_record_id_index)) / etot_sz; in __perf_event__synthesize_id_index()
1873 n = nr > max_nr ? max_nr : nr; in __perf_event__synthesize_id_index()