Home
last modified time | relevance | path

Searched refs:threshold_hi (Results 1 – 2 of 2) sorted by relevance

/linux/drivers/misc/
H A Dbh1770glc.c301 u16 threshold_hi, u16 threshold_lo) in bh1770_lux_update_thresholds() argument
315 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()
/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_env.c861 int err, threshold_hi; in mlxsw_env_temp_event_set() local
875 &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()