Home
last modified time | relevance | path

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

/kernel/
Dkfifo.c124 len = min(len, fifo->size - fifo->in + fifo->out); in __kfifo_put()
134 l = min(len, fifo->size - (fifo->in & (fifo->size - 1))); in __kfifo_put()
170 len = min(len, fifo->in - fifo->out); in __kfifo_get()
180 l = min(len, fifo->size - (fifo->out & (fifo->size - 1))); in __kfifo_get()
Dresource.c295 resource_size_t size, resource_size_t min, in find_resource() argument
317 if (new->start < min) in find_resource()
318 new->start = min; in find_resource()
348 resource_size_t size, resource_size_t min, in allocate_resource() argument
357 err = find_resource(root, new, size, min, max, align, alignf, alignf_data); in allocate_resource()
565 common_end = min(conflict->end, end); in __reserve_region_with_split()
Dsysctl.c2377 int *min; member
2388 if ((param->min && *param->min > val) || in do_proc_dointvec_minmax_conv()
2426 .min = (int *) table->extra1, in proc_dointvec_minmax()
2441 unsigned long *i, *min, *max, val; in __do_proc_doulongvec_minmax() local
2454 min = (unsigned long *) table->extra1; in __do_proc_doulongvec_minmax()
2459 for (; left && vleft--; i++, min++, max++, first=0) { in __do_proc_doulongvec_minmax()
2497 if ((min && val < *min) || (max && val > *max)) in __do_proc_doulongvec_minmax()
2908 int *min = (int *) table->extra1; in sysctl_intvec() local
2927 if (min && value < min[i]) in sysctl_intvec()
Dparams.c272 unsigned int min, unsigned int max, in param_array() argument
315 if (*num < min) { in param_array()
317 name, min); in param_array()
Dtime.c339 const unsigned int min, const unsigned int sec) in mktime() argument
353 )*60 + min /* now have minutes */ in mktime()
Dprofile.c319 pc = min((pc - (unsigned long)_stext) >> prof_shift, prof_len - 1); in profile_hits()
432 atomic_add(nr_hits, &prof_buffer[min(pc, prof_len - 1)]); in profile_hits()
Dkmod.c99 max_modprobes = min(max_threads/2, MAX_KMOD_CONCURRENT); in request_module()
Dpm_qos_params.c135 return min(v1, v2); in min_compare()
Dlockdep.c161 if (time < lt->min || !lt->min) in lock_time_inc()
162 lt->min = time; in lock_time_inc()
170 dst->min += src->min; in lock_time_add()
Dpid.c513 pidhash_shift = min(12, pidhash_shift); in pidhash_init()
Dsched_rt.c451 rt_rq->rt_time -= min(rt_rq->rt_time, overrun*runtime); in do_sched_rt_period_timer()
1473 next = DIV_ROUND_UP(min(soft, hard), USEC_PER_SEC/HZ); in watchdog()
Dsched.c1302 return (unsigned long)min(tmp, (u64)(unsigned long)LONG_MAX); in calc_delta_mine()
2079 return min(rq->cpu_load[type-1], total); in source_load()
3305 busiest_load_per_task = min(busiest_load_per_task, avg_load); in find_busiest_group()
3332 max_pull = min(max_load - avg_load, max_load - busiest_load_per_task); in find_busiest_group()
3335 *imbalance = min(max_pull * busiest->__cpu_power, in find_busiest_group()
3372 min(busiest_load_per_task, max_load); in find_busiest_group()
3374 min(this_load_per_task, this_load); in find_busiest_group()
3382 min(busiest_load_per_task, max_load - tmp); in find_busiest_group()
3393 min(this_load_per_task, this_load + tmp); in find_busiest_group()
Dcpuset.c1320 ticks = min(FM_MAXTICKS, ticks); in fmeter_update()
1334 fmp->cnt = min(FM_MAXCNT, fmp->cnt + FM_SCALE); in fmeter_markevent()
Drtmutex.c111 return min(task_top_pi_waiter(task)->pi_list_entry.prio, in rt_mutex_getprio()
Dsys.c1188 unsigned int cp_count = min(NGROUPS_PER_BLOCK, count); in groups_to_user()
1208 unsigned int cp_count = min(NGROUPS_PER_BLOCK, count); in groups_from_user()
Dlockdep_proc.c492 seq_time(m, lt->min); in seq_lock_time()
Dprintk.c163 offset = start = min(con_start, log_start); in log_buf_len_setup()
Drelay.c1153 avail = min(desc->count, avail); in relay_file_read_subbufs()
Dkprobes.c1356 buf_size = min(count, (sizeof(buf)-1)); in write_enabled_file_bool()
Dfutex.c1001 prio = min(current->normal_prio, MAX_RT_PRIO); in queue_me()
/kernel/time/
Dntp.c80 offset = min(offset, MAXPHASE); in ntp_update_offset()
101 freq_adj = min(freq_adj, MAXFREQ_SCALED); in ntp_update_offset()
369 time_freq = min(time_freq, MAXFREQ_SCALED); in do_adjtimex()
382 time_constant = min(time_constant, (long)MAXTC); in do_adjtimex()
/kernel/power/
Ddisk.c830 unsigned int maj, min; in resume_store() local
834 if (sscanf(buf, "%u:%u", &maj, &min) != 2) in resume_store()
837 res = MKDEV(maj,min); in resume_store()
838 if (maj != MAJOR(res) || min != MINOR(res)) in resume_store()
/kernel/trace/
Dtrace.c3652 len = min(len, TRACE_BUF_SIZE-1);