/kernel/cgroup/ |
D | misc.c | 157 if (new_usage > READ_ONCE(res->max) || in misc_cg_try_charge() 210 u64 max; in misc_cg_max_show() local 214 max = READ_ONCE(cg->res[i].max); in misc_cg_max_show() 215 if (max == MAX_NUM) in misc_cg_max_show() 219 max); in misc_cg_max_show() 248 u64 max; in misc_cg_max_write() local 270 max = MAX_NUM; in misc_cg_max_write() 272 ret = kstrtou64(buf, 0, &max); in misc_cg_max_write() 280 WRITE_ONCE(cg->res[type].max, max); in misc_cg_max_write() 398 WRITE_ONCE(cg->res[i].max, MAX_NUM); in misc_cg_alloc()
|
D | rdma.c | 44 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() 287 if (new > rpool->resources[index].max) { in rdmacg_try_charge() 508 value = rpool->resources[i].max; in print_rpool_values()
|
/kernel/ |
D | ucount.c | 237 long max; in inc_ucount() local 239 max = READ_ONCE(tns->ucount_max[type]); in inc_ucount() 240 if (!atomic_long_inc_below(&iter->ucount[type], max)) in inc_ucount() 266 long max = LONG_MAX; in inc_rlimit_ucounts() local 271 if (new < 0 || new > max) in inc_rlimit_ucounts() 275 max = get_userns_rlimit_max(iter->ns, type); in inc_rlimit_ucounts() 315 long max = LONG_MAX; in inc_rlimit_get_ucounts() local 320 if (new < 0 || new > max) in inc_rlimit_get_ucounts() 324 max = get_userns_rlimit_max(iter->ns, type); in inc_rlimit_get_ucounts() 346 long max = rlimit; in is_rlimit_overlimit() local [all …]
|
D | kallsyms_selftest.c | 28 int max; member 170 if (t > stat->max) in lookup_name() 171 stat->max = t; in lookup_name() 188 stat.min, stat.max, div_u64(stat.sum, stat.real_cnt)); in test_perf_kallsyms_lookup_name() 224 if (stat->real_cnt == stat->max) in find_symbol() 237 stat.max = INT_MAX; in test_perf_kallsyms_on_each_symbol() 258 if (stat->real_cnt == stat->max) in match_symbol() 270 stat.max = INT_MAX; in test_perf_kallsyms_on_each_match_symbol() 306 stat->max = INT_MAX; in test_kallsyms_basic_function() 320 stat->max = INT_MAX; in test_kallsyms_basic_function() [all …]
|
D | latencytop.c | 146 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()
|
D | sysctl.c | 822 int *max; member 843 (param->max && *param->max < tmp)) in do_proc_dointvec_minmax_conv() 872 .max = (int *) table->extra2, in proc_dointvec_minmax() 889 unsigned int *max; member 908 (param->max && *param->max < tmp)) in do_proc_douintvec_minmax_conv() 941 .max = (unsigned int *) table->extra2, in proc_douintvec_minmax() 968 unsigned int min = 0, max = 255U, val; in proc_dou8vec_minmax() local 972 .max = &max, in proc_dou8vec_minmax() 986 max = *(unsigned int *) table->extra2; in proc_dou8vec_minmax() 987 if (max > 255U) in proc_dou8vec_minmax() [all …]
|
D | params.c | 248 unsigned int min, unsigned int max) in param_set_uint_minmax() argument 258 if (num < min || num > max) in param_set_uint_minmax() 417 unsigned int min, unsigned int max, in param_array() argument 437 if (*num == max) { in param_array() 438 pr_err("%s: can only take %i arguments\n", name, max); in param_array() 468 return param_array(kp->mod, kp->name, val, 1, arr->max, arr->elem, in param_array_set() 479 for (i = off = 0; i < (arr->num ? *arr->num : arr->max); i++) { in param_array_get() 500 for (i = 0; i < (arr->num ? *arr->num : arr->max); i++) in param_array_free()
|
D | range.c | 44 common_start = max(range[i].start, start); in add_range_with_merge() 51 end = max(range[i].end, end); in add_range_with_merge()
|
D | resource.c | 51 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()
|
D | pid_sysctl.h | 23 scope = max(READ_ONCE(ns->memfd_noexec_scope), parent_scope); in pid_mfd_noexec_dointvec_minmax()
|
/kernel/time/ |
D | test_udelay.c | 29 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()
|
D | clocksource.c | 484 interval = max(cs_nsec, wd_nsec); in clocksource_watchdog() 1447 max((ssize_t)PAGE_SIZE - count, (ssize_t)0), in available_clocksource_show() 1453 max((ssize_t)PAGE_SIZE - count, (ssize_t)0), "\n"); in available_clocksource_show()
|
/kernel/sched/ |
D | cpufreq_schedutil.c | 142 unsigned long util, unsigned long max) in get_next_freq() argument 150 trace_android_vh_map_util_freq(util, freq, max, &next_freq, policy, in get_next_freq() 155 freq = map_util_freq(util, freq, max); in get_next_freq() 439 util = max(j_sg_cpu->util, util); in sugov_next_freq_shared()
|
D | cputime.c | 289 static inline u64 account_other_time(u64 max) in account_other_time() argument 295 accounted = steal_account_process_time(max); in account_other_time() 297 if (accounted < max) in account_other_time() 298 accounted += irqtime_tick_accounted(max - accounted); in account_other_time()
|
D | fair.c | 137 #define fits_capacity(cap, max) ((cap) * 1280 < (max) * 1024) argument 1182 max(delta_exec, stats->exec_max)); in update_curr() 1489 return max(smin, period); in task_scan_start() 1512 smax = max(smax, period); in task_scan_max() 1515 return max(smin, smax); in task_scan_max() 1761 enough_wmark = max(1UL * 1024 * 1024 * 1024 >> PAGE_SHIFT, in pgdat_free_space_enough() 1843 th = max(th - unit_th, unit_th); in numa_promotion_adjust_threshold() 2392 imbalance = max(0, dst_running - src_running); in task_numa_find_cpu() 2689 int ratio = max(lr_ratio, ps_ratio); in update_task_scan_period() 3354 start = max(start, vma->vm_start); in task_numa_work() [all …]
|
D | stop_task.c | 82 max(curr->stats.exec_max, delta_exec)); in put_prev_task_stop()
|
D | stats.c | 41 max(schedstat_val(stats->wait_max), delta)); in __update_stats_wait_end()
|
/kernel/module/ |
D | gki_module.c | 22 #define MAX_STRCMP_LEN (max(MAX_UNPROTECTED_NAME_LEN, MAX_PROTECTED_EXPORTS_NAME_LEN))
|
/kernel/bpf/ |
D | tnum.c | 21 struct tnum tnum_range(u64 min, u64 max) in tnum_range() argument 23 u64 chi = min ^ max, delta; in tnum_range()
|
D | memalloc.c | 474 c->low_watermark = max(32 * 256 / c->unit_size, 1); in init_refill_work() 475 c->high_watermark = max(96 * 256 / c->unit_size, 3); in init_refill_work() 477 c->batch = max((c->high_watermark - c->low_watermark) / 4 * 3, 1); in init_refill_work()
|
/kernel/locking/ |
D | locktorture.c | 905 long max = 0, min = statp ? data_race(statp[0].n_lock_acquired) : 0; in __torture_print_stats() local 914 if (max < cur) in __torture_print_stats() 915 max = cur; in __torture_print_stats() 922 sum, max, min, in __torture_print_stats() 923 !onoff_interval && max / 2 > min ? "???" : "", in __torture_print_stats()
|
/kernel/events/ |
D | uprobes.c | 1265 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/trace/ |
D | trace_hwlat.c | 299 latency = max(sample, outer_sample); in get_sample() 738 .max = &hwlat_data.sample_window, 750 .max = NULL,
|
D | trace_kdb.c | 136 skip_entries = max(cnt + skip_entries, 0); in kdb_ftdump()
|
D | trace_osnoise.c | 2608 .max = &osnoise_data.sample_period, 2618 .max = NULL, 2628 .max = NULL, 2638 .max = NULL, 2650 .max = NULL, 2662 .max = &timerlat_max_period,
|