Home
last modified time | relevance | path

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

/linux/tools/perf/arch/powerpc/entry/syscalls/
H A Dmksyscalltbl22 local max_nr nr abi sc discard
23 max_nr=-1
28 if [ "$max_nr" -lt "$nr" ]; then
30 max_nr=$nr
34 echo "#define SYSCALLTBL_POWERPC_${wordsize}_MAX_ID $max_nr"
/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()
212 for (i = 0; i < max_nr; i++) in combiner_suspend()
230 for (i = 0; i < max_nr; i++) { in combiner_resume()
259 if (of_property_read_u32(np, "samsung,combiner-nr", &max_nr)) { in combiner_of_init()
262 __func__, max_nr); in combiner_of_init()
/linux/tools/perf/arch/mips/entry/syscalls/
H A Dmksyscalltbl19 local max_nr nr abi sc discard
24 max_nr=$nr
27 echo "#define SYSCALLTBL_MIPS_N64_MAX_ID $max_nr"
/linux/tools/perf/arch/s390/entry/syscalls/
H A Dmksyscalltbl19 local max_nr nr abi sc discard
24 max_nr=$nr
27 echo "#define SYSCALLTBL_S390_64_MAX_ID $max_nr"
/linux/tools/perf/arch/loongarch/entry/syscalls/
H A Dmksyscalltbl23 local sc nr max_nr
27 max_nr=$nr
30 echo "#define SYSCALLTBL_LOONGARCH_MAX_ID $max_nr"
/linux/tools/perf/arch/arm64/entry/syscalls/
H A Dmksyscalltbl24 local sc nr max_nr
28 max_nr=$nr
31 echo "#define SYSCALLTBL_ARM64_MAX_ID $max_nr"
/linux/tools/perf/arch/x86/entry/syscalls/
H A Dsyscalltbl.sh26 max_nr=0
35 max_nr=$nr
42 echo "#define SYSCALLTBL_${arch}_MAX_ID ${max_nr}"
/linux/mm/
H A Dswap.h89 static inline int swap_zeromap_batch(swp_entry_t entry, int max_nr, in swap_zeromap_batch() argument
94 unsigned long end = start + max_nr; in swap_zeromap_batch()
101 if (max_nr <= 1) in swap_zeromap_batch()
102 return max_nr; in swap_zeromap_batch()
201 static inline int swap_zeromap_batch(swp_entry_t entry, int max_nr, in swap_zeromap_batch() argument
H A Dinternal.h159 pte_t *start_ptep, pte_t pte, int max_nr, fpb_t flags, in folio_pte_batch() argument
163 const pte_t *end_ptep = start_ptep + max_nr; in folio_pte_batch()
176 VM_WARN_ON_FOLIO(!folio_test_large(folio) || max_nr < 1, folio); in folio_pte_batch()
216 return min(ptep - start_ptep, max_nr); in folio_pte_batch()
275 static inline int swap_pte_batch(pte_t *start_ptep, int max_nr, pte_t pte) in swap_pte_batch() argument
278 const pte_t *end_ptep = start_ptep + max_nr; in swap_pte_batch()
283 VM_WARN_ON(max_nr < 1); in swap_pte_batch()
H A Dmadvise.c330 int max_nr = (end - addr) / PAGE_SIZE; in madvise_folio_pte_batch() local
332 return folio_pte_batch(folio, addr, ptep, pte, max_nr, fpb_flags, NULL, in madvise_folio_pte_batch()
655 int nr, max_nr; in madvise_free_pte_range() local
684 max_nr = (end - addr) / PAGE_SIZE; in madvise_free_pte_range()
685 nr = swap_pte_batch(pte, max_nr, ptent); in madvise_free_pte_range()
H A Dmemory.c982 int max_nr, int *rss, struct folio **prealloc) in copy_present_ptes() argument
1001 if (unlikely(!*prealloc && folio_test_large(folio) && max_nr != 1)) { in copy_present_ptes()
1007 nr = folio_pte_batch(folio, addr, src_pte, pte, max_nr, flags, in copy_present_ptes()
1090 int progress, max_nr, ret = 0; in copy_pte_range() local
1166 max_nr = (end - addr) / PAGE_SIZE; in copy_pte_range()
1168 ptent, addr, max_nr, rss, &prealloc); in copy_pte_range()
1539 unsigned int max_nr, unsigned long addr, in zap_present_ptes() argument
1570 if (unlikely(folio_test_large(folio) && max_nr != 1)) { in zap_present_ptes()
1571 nr = folio_pte_batch(folio, addr, pte, ptent, max_nr, fpb_flags, in zap_present_ptes()
1610 int max_nr; in zap_pte_range() local
[all …]
/linux/io_uring/
H A Dalloc_cache.h35 unsigned max_nr, size_t size) in io_alloc_cache_init() argument
37 cache->entries = kvmalloc_array(max_nr, sizeof(void *), GFP_KERNEL); in io_alloc_cache_init()
40 cache->max_cached = max_nr; in io_alloc_cache_init()
/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.h1041 __field(uint64_t, max_nr)
1047 __entry->max_nr = xfa->max_nr;
1055 __entry->max_nr,
/linux/tools/perf/util/
H A Dauxtrace.c2746 int max_nr) in parse_addr_filter() argument
2758 if (filts.cnt > max_nr) { in parse_addr_filter()
2760 filts.cnt, max_nr); in parse_addr_filter()
2813 int err, max_nr; in auxtrace_parse_filters() local
2817 max_nr = evsel__nr_addr_filter(evsel); in auxtrace_parse_filters()
2818 if (!filter || !max_nr) in auxtrace_parse_filters()
2821 err = parse_addr_filter(evsel, filter, max_nr); in auxtrace_parse_filters()
H A Dsession.c2577 size_t i, nr, max_nr; in perf_event__process_id_index() local
2584 max_nr = sz / e1_sz; in perf_event__process_id_index()
2586 if (nr > max_nr) { in perf_event__process_id_index()
2587 printf("Too big: nr %zu max_nr %zu\n", nr, max_nr); in perf_event__process_id_index()
2592 max_nr = sz / etot_sz; in perf_event__process_id_index()
2593 if (nr > max_nr) { in perf_event__process_id_index()
2594 printf("Too big2: nr %zu max_nr %zu\n", nr, max_nr); in perf_event__process_id_index()
H A Dsynthetic-events.c1834 size_t nr = 0, i = 0, sz, max_nr, n, pos; in __perf_event__synthesize_id_index() local
1841 max_nr = (UINT16_MAX - sizeof(struct perf_record_id_index)) / etot_sz; in __perf_event__synthesize_id_index()
1855 n = nr > max_nr ? max_nr : nr; in __perf_event__synthesize_id_index()