Home
last modified time | relevance | path

Searched refs:clamp_val (Results 1 – 15 of 15) sorted by relevance

/linux-4.19.296/fs/fscache/
Dmain.c150 clamp_val(nr_cpus, in fscache_init()
160 clamp_val(fscache_object_max_active / 2, in fscache_init()
/linux-4.19.296/drivers/iio/humidity/
Dsi7020.c65 *val = clamp_val(*val, 786, 13893); in si7020_read_raw()
/linux-4.19.296/include/linux/
Dcpufreq.h728 target_freq = clamp_val(target_freq, policy->min, policy->max); in cpufreq_table_find_index_l()
791 target_freq = clamp_val(target_freq, policy->min, policy->max); in cpufreq_table_find_index_h()
871 target_freq = clamp_val(target_freq, policy->min, policy->max); in cpufreq_table_find_index_c()
Dkernel.h972 #define clamp_val(val, lo, hi) clamp_t(typeof(val), val, lo, hi) macro
/linux-4.19.296/drivers/iio/accel/
Dadxl345_core.c173 clamp_val(ilog2(n), 0, in adxl345_write_raw()
/linux-4.19.296/drivers/clk/microchip/
Dclk-core.c139 div = clamp_val(div, divider_min, divider_max); in calc_best_divided_rate()
140 div_up = clamp_val(div + 1, divider_min, divider_max); in calc_best_divided_rate()
598 odiv = clamp_val(odiv, PLL_ODIV_MIN, PLL_ODIV_MAX); in spll_odiv_to_divider()
/linux-4.19.296/drivers/pwm/
Dpwm-lpss.c113 base_unit = clamp_val(base_unit, 1, base_unit_range - 1); in pwm_lpss_prepare()
/linux-4.19.296/drivers/media/tuners/
Dm88rs6000t.c389 f3dB = clamp_val(f3dB, 6000U, 43000U); in m88rs6000t_set_bb()
562 gain = clamp_val(gain, 1000U, 10500U); in m88rs6000t_get_rf_strength()
/linux-4.19.296/fs/btrfs/
Dasync-thread.c242 new_current_active = clamp_val(new_current_active, 1, wq->limit_active); in thresh_exec_hook()
/linux-4.19.296/drivers/cpufreq/
Dcpufreq.c499 target_freq = clamp_val(target_freq, policy->min, policy->max); in cpufreq_driver_resolve_freq()
1867 target_freq = clamp_val(target_freq, policy->min, policy->max); in cpufreq_driver_fast_switch()
1967 target_freq = clamp_val(target_freq, policy->min, policy->max); in __cpufreq_driver_target()
/linux-4.19.296/drivers/media/dvb-frontends/
Drtl2830.c429 utmp = clamp_val(-4 * stmp + 32767, 0x0000, 0xffff); in rtl2830_read_status()
/linux-4.19.296/drivers/iio/pressure/
Dbmp280-core.c264 var = clamp_val(var, 0, 419430400); in bmp280_compensate_humidity()
/linux-4.19.296/block/
Dbfq-iosched.c961 return clamp_val(dur, msecs_to_jiffies(3000), msecs_to_jiffies(25000)); in bfq_wr_duration()
/linux-4.19.296/drivers/hid/
Dwacom_wac.c416 rw = clamp_val(rw, 0, 31); in wacom_graphire_irq()
/linux-4.19.296/fs/ext4/
Dsuper.c342 now = clamp_val(now, 0, (1ull << 40) - 1); in __ext4_update_tstamp()