Home
last modified time | relevance | path

Searched refs:S16_MAX (Results 1 – 25 of 32) sorted by relevance

12

/linux/lib/
H A Doverflow_kunit.c180 {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 Dnlattr.c252 range->max = S16_MAX; in nla_get_range_signed()
/linux/include/linux/
H A Dlimits.h19 #define S16_MAX ((s16)(U16_MAX >> 1)) macro
20 #define S16_MIN ((s16)(-S16_MAX - 1))
/linux/drivers/iio/adc/
H A Dad4695.c759 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 Datomic_ops.h26 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 Dbitset.h6 #define ETHNL_MAX_BITSET_SIZE S16_MAX
/linux/drivers/hwmon/
H A Dina238.c230 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 Dtmp117.c101 off = clamp_t(int, val, S16_MIN, S16_MAX); in tmp117_write_raw()
H A Dmlx90632.c601 if (read > S16_MAX || read < S16_MIN) in mlx90632_read_object_raw_extended()
/linux/arch/arm64/kernel/
H A Dmodule.c76 if (sval < S16_MIN || sval > S16_MAX) in reloc_data()
/linux/drivers/rtc/
H A Drtc-tps6594.c222 if (calibration < S16_MIN + 1 || calibration > S16_MAX) in tps6594_rtc_set_calibration()
/linux/drivers/media/platform/mediatek/vcodec/decoder/vdec/
H A Dvdec_av1_req_lat_if.c1112 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 Datmel-pdmic.c47 #define PDMIC_OFFSET_MAX_VAL S16_MAX
/linux/drivers/hid/
H A Dhid-playstation.c1031 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 Dtt.c652 if ((temp / 1000) > S16_MAX) in iwl_mvm_tzone_set_trip_temp()
/linux/drivers/iio/accel/
H A Dadxl355_core.c576 calibbias = clamp_t(int, val, S16_MIN, S16_MAX); in adxl355_write_raw()
/linux/drivers/media/platform/verisilicon/
H A Drockchip_vpu981_hw_av1_dec.c486 *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 Dlog.c556 #define SNUM_MAX_DECIMAL S16_MAX
H A Dcore.c393 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 Dxe_migrate.c672 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 Dintel_migrate.c926 GEM_BUG_ON(size >> PAGE_SHIFT > S16_MAX); in emit_clear()
/linux/tools/testing/selftests/bpf/prog_tests/
H A Dreg_bounds.c22 #define S16_MAX ((s16)0x7fffffff) macro
145 #define SNUM_MAX_DECIMAL S16_MAX
/linux/drivers/net/ethernet/mellanox/mlx5/core/lib/
H A Dclock.c75 MLX5_MTUTC_OPERATION_ADJUST_TIME_MAX = S16_MAX,
/linux/drivers/net/ethernet/google/gve/
H A Dgve_tx_dqo.c323 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 Dspectrum_ptp.c394 if (delta < S16_MIN || delta > S16_MAX) { in mlxsw_sp2_ptp_adjtime()

12