Home
last modified time | relevance | path

Searched refs:max_val (Results 1 – 25 of 47) sorted by relevance

12

/openbmc/linux/scripts/coccinelle/misc/
H A Dminmax.cocci37 expression max_val;
46 * max_val = (x);
48 * max_val = (y);
103 expression max_val;
111 - max_val = x;
113 - max_val = y;
115 + max_val = max(x, y);
/openbmc/linux/fs/udf/
H A Dunicode.c276 unsigned int max_val; in udf_name_to_CS0() local
291 max_val = 0xff; in udf_name_to_CS0()
316 if (uni_char > max_val) { in udf_name_to_CS0()
319 if (max_val == 0xff) { in udf_name_to_CS0()
320 max_val = 0xffff; in udf_name_to_CS0()
342 if (max_val == 0xffff) in udf_name_to_CS0()
/openbmc/linux/drivers/clk/ti/
H A Ddivider.c35 u32 max_val; in _setup_mask() local
39 max_val = 0; in _setup_mask()
42 if (clkt->val > max_val) in _setup_mask()
43 max_val = clkt->val; in _setup_mask()
45 max_val = divider->max; in _setup_mask()
49 max_val--; in _setup_mask()
53 mask = fls(max_val) - 1; in _setup_mask()
55 mask = max_val; in _setup_mask()
/openbmc/linux/sound/core/
H A Dvmaster.c20 int min_val, max_val; /* min, max values */ member
108 follower->info.max_val = uinfo->value.integer.max; in follower_init()
129 master->val = master->info.max_val; in master_init()
169 vol += follower->master->val - follower->master->info.max_val; in follower_put_val()
172 else if (vol > follower->info.max_val) in follower_put_val()
173 vol = follower->info.max_val; in follower_put_val()
326 uinfo->value.integer.max = master->info.max_val; in master_info()
/openbmc/u-boot/drivers/power/
H A Dexynos-tmu.c55 unsigned max_val; member
157 (cur_temp <= data->ts.max_val)) in tmu_monitor()
219 info->data.ts.max_val = fdtdec_get_int(blob, in get_tmu_fdt_values()
221 error |= (info->data.ts.max_val == -1); in get_tmu_fdt_values()
/openbmc/linux/drivers/gpu/host1x/
H A Dsyncpt.h35 atomic_t max_val; member
98 max = atomic_read(&sp->max_val); in host1x_syncpt_idle()
H A Dsyncpt.c129 return (u32)atomic_add_return(incrs, &sp->max_val); in host1x_syncpt_incr_max()
344 atomic_set(&sp->max_val, host1x_syncpt_read(sp)); in syncpt_release()
396 return (u32)atomic_read(&sp->max_val); in host1x_syncpt_read_max()
/openbmc/linux/drivers/hwmon/
H A Dtmp513.c245 int regval, max_val; in tmp51x_set_value() local
256 max_val = U16_MAX >> tmp51x_get_pga_shift(data); in tmp51x_set_value()
257 regval = clamp_val(val, -max_val, max_val); in tmp51x_set_value()
262 max_val = (data->vbus_range_uvolt == TMP51X_VBUS_RANGE_32V) ? in tmp51x_set_value()
265 val = clamp_val(DIV_ROUND_CLOSEST(val, 4), 0, max_val); in tmp51x_set_value()
/openbmc/linux/drivers/gpu/drm/mediatek/
H A Dmtk_dp.c160 .max_val = 0xe,
168 .max_val = 0xe,
176 .max_val = 0xe,
184 .max_val = 0xe,
192 .max_val = 0xe,
200 .max_val = 0xe,
208 .max_val = 0xe,
216 .max_val = 0xe,
224 .max_val = 0xe,
243 .max_val = 0xe,
[all …]
/openbmc/linux/drivers/iio/dac/
H A Dad5360.c320 int max_val = (1 << chan->scan_type.realbits); in ad5360_write_raw() local
325 if (val >= max_val || val < 0) in ad5360_write_raw()
332 if (val >= max_val || val < 0) in ad5360_write_raw()
339 if (val >= max_val || val < 0) in ad5360_write_raw()
346 if (val <= -max_val || val > 0) in ad5360_write_raw()
H A Dad5421.c359 const unsigned int max_val = 1 << 16; in ad5421_write_raw() local
363 if (val >= max_val || val < 0) in ad5421_write_raw()
369 if (val >= max_val || val < 0) in ad5421_write_raw()
374 if (val >= max_val || val < 0) in ad5421_write_raw()
H A Dad5380.c176 const unsigned int max_val = (1 << chan->scan_type.realbits); in ad5380_write_raw() local
182 if (val >= max_val || val < 0) in ad5380_write_raw()
190 if (val >= max_val || val < 0) in ad5380_write_raw()
H A Dad5764.c187 const int max_val = (1 << chan->scan_type.realbits); in ad5764_write_raw() local
192 if (val >= max_val || val < 0) in ad5764_write_raw()
/openbmc/qemu/target/riscv/
H A Dpmu.c107 target_ulong max_val = UINT32_MAX; in riscv_pmu_incr_ctr_rv32() local
126 if (counter->mhpmcounter_val == max_val) { in riscv_pmu_incr_ctr_rv32()
127 if (counter->mhpmcounterh_val == max_val) { in riscv_pmu_incr_ctr_rv32()
149 uint64_t max_val = UINT64_MAX; in riscv_pmu_incr_ctr_rv64() local
167 if (counter->mhpmcounter_val == max_val) { in riscv_pmu_incr_ctr_rv64()
/openbmc/qemu/target/ppc/
H A Dinternal.h34 #define FUNC_MASK(name, ret_type, size, max_val) \ argument
41 ret = max_val << (max_bit - end); \
43 ret = max_val >> start; \
/openbmc/linux/drivers/net/wireless/broadcom/b43/
H A Dphy_g.h79 u8 max_val; member
100 u8 max_val; member
/openbmc/openbmc/poky/scripts/lib/build_perf/
H A Dreport.py324 max_val = val_cls(max(values))
334 stats[prefix + 'max'] = max_val
336 stats[prefix + 'plus'] = val_cls(max_val - mean_val)
/openbmc/linux/drivers/misc/lis3lv02d/
H A Dlis3lv02d.c684 int max_val, fuzz, flat; in lis3lv02d_joystick_enable() local
703 max_val = (lis3->mdps_max_val * lis3->scale) / LIS3_ACCURACY; in lis3lv02d_joystick_enable()
714 input_set_abs_params(input_dev, ABS_X, -max_val, max_val, fuzz, flat); in lis3lv02d_joystick_enable()
715 input_set_abs_params(input_dev, ABS_Y, -max_val, max_val, fuzz, flat); in lis3lv02d_joystick_enable()
716 input_set_abs_params(input_dev, ABS_Z, -max_val, max_val, fuzz, flat); in lis3lv02d_joystick_enable()
/openbmc/qemu/target/hexagon/
H A Dgenptr.c1347 TCGv max_val = tcg_constant_tl((1 << (width - 1)) - 1); in gen_sat_i32() local
1349 tcg_gen_smin_tl(dest, source, max_val); in gen_sat_i32()
1364 TCGv max_val = tcg_constant_tl((1 << width) - 1); in gen_satu_i32() local
1366 tcg_gen_movcond_tl(TCG_COND_GTU, tmp, source, max_val, max_val, source); in gen_satu_i32()
1381 TCGv_i64 max_val = tcg_constant_i64((1LL << (width - 1)) - 1LL); in gen_sat_i64() local
1383 tcg_gen_smin_i64(dest, source, max_val); in gen_sat_i64()
1401 TCGv_i64 max_val = tcg_constant_i64((1LL << width) - 1LL); in gen_satu_i64() local
1403 tcg_gen_movcond_i64(TCG_COND_GTU, tmp, source, max_val, max_val, source); in gen_satu_i64()
/openbmc/linux/drivers/s390/cio/
H A Dblacklist.c78 int max_digit, int max_val) in pure_hex() argument
95 if ((diff < min_digit) || (diff > max_digit) || (*val > max_val)) in pure_hex()
/openbmc/linux/drivers/video/backlight/
H A Dpwm_bl.c387 unsigned int max_val = data->levels[nlevels - 1]; in pwm_backlight_is_linear() local
393 unsigned int slope = (128 * (max_val - min_val)) / nlevels; in pwm_backlight_is_linear()
394 unsigned int margin = (max_val - min_val) / 20; /* 5% */ in pwm_backlight_is_linear()
/openbmc/linux/drivers/firmware/arm_scmi/
H A Dpowercap.c161 scmi_powercap_validate(unsigned int min_val, unsigned int max_val, in scmi_powercap_validate() argument
164 if (!min_val || !max_val) in scmi_powercap_validate()
167 if ((configurable && min_val == max_val) || in scmi_powercap_validate()
168 (!configurable && min_val != max_val)) in scmi_powercap_validate()
171 if (min_val != max_val && !step_val) in scmi_powercap_validate()
/openbmc/u-boot/drivers/ddr/marvell/a38x/
H A Dddr3_training_ip_engine.c651 int tap_val, max_val = -10000, min_val = 10000; in ddr3_tip_process_result() local
667 if (tap_val > max_val) in ddr3_tip_process_result()
668 max_val = tap_val; in ddr3_tip_process_result()
672 *edge_result = (u32) max_val; in ddr3_tip_process_result()
679 max_val, min_val, in ddr3_tip_process_result()
/openbmc/linux/drivers/i2c/busses/
H A Di2c-sh_mobile.c240 u16 max_val = pd->flags & IIC_FLAG_HAS_ICIC67 ? 0x1ff : 0xff; in sh_mobile_i2c_check_timing() local
242 if (pd->iccl > max_val || pd->icch > max_val) { in sh_mobile_i2c_check_timing()
/openbmc/linux/drivers/net/ethernet/broadcom/bnxt/
H A Dbnxt_devlink.c1150 int max_val = -1; in bnxt_dl_msix_validate() local
1153 max_val = BNXT_MSIX_VEC_MAX; in bnxt_dl_msix_validate()
1156 max_val = BNXT_MSIX_VEC_MIN_MAX; in bnxt_dl_msix_validate()
1158 if (val.vu32 > max_val) { in bnxt_dl_msix_validate()

12