| /linux-6.15/drivers/irqchip/ |
| H A D | exynos-combiner.c | 41 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-6.15/io_uring/ |
| H A D | alloc_cache.c | 22 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 D | alloc_cache.h | 14 unsigned max_nr, unsigned int size,
|
| /linux-6.15/mm/ |
| H A D | swap.h | 89 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() 196 static inline int swap_zeromap_batch(swp_entry_t entry, int max_nr, in swap_zeromap_batch() argument
|
| H A D | internal.h | 248 pte_t *start_ptep, pte_t pte, int max_nr, fpb_t flags, in folio_pte_batch() argument 263 VM_WARN_ON_FOLIO(!folio_test_large(folio) || max_nr < 1, folio); in folio_pte_batch() 267 max_nr = min_t(unsigned long, max_nr, in folio_pte_batch() 274 while (nr < max_nr) { in folio_pte_batch() 300 return min(nr, max_nr); in folio_pte_batch() 359 static inline int swap_pte_batch(pte_t *start_ptep, int max_nr, pte_t pte) in swap_pte_batch() argument 362 const pte_t *end_ptep = start_ptep + max_nr; in swap_pte_batch() 367 VM_WARN_ON(max_nr < 1); in swap_pte_batch()
|
| H A D | madvise.c | 338 int max_nr = (end - addr) / PAGE_SIZE; in madvise_folio_pte_batch() local 340 return folio_pte_batch(folio, addr, ptep, pte, max_nr, fpb_flags, NULL, in madvise_folio_pte_batch() 663 int nr, max_nr; in madvise_free_pte_range() local 692 max_nr = (end - addr) / PAGE_SIZE; in madvise_free_pte_range() 693 nr = swap_pte_batch(pte, max_nr, ptent); in madvise_free_pte_range()
|
| H A D | memory.c | 1082 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() 1544 unsigned int max_nr, unsigned long addr, in zap_present_ptes() argument 1593 unsigned int max_nr, unsigned long addr, in zap_nonpresent_ptes() argument 1623 nr = swap_pte_batch(pte, max_nr, ptent); in zap_nonpresent_ptes() 1669 int max_nr = (end - addr) / PAGE_SIZE; in do_zap_pte_range() local 1674 for (nr = 1; nr < max_nr; nr++) { in do_zap_pte_range() 1679 max_nr -= nr; in do_zap_pte_range() 1680 if (!max_nr) in do_zap_pte_range() [all …]
|
| H A D | rmap.c | 1853 int max_nr = folio_nr_pages(folio); in can_batch_unmap_folio_ptes() local 1863 return folio_pte_batch(folio, addr, ptep, pte, max_nr, fpb_flags, NULL, in can_batch_unmap_folio_ptes() 1864 NULL, NULL) == max_nr; in can_batch_unmap_folio_ptes()
|
| /linux-6.15/fs/xfs/scrub/ |
| H A D | xfarray.h | 28 xfarray_idx_t max_nr; member
|
| H A D | xfarray.c | 99 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 D | trace.h | 1054 __field(uint64_t, max_nr) 1060 __entry->max_nr = xfa->max_nr; 1068 __entry->max_nr,
|
| /linux-6.15/tools/perf/util/ |
| H A D | auxtrace.c | 2806 int max_nr) in parse_addr_filter() argument 2818 if (filts.cnt > max_nr) { in parse_addr_filter() 2820 filts.cnt, max_nr); in parse_addr_filter() 2873 int err, max_nr; in auxtrace_parse_filters() local 2877 max_nr = evsel__nr_addr_filter(evsel); in auxtrace_parse_filters() 2878 if (!filter || !max_nr) in auxtrace_parse_filters() 2881 err = parse_addr_filter(evsel, filter, max_nr); in auxtrace_parse_filters()
|
| H A D | session.c | 2636 size_t i, nr, max_nr; in perf_event__process_id_index() local 2643 max_nr = sz / e1_sz; in perf_event__process_id_index() 2645 if (nr > max_nr) { in perf_event__process_id_index() 2646 printf("Too big: nr %zu max_nr %zu\n", nr, max_nr); in perf_event__process_id_index() 2651 max_nr = sz / etot_sz; in perf_event__process_id_index() 2652 if (nr > max_nr) { in perf_event__process_id_index() 2653 printf("Too big2: nr %zu max_nr %zu\n", nr, max_nr); in perf_event__process_id_index()
|
| H A D | synthetic-events.c | 1840 size_t nr = 0, i = 0, sz, max_nr, n, pos; in __perf_event__synthesize_id_index() local 1847 max_nr = (UINT16_MAX - sizeof(struct perf_record_id_index)) / etot_sz; in __perf_event__synthesize_id_index() 1861 n = nr > max_nr ? max_nr : nr; in __perf_event__synthesize_id_index()
|