/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()
|
/drivers/gpu/drm/mediatek/ |
D | mtk_dp.c | 97 unsigned short max_val; member 152 .max_val = 0x1e, 160 .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, [all …]
|
/drivers/hwmon/ |
D | tmp513.c | 245 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()
|
/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()
|
/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()
|
/drivers/net/wireless/broadcom/b43/ |
D | phy_g.h | 79 u8 max_val; member 100 u8 max_val; member
|
D | phy_g.c | 116 list->max_val = 9; in generate_rfatt_list() 124 list->max_val = 14; in generate_rfatt_list() 131 list->max_val = 9; in generate_rfatt_list() 152 list->max_val = 8; in generate_bbatt_list() 2777 const int rf_max = lo->rfatt_list.max_val; in b43_put_attenuation_into_ranges() 2779 const int bb_max = lo->bbatt_list.max_val; in b43_put_attenuation_into_ranges()
|
/drivers/misc/lis3lv02d/ |
D | lis3lv02d.c | 684 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()
|
/drivers/firmware/arm_scmi/ |
D | powercap.c | 164 scmi_powercap_validate(unsigned int min_val, unsigned int max_val, in scmi_powercap_validate() argument 167 if (!min_val || !max_val) in scmi_powercap_validate() 170 if ((configurable && min_val == max_val) || in scmi_powercap_validate() 171 (!configurable && min_val != max_val)) in scmi_powercap_validate() 174 if (min_val != max_val && !step_val) in scmi_powercap_validate()
|
/drivers/video/backlight/ |
D | pwm_bl.c | 387 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()
|
/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()
|
/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()
|
/drivers/net/ethernet/broadcom/bnxt/ |
D | bnxt_devlink.c | 1150 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()
|
/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()
|
/drivers/accel/habanalabs/gaudi2/ |
D | gaudi2P.h | 608 u64 max_val);
|
D | gaudi2_security.c | 2828 u64 max_val) in gaudi2_write_rr_to_all_lbw_rtrs() argument 2852 rr_cfg.max = max_val; in gaudi2_write_rr_to_all_lbw_rtrs() 3056 u64 min_val, u64 max_val) in gaudi2_write_hbw_rr_to_all_mstr_if() argument 3080 rr_cfg.max = max_val; in gaudi2_write_hbw_rr_to_all_mstr_if()
|
/drivers/net/ethernet/netronome/nfp/ |
D | nfp_main.c | 447 const char *key, const char *default_val, int max_val, in nfp_get_fw_policy_value() argument 461 if (err || hi_val < 0 || hi_val > max_val) { in nfp_get_fw_policy_value()
|
/drivers/net/wireless/broadcom/brcm80211/brcmsmac/phy/ |
D | phy_int.h | 972 void wlc_lcnphy_start_tx_tone(struct brcms_phy *pi, s32 f_kHz, u16 max_val, 1105 int wlc_phy_tx_tone_nphy(struct brcms_phy *pi, u32 f_kHz, u16 max_val, u8 mode,
|
/drivers/net/wireless/ti/wlcore/ |
D | debugfs.c | 121 min_val, max_val, write_handler_locked, \ argument 147 if (value < min_val || value > max_val) { \
|
/drivers/s390/virtio/ |
D | virtio_ccw.c | 1431 int max_digit, int max_val) in pure_hex() argument 1448 if ((diff < min_digit) || (diff > max_digit) || (*val > max_val)) in pure_hex()
|