Searched refs:threshold_hi (Results 1 – 2 of 2) sorted by relevance
301 u16 threshold_hi, u16 threshold_lo) in bh1770_lux_update_thresholds() argument315 if (threshold_hi != BH1770_LUX_RANGE && threshold_hi != 0) in bh1770_lux_update_thresholds()316 threshold_hi = bh1770_lux_adjusted_to_raw(chip, threshold_hi); in bh1770_lux_update_thresholds()321 if (chip->lux_thres_hi_onchip == threshold_hi && in bh1770_lux_update_thresholds()325 chip->lux_thres_hi_onchip = threshold_hi; in bh1770_lux_update_thresholds()328 data[0] = threshold_hi; in bh1770_lux_update_thresholds()329 data[1] = threshold_hi >> 8; in bh1770_lux_update_thresholds()
861 int err, threshold_hi; in mlxsw_env_temp_event_set() local875 &threshold_hi); in mlxsw_env_temp_event_set()880 threshold_hi = MLXSW_REG_MTMP_THRESH_HI; in mlxsw_env_temp_event_set()887 threshold_hi = threshold_hi / 1000 * 8; in mlxsw_env_temp_event_set()889 mlxsw_reg_mtmp_temperature_threshold_hi_set(mtmp_pl, threshold_hi); in mlxsw_env_temp_event_set()890 mlxsw_reg_mtmp_temperature_threshold_lo_set(mtmp_pl, threshold_hi - in mlxsw_env_temp_event_set()