Home
last modified time | relevance | path

Searched refs:min (Results 1 – 25 of 67) sorted by relevance

123

/kernel/time/
Dtest_udelay.c29 int min = 0, max = 0, fail_count = 0; in udelay_test_single() local
45 if (i == 0 || time_passed < min) in udelay_test_single()
46 min = time_passed; in udelay_test_single()
59 (usecs * 1000) - allowed_error_ns, min, avg, max); in udelay_test_single()
Dalarmtimer.c244 ktime_t min, now, expires; in alarmtimer_suspend() local
251 min = freezer_delta; in alarmtimer_suspend()
274 if (!min || (delta < min)) { in alarmtimer_suspend()
276 min = delta; in alarmtimer_suspend()
280 if (min == 0) in alarmtimer_suspend()
283 if (ktime_to_ns(min) < 2 * NSEC_PER_SEC) { in alarmtimer_suspend()
294 now = ktime_add(now, min); in alarmtimer_suspend()
Dtimekeeping_debug.c49 int bin = min(fls(t->tv_sec), NUM_BINS-1); in tk_debug_account_sleep_time()
Dntp.c341 freq_adj = min(freq_adj + time_freq, MAXFREQ_SCALED); in ntp_update_offset()
723 time_freq = min(time_freq, MAXFREQ_SCALED); in process_adjtimex_modes()
739 time_constant = min(time_constant, (long)MAXTC); in process_adjtimex_modes()
Dtime.c433 const unsigned int min, const unsigned int sec) in mktime64() argument
447 )*60 + min /* now have minutes */ in mktime64()
Dtimer.c2077 void __sched usleep_range_state(unsigned long min, unsigned long max, in usleep_range_state() argument
2080 ktime_t exp = ktime_add_us(ktime_get(), min); in usleep_range_state()
2081 u64 delta = (u64)(max - min) * NSEC_PER_USEC; in usleep_range_state()
/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()
34 return TNUM(min & ~delta, delta); in tnum_range()
197 str[min(size - 1, (size_t)64)] = 0; in tnum_sbin()
Dbpf_iter.c110 n = min(seq->count, size); in bpf_seq_read()
214 n = min(seq->count, size); in bpf_seq_read()
/kernel/irq/
Dtimings.c284 irqts->count = min(IRQ_TIMINGS_SIZE, \
384 int index, i, period_max, count, start, min = INT_MAX; in __irq_timings_next_event() local
425 min = min_t(int, irqs->timings[i], min); in __irq_timings_next_event()
430 return irqs->last_ts + irqs->ema_time[min]; in __irq_timings_next_event()
/kernel/
Dsysctl.c961 int *min; member
982 if ((param->min && *param->min > tmp) || in do_proc_dointvec_minmax_conv()
1011 .min = (int *) table->extra1, in proc_dointvec_minmax()
1028 unsigned int *min; member
1047 if ((param->min && *param->min > tmp) || in do_proc_douintvec_minmax_conv()
1080 .min = (unsigned int *) table->extra1, in proc_douintvec_minmax()
1108 unsigned int min = 0, max = 255U, val; in proc_dou8vec_minmax() local
1111 .min = &min, in proc_dou8vec_minmax()
1121 min = *(unsigned int *) table->extra1; in proc_dou8vec_minmax()
1122 if (min > 255U) in proc_dou8vec_minmax()
[all …]
Dresource.c51 resource_size_t min, max, align; member
351 .end = min(end, p->end), in find_next_iomem_res()
553 static void resource_clip(struct resource *res, resource_size_t min, in resource_clip() argument
556 if (res->start < min) in resource_clip()
557 res->start = min; in resource_clip()
592 resource_clip(&tmp, constraint->min, constraint->max); in __find_resource()
694 resource_size_t size, resource_size_t min, in allocate_resource() argument
708 constraint.min = min; in allocate_resource()
Drange.c45 common_end = min(range[i].end, end); in add_range_with_merge()
50 start = min(range[i].start, start); in add_range_with_merge()
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
455 if (*num < min) { in param_array()
456 pr_err("%s: needs at least %i arguments\n", name, min); in param_array()
Dprofile.c299 pc = min((pc - (unsigned long)_stext) >> prof_shift, prof_len - 1); in do_profile_hits()
398 atomic_add(nr_hits, &prof_buffer[min(pc, prof_len - 1)]); in do_profile_hits()
Dkexec_core.c825 uchunk = min(ubytes, mchunk); in kimage_load_normal_segment()
887 uchunk = min(ubytes, mchunk); in kimage_load_crash_segment()
1106 align = min(roundup_pow_of_two(sizeof(note_buf_t)), PAGE_SIZE); in crash_notes_memory_init()
Dcompat.c160 unsigned int retlen = min(len, cpumask_size()); in COMPAT_SYSCALL_DEFINE3()
/kernel/events/
Duprobes.c1265 find_node_in_range(struct inode *inode, loff_t min, loff_t max) in find_node_in_range() argument
1279 else if (min > u->offset) in find_node_in_range()
1297 loff_t min, max; in build_probe_list() local
1302 min = vaddr_to_offset(vma, start); in build_probe_list()
1303 max = min + (end - start) - 1; in build_probe_list()
1306 n = find_node_in_range(inode, min, max); in build_probe_list()
1310 if (u->inode != inode || u->offset < min) in build_probe_list()
1405 loff_t min, max; in vma_has_uprobes() local
1411 min = vaddr_to_offset(vma, start); in vma_has_uprobes()
1412 max = min + (end - start) - 1; in vma_has_uprobes()
[all …]
Dring_buffer.c311 rb->watermark = min(max_size, watermark); in ring_buffer_init()
584 tocopy = min(tocopy, to - from); in perf_output_copy_aux()
715 order = min(max_order, ilog2(nr_pages - rb->aux_nr_pages)); in rb_alloc_aux()
Dinternal.h139 size = min(handle->size, len); \
/kernel/locking/
Dlocktorture.c744 long max = 0, min = statp ? data_race(statp[0].n_lock_acquired) : 0; in __torture_print_stats() local
755 if (min > cur) in __torture_print_stats()
756 min = cur; in __torture_print_stats()
761 sum, max, min, in __torture_print_stats()
762 !onoff_interval && max / 2 > min ? "???" : "", in __torture_print_stats()
/kernel/dma/
Dcontiguous.c189 selected_size = min(size_bytes, cma_early_percent_memory()); in dma_contiguous_reserve()
286 unsigned int align = min(get_order(size), CONFIG_CMA_ALIGNMENT); in cma_alloc_aligned()
Dpool.c88 order = min(get_order(pool_size), MAX_ORDER-1); in atomic_pool_expand()
/kernel/trace/
Dtrace_osnoise.c1805 .min = NULL,
1815 .min = &osnoise_data.sample_runtime,
1825 .min = NULL,
1835 .min = NULL,
1847 .min = NULL,
1859 .min = &timerlat_min_period,
Dtrace_hwlat.c739 .min = NULL,
751 .min = &hwlat_data.sample_width,
/kernel/sched/
Dpsi.c1189 group->poll_min_period = min(group->poll_min_period, in psi_trigger_create()
1231 period = min(period, div_u64(tmp->win.size, in psi_trigger_destroy()
1334 buf_size = min(nbytes, sizeof(buf)); in psi_write()

123