Searched refs:clamp_val (Results 1 – 15 of 15) sorted by relevance
/linux-4.19.296/fs/fscache/ |
D | main.c | 150 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/ |
D | si7020.c | 65 *val = clamp_val(*val, 786, 13893); in si7020_read_raw()
|
/linux-4.19.296/include/linux/ |
D | cpufreq.h | 728 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()
|
D | kernel.h | 972 #define clamp_val(val, lo, hi) clamp_t(typeof(val), val, lo, hi) macro
|
/linux-4.19.296/drivers/iio/accel/ |
D | adxl345_core.c | 173 clamp_val(ilog2(n), 0, in adxl345_write_raw()
|
/linux-4.19.296/drivers/clk/microchip/ |
D | clk-core.c | 139 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/ |
D | pwm-lpss.c | 113 base_unit = clamp_val(base_unit, 1, base_unit_range - 1); in pwm_lpss_prepare()
|
/linux-4.19.296/drivers/media/tuners/ |
D | m88rs6000t.c | 389 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/ |
D | async-thread.c | 242 new_current_active = clamp_val(new_current_active, 1, wq->limit_active); in thresh_exec_hook()
|
/linux-4.19.296/drivers/cpufreq/ |
D | cpufreq.c | 499 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/ |
D | rtl2830.c | 429 utmp = clamp_val(-4 * stmp + 32767, 0x0000, 0xffff); in rtl2830_read_status()
|
/linux-4.19.296/drivers/iio/pressure/ |
D | bmp280-core.c | 264 var = clamp_val(var, 0, 419430400); in bmp280_compensate_humidity()
|
/linux-4.19.296/block/ |
D | bfq-iosched.c | 961 return clamp_val(dur, msecs_to_jiffies(3000), msecs_to_jiffies(25000)); in bfq_wr_duration()
|
/linux-4.19.296/drivers/hid/ |
D | wacom_wac.c | 416 rw = clamp_val(rw, 0, 31); in wacom_graphire_irq()
|
/linux-4.19.296/fs/ext4/ |
D | super.c | 342 now = clamp_val(now, 0, (1ull << 40) - 1); in __ext4_update_tstamp()
|