Home
last modified time | relevance | path

Searched refs:max (Results 1 – 25 of 51) sorted by relevance

123

/kernel/cgroup/
Dmisc.c158 if (new_usage > READ_ONCE(res->max) || in misc_cg_try_charge()
214 unsigned long max; in misc_cg_max_show() local
218 max = READ_ONCE(cg->res[i].max); in misc_cg_max_show()
219 if (max == MAX_NUM) in misc_cg_max_show()
223 max); in misc_cg_max_show()
252 unsigned long max; in misc_cg_max_write() local
274 max = MAX_NUM; in misc_cg_max_write()
276 ret = kstrtoul(buf, 0, &max); in misc_cg_max_write()
284 WRITE_ONCE(cg->res[type].max, max); in misc_cg_max_write()
383 WRITE_ONCE(cg->res[i].max, MAX_NUM); in misc_cg_alloc()
Drdma.c44 int max; member
86 if (rpool->resources[index].max != S32_MAX) in set_resource_limit()
89 if (rpool->resources[index].max == S32_MAX) in set_resource_limit()
92 rpool->resources[index].max = new_max; in set_resource_limit()
285 if (new > rpool->resources[index].max) { in rdmacg_try_charge()
506 value = rpool->resources[i].max; in print_rpool_values()
/kernel/
Ducount.c234 long max; in inc_ucount() local
236 max = READ_ONCE(tns->ucount_max[type]); in inc_ucount()
237 if (!atomic_long_inc_below(&iter->ucount[type], max)) in inc_ucount()
263 long max = LONG_MAX; in inc_rlimit_ucounts() local
268 if (new < 0 || new > max) in inc_rlimit_ucounts()
272 max = READ_ONCE(iter->ns->ucount_max[type]); in inc_rlimit_ucounts()
312 long max = LONG_MAX; in inc_rlimit_get_ucounts() local
317 if (new < 0 || new > max) in inc_rlimit_get_ucounts()
321 max = READ_ONCE(iter->ns->ucount_max[type]); in inc_rlimit_get_ucounts()
343 long max = rlimit; in is_ucounts_overlimit() local
[all …]
Dlatencytop.c120 if (lat->time > latency_record[i].max) in account_global_scheduler_latency()
121 latency_record[i].max = lat->time; in account_global_scheduler_latency()
169 lat.max = usecs; in __account_scheduler_latency()
197 if (lat.time > mylat->max) in __account_scheduler_latency()
198 mylat->max = lat.time; in __account_scheduler_latency()
229 lr->count, lr->time, lr->max); in lstats_show()
Dparams.c247 unsigned int min, unsigned int max) in param_set_uint_minmax() argument
257 if (num < min || num > max) in param_set_uint_minmax()
416 unsigned int min, unsigned int max, in param_array() argument
436 if (*num == max) { in param_array()
437 pr_err("%s: can only take %i arguments\n", name, max); in param_array()
467 return param_array(kp->mod, kp->name, val, 1, arr->max, arr->elem, in param_array_set()
478 for (i = off = 0; i < (arr->num ? *arr->num : arr->max); i++) { in param_array_get()
499 for (i = 0; i < (arr->num ? *arr->num : arr->max); i++) in param_array_free()
Dsysctl.c962 int *max; member
983 (param->max && *param->max < tmp)) in do_proc_dointvec_minmax_conv()
1012 .max = (int *) table->extra2, in proc_dointvec_minmax()
1029 unsigned int *max; member
1048 (param->max && *param->max < tmp)) in do_proc_douintvec_minmax_conv()
1081 .max = (unsigned int *) table->extra2, in proc_douintvec_minmax()
1108 unsigned int min = 0, max = 255U, val; in proc_dou8vec_minmax() local
1112 .max = &max, in proc_dou8vec_minmax()
1126 max = *(unsigned int *) table->extra2; in proc_dou8vec_minmax()
1127 if (max > 255U) in proc_dou8vec_minmax()
[all …]
Dresource.c51 resource_size_t min, max, align; member
350 .start = max(start, p->start), in find_next_iomem_res()
554 resource_size_t max) in resource_clip() argument
558 if (res->end > max) in resource_clip()
559 res->end = max; in resource_clip()
592 resource_clip(&tmp, constraint->min, constraint->max); in __find_resource()
695 resource_size_t max, resource_size_t align, in allocate_resource() argument
709 constraint.max = max; in allocate_resource()
Drange.c44 common_start = max(range[i].start, start); in add_range_with_merge()
51 end = max(range[i].end, end); in add_range_with_merge()
Dgki_module.c22 #define MAX_STRCMP_LEN (max(MAX_PROTECTED_NAME_LEN, MAX_EXPORTED_NAME_LEN))
/kernel/sched/
Dcpufreq_schedutil.c59 unsigned long max; member
155 unsigned long util, unsigned long max) in get_next_freq() argument
163 trace_android_vh_map_util_freq(util, freq, max, &next_freq); in get_next_freq()
164 trace_android_vh_map_util_freq_new(util, freq, max, &next_freq, policy, in get_next_freq()
169 freq = map_util_freq(util, freq, max); in get_next_freq()
181 unsigned long max = arch_scale_cpu_capacity(sg_cpu->cpu); in sugov_get_util() local
183 sg_cpu->max = max; in sugov_get_util()
185 sg_cpu->util = effective_cpu_util(sg_cpu->cpu, cpu_util_cfs(rq), max, in sugov_get_util()
305 boost = (sg_cpu->iowait_boost * sg_cpu->max) >> SCHED_CAPACITY_SHIFT; in sugov_iowait_apply()
362 next_f = get_next_freq(sg_policy, sg_cpu->util, sg_cpu->max); in sugov_update_single_freq()
[all …]
Dcputime.c276 static inline u64 account_other_time(u64 max) in account_other_time() argument
282 accounted = steal_account_process_time(max); in account_other_time()
284 if (accounted < max) in account_other_time()
285 accounted += irqtime_tick_accounted(max - accounted); in account_other_time()
Dfair.c119 #define fits_capacity(cap, max) ((cap) * 1280 < (max) * 1024) argument
708 slice = max(slice, (u64)sysctl_sched_min_granularity); in sched_slice()
850 max(delta_exec, curr->statistics.exec_max)); in update_curr()
927 max(schedstat_val(se->statistics.wait_max), delta)); in update_stats_wait_end()
1174 return max(smin, period); in task_scan_start()
1197 smax = max(smax, period); in task_scan_max()
1200 return max(smin, smax); in task_scan_max()
1937 imbalance = max(0, dst_running - src_running); in task_numa_find_cpu()
2232 int ratio = max(lr_ratio, ps_ratio); in update_task_scan_period()
2814 start = max(start, vma->vm_start); in task_numa_work()
[all …]
Dcore.c3657 u64 max = 2*rq->max_idle_balance_cost; in ttwu_do_wakeup() local
3661 if (rq->avg_idle > max) in ttwu_do_wakeup()
3662 rq->avg_idle = max; in ttwu_do_wakeup()
5839 pick_task(struct rq *rq, const struct sched_class *class, struct task_struct *max, bool in_fi) in pick_task() argument
5853 if (max && class_pick->core_cookie && in pick_task()
5854 prio_less(class_pick, max, in_fi)) in pick_task()
5874 (!max || prio_less(max, class_pick, in_fi))) in pick_task()
5885 struct task_struct *next, *max = NULL; in pick_next_task() local
6008 p = pick_task(rq_i, class, max, fi_before); in pick_next_task()
6032 if (!max || !cookie_match(max, p)) { in pick_next_task()
[all …]
Dstop_task.c82 max(curr->se.statistics.exec_max, delta_exec)); in put_prev_task_stop()
Dsched.h132 __w = max(2UL, __w >> SCHED_FIXEDPOINT_SHIFT); \
3089 unsigned long max, enum cpu_util_type type,
3127 unsigned long scale_irq_capacity(unsigned long util, unsigned long irq, unsigned long max) in scale_irq_capacity() argument
3129 util *= (max - irq); in scale_irq_capacity()
3130 util /= max; in scale_irq_capacity()
3142 unsigned long scale_irq_capacity(unsigned long util, unsigned long irq, unsigned long max) in scale_irq_capacity() argument
/kernel/time/
Dtest_udelay.c29 int min = 0, max = 0, fail_count = 0; in udelay_test_single() local
47 if (i == 0 || time_passed > max) in udelay_test_single()
48 max = time_passed; in udelay_test_single()
59 (usecs * 1000) - allowed_error_ns, min, avg, max); in udelay_test_single()
Dntp.c343 time_freq = max(freq_adj, -MAXFREQ_SCALED); in ntp_update_offset()
724 time_freq = max(time_freq, -MAXFREQ_SCALED); in process_adjtimex_modes()
740 time_constant = max(time_constant, 0l); in process_adjtimex_modes()
/kernel/locking/
Dlocktorture.c744 long max = 0, min = statp ? data_race(statp[0].n_lock_acquired) : 0; in __torture_print_stats() local
753 if (max < cur) in __torture_print_stats()
754 max = cur; in __torture_print_stats()
761 sum, max, min, in __torture_print_stats()
762 !onoff_interval && max / 2 > min ? "???" : "", in __torture_print_stats()
/kernel/bpf/
Dtnum.c21 struct tnum tnum_range(u64 min, u64 max) in tnum_range() argument
23 u64 chi = min ^ max, delta; in tnum_range()
/kernel/events/
Duprobes.c1265 find_node_in_range(struct inode *inode, loff_t min, loff_t max) in find_node_in_range() argument
1277 if (max < u->offset) in find_node_in_range()
1297 loff_t min, max; in build_probe_list() local
1303 max = min + (end - start) - 1; in build_probe_list()
1306 n = find_node_in_range(inode, min, max); in build_probe_list()
1317 if (u->inode != inode || u->offset > max) in build_probe_list()
1405 loff_t min, max; in vma_has_uprobes() local
1412 max = min + (end - start) - 1; in vma_has_uprobes()
1415 n = find_node_in_range(inode, min, max); in vma_has_uprobes()
/kernel/dma/
Dcontiguous.c191 selected_size = max(size_bytes, cma_early_percent_memory()); in dma_contiguous_reserve()
403 phys_addr_t align = PAGE_SIZE << max(MAX_ORDER - 1, pageblock_order); in rmem_cma_setup()
/kernel/trace/
Dtrace_osnoise.c1804 .max = &osnoise_data.sample_period,
1814 .max = NULL,
1824 .max = NULL,
1834 .max = NULL,
1846 .max = NULL,
1858 .max = &timerlat_max_period,
Dtrace_hwlat.c299 latency = max(sample, outer_sample); in get_sample()
738 .max = &hwlat_data.sample_window,
750 .max = NULL,
Dtrace_kdb.c136 skip_entries = max(cnt + skip_entries, 0); in kdb_ftdump()
DKconfig241 bool "Trace max stack"
388 the sum of all noise, the max single noise, the percentage of CPU
782 last=632 first=3672 max=632 min=632 avg=316 std=446 std^2=199712
783 last=278 first=3672 max=632 min=278 avg=303 std=316 std^2=100337
784 last=277 first=3672 max=632 min=277 avg=296 std=258 std^2=67064
785 last=273 first=3672 max=632 min=273 avg=292 std=224 std^2=50411
786 last=273 first=3672 max=632 min=273 avg=288 std=200 std^2=40389
787 last=281 first=3672 max=632 min=273 avg=287 std=183 std^2=33666

123