/linux/lib/ |
H A D | overflow_kunit.c | 180 {0, S16_MAX, S16_MAX, -S16_MAX, 0, false, false, false}, 181 {S16_MAX, 0, S16_MAX, S16_MAX, 0, false, false, false}, 185 {-1, S16_MIN, S16_MAX, S16_MAX, S16_MIN, true, false, true}, 186 {S16_MIN, -1, S16_MAX, -S16_MAX, S16_MIN, true, false, true}, 187 {-1, S16_MAX, S16_MAX-1, S16_MIN, -S16_MAX, false, false, false}, 188 {S16_MAX, -1, S16_MAX-1, S16_MIN, -S16_MAX, false, true, false}, 189 {-1, -S16_MAX, S16_MIN, S16_MAX-1, S16_MAX, false, false, false}, 190 {-S16_MAX, -1, S16_MIN, S16_MIN+2, S16_MAX, false, false, false}, 192 {1, S16_MIN, -S16_MAX, -S16_MAX, S16_MIN, false, true, false}, 193 {S16_MIN, 1, -S16_MAX, S16_MAX, S16_MIN, false, true, false}, [all …]
|
H A D | nlattr.c | 252 range->max = S16_MAX; in nla_get_range_signed()
|
/linux/include/linux/ |
H A D | limits.h | 19 #define S16_MAX ((s16)(U16_MAX >> 1)) macro 20 #define S16_MIN ((s16)(-S16_MAX - 1))
|
/linux/drivers/iio/adc/ |
H A D | ad4695.c | 759 if (val2 >= 0 && val > S16_MAX / 4) in ad4695_write_raw() 760 reg_val = S16_MAX; in ad4695_write_raw() 766 S16_MIN, S16_MAX); in ad4695_write_raw() 770 S16_MIN, S16_MAX); in ad4695_write_raw() 774 S16_MIN, S16_MAX); in ad4695_write_raw() 803 S16_MIN / 4, 0, 0, MICRO / 4, S16_MAX / 4, S16_MAX % 4 * MICRO / 4 in ad4695_read_avail()
|
/linux/arch/s390/include/asm/ |
H A D | atomic_ops.h | 26 if (__builtin_constant_p(i) && i >= S16_MIN && i <= S16_MAX) { in __atomic_set() 49 if (__builtin_constant_p(i) && i >= S16_MIN && i <= S16_MAX) { in __atomic64_set()
|
/linux/net/ethtool/ |
H A D | bitset.h | 6 #define ETHNL_MAX_BITSET_SIZE S16_MAX
|
/linux/drivers/hwmon/ |
H A D | ina238.c | 230 regval = clamp_val(regval, S16_MIN, S16_MAX); in ina238_write_in() 246 regval = clamp_val(regval, 0, S16_MAX); in ina238_write_in() 401 regval = clamp_val(regval, S16_MIN, S16_MAX) & 0xfff0; in ina238_write_temp()
|
/linux/drivers/iio/temperature/ |
H A D | tmp117.c | 101 off = clamp_t(int, val, S16_MIN, S16_MAX); in tmp117_write_raw()
|
H A D | mlx90632.c | 601 if (read > S16_MAX || read < S16_MIN) in mlx90632_read_object_raw_extended()
|
/linux/arch/arm64/kernel/ |
H A D | module.c | 76 if (sval < S16_MIN || sval > S16_MAX) in reloc_data()
|
/linux/drivers/rtc/ |
H A D | rtc-tps6594.c | 222 if (calibration < S16_MIN + 1 || calibration > S16_MAX) in tps6594_rtc_set_calibration()
|
/linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/ |
H A D | vdec_av1_req_lat_if.c | 1112 gm_params->alpha = clamp_val(mat[2] - (1 << WARPEDMODEL_PREC_BITS), S16_MIN, S16_MAX); in vdec_av1_slice_get_shear_params() 1113 gm_params->beta = clamp_val(mat[3], S16_MIN, S16_MAX); in vdec_av1_slice_get_shear_params() 1119 S16_MIN, S16_MAX); in vdec_av1_slice_get_shear_params() 1123 (1 << WARPEDMODEL_PREC_BITS), S16_MIN, S16_MAX); in vdec_av1_slice_get_shear_params()
|
/linux/sound/soc/atmel/ |
H A D | atmel-pdmic.c | 47 #define PDMIC_OFFSET_MAX_VAL S16_MAX
|
/linux/drivers/hid/ |
H A D | hid-playstation.c | 1031 ds->gyro_calib_data[i].sens_denom = S16_MAX; in dualsense_get_calibration_data() 1068 ds->accel_calib_data[i].sens_denom = S16_MAX; in dualsense_get_calibration_data() 1921 ds4->gyro_calib_data[i].sens_denom = S16_MAX; in dualshock4_get_calibration_data() 1937 ds4->accel_calib_data[i].sens_denom = S16_MAX; in dualshock4_get_calibration_data()
|
/linux/drivers/net/wireless/intel/iwlwifi/mvm/ |
H A D | tt.c | 652 if ((temp / 1000) > S16_MAX) in iwl_mvm_tzone_set_trip_temp()
|
/linux/drivers/iio/accel/ |
H A D | adxl355_core.c | 576 calibbias = clamp_t(int, val, S16_MIN, S16_MAX); in adxl355_write_raw()
|
/linux/drivers/media/platform/verisilicon/ |
H A D | rockchip_vpu981_hw_av1_dec.c | 486 *alpha = clamp_val(mat[2] - (1 << WARPEDMODEL_PREC_BITS), S16_MIN, S16_MAX); in rockchip_vpu981_av1_dec_get_shear_params() 487 *beta = clamp_val(mat[3], S16_MIN, S16_MAX); in rockchip_vpu981_av1_dec_get_shear_params() 493 *gamma = clamp_val((int)AV1_DIV_ROUND_UP_POW2_SIGNED(gv, shift), S16_MIN, S16_MAX); in rockchip_vpu981_av1_dec_get_shear_params() 498 S16_MIN, S16_MAX); in rockchip_vpu981_av1_dec_get_shear_params()
|
/linux/kernel/bpf/ |
H A D | log.c | 556 #define SNUM_MAX_DECIMAL S16_MAX
|
H A D | core.c | 393 off_max = S16_MAX; in bpf_adj_delta_to_off() 482 const u32 cnt_max = S16_MAX; in bpf_patch_insn_single()
|
/linux/drivers/gpu/drm/xe/ |
H A D | xe_migrate.c | 672 xe_gt_assert(gt, size / pitch <= S16_MAX); in emit_copy() 673 xe_gt_assert(gt, pitch / 4 <= S16_MAX); in emit_copy()
|
/linux/drivers/gpu/drm/i915/gt/ |
H A D | intel_migrate.c | 926 GEM_BUG_ON(size >> PAGE_SHIFT > S16_MAX); in emit_clear()
|
/linux/tools/testing/selftests/bpf/prog_tests/ |
H A D | reg_bounds.c | 22 #define S16_MAX ((s16)0x7fffffff) macro 145 #define SNUM_MAX_DECIMAL S16_MAX
|
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/ |
H A D | clock.c | 75 MLX5_MTUTC_OPERATION_ADJUST_TIME_MAX = S16_MAX,
|
/linux/drivers/net/ethernet/google/gve/ |
H A D | gve_tx_dqo.c | 323 tx->dqo.num_pending_packets = min_t(int, num_pending_packets, S16_MAX); in gve_tx_alloc_ring_dqo()
|
/linux/drivers/net/ethernet/mellanox/mlxsw/ |
H A D | spectrum_ptp.c | 394 if (delta < S16_MIN || delta > S16_MAX) { in mlxsw_sp2_ptp_adjtime()
|