Home
last modified time | relevance | path

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

123

/kernel/cgroup/
Dmisc.c158 if (new_usage > READ_ONCE(res->max) || in misc_cg_try_charge()
212 unsigned long max; in misc_cg_max_show() local
216 max = READ_ONCE(cg->res[i].max); in misc_cg_max_show()
217 if (max == MAX_NUM) in misc_cg_max_show()
221 max); in misc_cg_max_show()
250 unsigned long max; in misc_cg_max_write() local
272 max = MAX_NUM; in misc_cg_max_write()
274 ret = kstrtoul(buf, 0, &max); in misc_cg_max_write()
282 WRITE_ONCE(cg->res[type].max, max); in misc_cg_max_write()
400 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.c236 long max; in inc_ucount() local
238 max = READ_ONCE(tns->ucount_max[type]); in inc_ucount()
239 if (!atomic_long_inc_below(&iter->ucount[type], max)) in inc_ucount()
265 long max = LONG_MAX; in inc_rlimit_ucounts() local
270 if (new < 0 || new > max) in inc_rlimit_ucounts()
274 max = get_userns_rlimit_max(iter->ns, type); in inc_rlimit_ucounts()
314 long max = LONG_MAX; in inc_rlimit_get_ucounts() local
319 if (new < 0 || new > max) in inc_rlimit_get_ucounts()
323 max = get_userns_rlimit_max(iter->ns, type); in inc_rlimit_get_ucounts()
345 long max = rlimit; in is_rlimit_overlimit() local
[all …]
Dlatencytop.c146 if (lat->time > latency_record[i].max) in account_global_scheduler_latency()
147 latency_record[i].max = lat->time; in account_global_scheduler_latency()
195 lat.max = usecs; in __account_scheduler_latency()
223 if (lat.time > mylat->max) in __account_scheduler_latency()
224 mylat->max = lat.time; in __account_scheduler_latency()
255 lr->count, lr->time, lr->max); in lstats_show()
Dsysctl.c839 int *max; member
860 (param->max && *param->max < tmp)) in do_proc_dointvec_minmax_conv()
889 .max = (int *) table->extra2, in proc_dointvec_minmax()
906 unsigned int *max; member
925 (param->max && *param->max < tmp)) in do_proc_douintvec_minmax_conv()
958 .max = (unsigned int *) table->extra2, in proc_douintvec_minmax()
985 unsigned int min = 0, max = 255U, val; in proc_dou8vec_minmax() local
989 .max = &max, in proc_dou8vec_minmax()
1003 max = *(unsigned int *) table->extra2; in proc_dou8vec_minmax()
1004 if (max > 255U) in proc_dou8vec_minmax()
[all …]
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()
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()
Dresource.c51 resource_size_t min, max, align; member
362 .start = max(start, p->start), in find_next_iomem_res()
567 resource_size_t max) in resource_clip() argument
571 if (res->end > max) in resource_clip()
572 res->end = max; in resource_clip()
605 resource_clip(&tmp, constraint->min, constraint->max); in __find_resource()
708 resource_size_t max, resource_size_t align, in allocate_resource() argument
722 constraint.max = max; in allocate_resource()
/kernel/sched/
Dcpufreq_schedutil.c53 unsigned long max; member
143 unsigned long util, unsigned long max) in get_next_freq() argument
151 trace_android_vh_map_util_freq(util, freq, max, &next_freq, policy, in get_next_freq()
156 freq = map_util_freq(util, freq, max); in get_next_freq()
169 sg_cpu->max = arch_scale_cpu_capacity(sg_cpu->cpu); in sugov_get_util()
291 boost = (sg_cpu->iowait_boost * sg_cpu->max) >> SCHED_CAPACITY_SHIFT; in sugov_iowait_apply()
348 next_f = get_next_freq(sg_policy, sg_cpu->util, sg_cpu->max); in sugov_update_single_freq()
411 map_util_perf(sg_cpu->util), sg_cpu->max); in sugov_update_single_perf()
420 unsigned long util = 0, max = 1; in sugov_next_freq_shared() local
430 j_max = j_sg_cpu->max; in sugov_next_freq_shared()
[all …]
Dcputime.c285 static inline u64 account_other_time(u64 max) in account_other_time() argument
291 accounted = steal_account_process_time(max); in account_other_time()
293 if (accounted < max) in account_other_time()
294 accounted += irqtime_tick_accounted(max - accounted); in account_other_time()
Dstop_task.c82 max(curr->stats.exec_max, delta_exec)); in put_prev_task_stop()
Dfair.c163 #define fits_capacity(cap, max) ((cap) * 1280 < (max) * 1024) argument
914 max(delta_exec, stats->exec_max)); in update_curr()
1206 return max(smin, period); in task_scan_start()
1229 smax = max(smax, period); in task_scan_max()
1232 return max(smin, smax); in task_scan_max()
1478 enough_wmark = max(1UL * 1024 * 1024 * 1024 >> PAGE_SHIFT, in pgdat_free_space_enough()
1560 th = max(th - unit_th, unit_th); in numa_promotion_adjust_threshold()
2126 imbalance = max(0, dst_running - src_running); in task_numa_find_cpu()
2423 int ratio = max(lr_ratio, ps_ratio); in update_task_scan_period()
3031 start = max(start, vma->vm_start); in task_numa_work()
[all …]
Dstats.c41 max(schedstat_val(stats->wait_max), delta)); in __update_stats_wait_end()
/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()
Dclocksource.c481 interval = max(cs_nsec, wd_nsec); in clocksource_watchdog()
1440 max((ssize_t)PAGE_SIZE - count, (ssize_t)0), in available_clocksource_show()
1446 max((ssize_t)PAGE_SIZE - count, (ssize_t)0), "\n"); in available_clocksource_show()
/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/module/
Dgki_module.c22 #define MAX_STRCMP_LEN (max(MAX_UNPROTECTED_NAME_LEN, MAX_PROTECTED_EXPORTS_NAME_LEN))
/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()
Dmemalloc.c338 c->low_watermark = max(32 * 256 / c->unit_size, 1); in prefill_mem_cache()
339 c->high_watermark = max(96 * 256 / c->unit_size, 3); in prefill_mem_cache()
341 c->batch = max((c->high_watermark - c->low_watermark) / 4 * 3, 1); in prefill_mem_cache()
/kernel/events/
Duprobes.c1264 find_node_in_range(struct inode *inode, loff_t min, loff_t max) in find_node_in_range() argument
1276 if (max < u->offset) in find_node_in_range()
1296 loff_t min, max; in build_probe_list() local
1302 max = min + (end - start) - 1; in build_probe_list()
1305 n = find_node_in_range(inode, min, max); in build_probe_list()
1316 if (u->inode != inode || u->offset > max) in build_probe_list()
1404 loff_t min, max; in vma_has_uprobes() local
1411 max = min + (end - start) - 1; in vma_has_uprobes()
1414 n = find_node_in_range(inode, min, max); in vma_has_uprobes()
/kernel/trace/
Dtrace_osnoise.c1982 .max = &osnoise_data.sample_period,
1992 .max = NULL,
2002 .max = NULL,
2012 .max = NULL,
2024 .max = NULL,
2036 .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()
Dtrace_output.c1448 int max = iter->ent_size - offsetof(struct print_entry, buf); in trace_print_print() local
1453 trace_seq_printf(s, ": %.*s", max, field->buf); in trace_print_print()
1462 int max = iter->ent_size - offsetof(struct print_entry, buf); in trace_print_raw() local
1466 trace_seq_printf(&iter->seq, "# %lx %.*s", field->ip, max, field->buf); in trace_print_raw()

123