/linux-6.12.1/scripts/coccinelle/misc/ |
D | minmax.cocci | 37 expression max_val; 46 * max_val = (x); 48 * max_val = (y); 118 expression max_val; 126 - max_val = x; 128 - max_val = y; 130 + max_val = max(x, y);
|
/linux-6.12.1/sound/core/ |
D | vmaster.c | 20 int min_val, max_val; /* min, max values */ member 103 follower->info.max_val = uinfo->value.integer.max; in follower_init() 123 master->val = master->info.max_val; in master_init() 163 vol += follower->master->val - follower->master->info.max_val; in follower_put_val() 166 else if (vol > follower->info.max_val) in follower_put_val() 167 vol = follower->info.max_val; in follower_put_val() 203 ucontrol->value.integer.value[ch] > follower->info.max_val) in follower_put() 326 uinfo->value.integer.max = master->info.max_val; in master_info() 374 if (new_val < master->info.min_val || new_val > master->info.max_val) in master_put()
|
/linux-6.12.1/drivers/gpu/drm/mediatek/ |
D | mtk_dp.c | 97 unsigned short max_val; member 154 .max_val = 0x1e, 162 .max_val = 0xe, 170 .max_val = 0xe, 178 .max_val = 0xe, 186 .max_val = 0xe, 194 .max_val = 0xe, 202 .max_val = 0xe, 210 .max_val = 0xe, 218 .max_val = 0xe, [all …]
|
/linux-6.12.1/drivers/clk/ti/ |
D | divider.c | 35 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()
|
/linux-6.12.1/fs/udf/ |
D | unicode.c | 276 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()
|
/linux-6.12.1/drivers/gpu/host1x/ |
D | syncpt.h | 35 atomic_t max_val; member 98 max = atomic_read(&sp->max_val); in host1x_syncpt_idle()
|
D | syncpt.c | 129 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()
|
/linux-6.12.1/drivers/hwmon/ |
D | tmp513.c | 254 int regval, max_val; in tmp51x_set_value() local 265 max_val = U16_MAX >> tmp51x_get_pga_shift(data); in tmp51x_set_value() 266 regval = clamp_val(val, -max_val, max_val); in tmp51x_set_value() 271 max_val = (data->vbus_range_uvolt == TMP51X_VBUS_RANGE_32V) ? in tmp51x_set_value() 274 val = clamp_val(DIV_ROUND_CLOSEST(val, 4), 0, max_val); in tmp51x_set_value()
|
/linux-6.12.1/drivers/iio/dac/ |
D | ad5360.c | 320 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()
|
D | ad5421.c | 359 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()
|
D | ad5380.c | 176 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()
|
D | ad5764.c | 187 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()
|
D | ad5766.c | 270 const int max_val = GENMASK(chan->scan_type.realbits - 1, 0); in ad5766_write_raw() local 272 if (val > max_val || val < 0) in ad5766_write_raw()
|
/linux-6.12.1/drivers/net/wireless/broadcom/b43/ |
D | phy_g.h | 79 u8 max_val; member 100 u8 max_val; member
|
/linux-6.12.1/drivers/misc/lis3lv02d/ |
D | lis3lv02d.c | 683 int max_val, fuzz, flat; in lis3lv02d_joystick_enable() local 702 max_val = (lis3->mdps_max_val * lis3->scale) / LIS3_ACCURACY; in lis3lv02d_joystick_enable() 713 input_set_abs_params(input_dev, ABS_X, -max_val, max_val, fuzz, flat); in lis3lv02d_joystick_enable() 714 input_set_abs_params(input_dev, ABS_Y, -max_val, max_val, fuzz, flat); in lis3lv02d_joystick_enable() 715 input_set_abs_params(input_dev, ABS_Z, -max_val, max_val, fuzz, flat); in lis3lv02d_joystick_enable()
|
/linux-6.12.1/drivers/firmware/arm_scmi/ |
D | powercap.c | 178 scmi_powercap_validate(unsigned int min_val, unsigned int max_val, in scmi_powercap_validate() argument 181 if (!min_val || !max_val) in scmi_powercap_validate() 184 if ((configurable && min_val == max_val) || in scmi_powercap_validate() 185 (!configurable && min_val != max_val)) in scmi_powercap_validate() 188 if (min_val != max_val && !step_val) in scmi_powercap_validate()
|
/linux-6.12.1/drivers/video/backlight/ |
D | pwm_bl.c | 376 unsigned int max_val = data->levels[nlevels - 1]; in pwm_backlight_is_linear() local 382 unsigned int slope = (128 * (max_val - min_val)) / nlevels; in pwm_backlight_is_linear() 383 unsigned int margin = (max_val - min_val) / 20; /* 5% */ in pwm_backlight_is_linear()
|
/linux-6.12.1/drivers/s390/cio/ |
D | blacklist.c | 78 int max_digit, int max_val) in pure_hex() argument 95 if ((diff < min_digit) || (diff > max_digit) || (*val > max_val)) in pure_hex()
|
/linux-6.12.1/drivers/i2c/busses/ |
D | i2c-sh_mobile.c | 240 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()
|
/linux-6.12.1/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_devlink.c | 1123 int max_val = -1; in bnxt_dl_msix_validate() local 1126 max_val = BNXT_MSIX_VEC_MAX; in bnxt_dl_msix_validate() 1129 max_val = BNXT_MSIX_VEC_MIN_MAX; in bnxt_dl_msix_validate() 1131 if (val.vu32 > max_val) { in bnxt_dl_msix_validate()
|
/linux-6.12.1/fs/quota/ |
D | quota_tree.c | 81 uint val, uint min_val, uint max_val) in do_check_range() argument 83 if (val < min_val || val > max_val) { in do_check_range() 85 val_name, val, min_val, max_val); in do_check_range()
|
/linux-6.12.1/drivers/crypto/intel/qat/qat_common/ |
D | adf_rl.c | 415 u32 max_val = rl_data->device_data->scale_ref; in is_enough_budget() local 419 if (sla_in->cir > max_val || sla_in->pir > max_val) in is_enough_budget()
|
/linux-6.12.1/drivers/base/regmap/ |
D | regmap-debugfs.c | 29 static size_t regmap_calc_reg_len(int max_val) in regmap_calc_reg_len() argument 31 return snprintf(NULL, 0, "%x", max_val); in regmap_calc_reg_len()
|
/linux-6.12.1/drivers/accel/habanalabs/gaudi2/ |
D | gaudi2P.h | 605 u64 max_val);
|
/linux-6.12.1/tools/perf/util/ |
D | pmu.c | 1373 __u64 val, max_val; in pmu_config_term() local 1464 max_val = pmu_format_max_value(format->bits); in pmu_config_term() 1465 if (val > max_val) { in pmu_config_term() 1472 format->name, (unsigned long long)max_val) < 0 in pmu_config_term()
|