Home
last modified time | relevance | path

Searched refs:hyst (Results 1 – 13 of 13) sorted by relevance

/drivers/hwmon/
Dadt7x10.c82 u8 hyst; /* hysteresis offset */ member
206 data->hyst = ret; in adt7x10_fill_cache()
283 int hyst; in adt7x10_show_t_hyst() local
285 hyst = (data->hyst & ADT7X10_T_HYST_MASK) * 1000; in adt7x10_show_t_hyst()
292 hyst = -hyst; in adt7x10_show_t_hyst()
294 ADT7X10_REG_TO_TEMP(data, data->temp[nr]) - hyst); in adt7x10_show_t_hyst()
303 long hyst; in adt7x10_set_t_hyst() local
305 ret = kstrtol(buf, 10, &hyst); in adt7x10_set_t_hyst()
310 hyst = clamp_val(hyst, ADT7X10_TEMP_MIN, ADT7X10_TEMP_MAX); in adt7x10_set_t_hyst()
311 data->hyst = clamp_val(DIV_ROUND_CLOSEST(limit - hyst, 1000), in adt7x10_set_t_hyst()
[all …]
Demc1403.c131 int hyst; in show_hyst() local
138 hyst = i2c_smbus_read_byte_data(client, 0x21); in show_hyst()
139 if (hyst < 0) in show_hyst()
141 data->cached_hyst = hyst; in show_hyst()
154 int hyst; in store_hyst() local
165 hyst = val - retval * 1000; in store_hyst()
166 hyst = DIV_ROUND_CLOSEST(hyst, 1000); in store_hyst()
167 if (hyst < 0 || hyst > 255) { in store_hyst()
172 retval = i2c_smbus_write_byte_data(client, 0x21, hyst); in store_hyst()
175 data->cached_hyst = hyst; in store_hyst()
Djc42.c288 int temp, hyst; in show_temp_crit_hyst() local
294 hyst = jc42_hysteresis[(data->config & JC42_CFG_HYST_MASK) in show_temp_crit_hyst()
296 return sprintf(buf, "%d\n", temp - hyst); in show_temp_crit_hyst()
303 int temp, hyst; in show_temp_max_hyst() local
309 hyst = jc42_hysteresis[(data->config & JC42_CFG_HYST_MASK) in show_temp_max_hyst()
311 return sprintf(buf, "%d\n", temp - hyst); in show_temp_max_hyst()
350 int diff, hyst; in set_temp_crit_hyst() local
358 hyst = 0; in set_temp_crit_hyst()
361 hyst = 1; /* 1.5 degrees C */ in set_temp_crit_hyst()
363 hyst = 2; /* 3.0 degrees C */ in set_temp_crit_hyst()
[all …]
Dlm75.c324 int conf, hyst, os; in lm75_detect() local
370 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect()
374 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect()
375 if (i2c_smbus_read_byte_data(new_client, 4) != hyst in lm75_detect()
376 || i2c_smbus_read_byte_data(new_client, 5) != hyst in lm75_detect()
377 || i2c_smbus_read_byte_data(new_client, 6) != hyst in lm75_detect()
378 || i2c_smbus_read_byte_data(new_client, 7) != hyst) in lm75_detect()
391 || i2c_smbus_read_byte_data(new_client, i + 2) != hyst in lm75_detect()
Dlm77.c273 int i, cur, conf, hyst, crit, min, max; in lm77_detect() local
296 hyst = i2c_smbus_read_word_data(client, 2); in lm77_detect()
302 || i2c_smbus_read_word_data(client, i + 2) != hyst in lm77_detect()
311 || ((hyst & 0x00f0) != 0xf0 && (hyst & 0x00f0) != 0x0) in lm77_detect()
326 hyst = i2c_smbus_read_word_data(client, 2); in lm77_detect()
327 if (i2c_smbus_read_word_data(client, 6) != hyst in lm77_detect()
328 || i2c_smbus_read_word_data(client, 7) != hyst) in lm77_detect()
Dlm85.c288 u8 hyst; /* Low limit hysteresis. (0-15) */ member
952 HYST_FROM_REG(data->zone[nr].hyst)); in show_temp_auto_temp_off()
971 data->zone[nr].hyst = HYST_TO_REG(min - val); in set_temp_auto_temp_off()
974 (data->zone[0].hyst << 4) in set_temp_auto_temp_off()
975 | data->zone[1].hyst); in set_temp_auto_temp_off()
978 (data->zone[2].hyst << 4)); in set_temp_auto_temp_off()
1694 data->zone[0].hyst = i >> 4; in lm85_update_device()
1695 data->zone[1].hyst = i & 0x0f; in lm85_update_device()
1698 data->zone[2].hyst = i >> 4; in lm85_update_device()
Dlm63.c643 long hyst; in set_temp2_crit_hyst() local
650 hyst = temp8_from_reg(data, 2) + data->temp2_offset - val; in set_temp2_crit_hyst()
652 HYST_TO_REG(hyst)); in set_temp2_crit_hyst()
Ddme1737.c336 int hyst = clamp_val((val + 500) / 1000, 0, 15); in TEMP_HYST_TO_REG() local
338 return (ix == 1) ? (reg & 0xf0) | hyst : (reg & 0x0f) | (hyst << 4); in TEMP_HYST_TO_REG()
Dlm93.c535 static u8 LM93_AUTO_BOOST_HYST_TO_REG(struct lm93_data *data, long hyst, in LM93_AUTO_BOOST_HYST_TO_REG() argument
539 (LM93_TEMP_FROM_REG(data->boost[nr]) - hyst), mode); in LM93_AUTO_BOOST_HYST_TO_REG()
/drivers/input/misc/
Dbma150.c241 u8 enable, u8 hyst, u8 dur, u8 thres) in bma150_set_low_g_interrupt() argument
245 error = bma150_set_reg_bits(bma150->client, hyst, in bma150_set_low_g_interrupt()
265 u8 enable, u8 hyst, u8 dur, u8 thres) in bma150_set_high_g_interrupt() argument
269 error = bma150_set_reg_bits(bma150->client, hyst, in bma150_set_high_g_interrupt()
/drivers/net/wireless/
Drndis_wlan.c3166 int thold, hyst, last_event; in rndis_do_cqm() local
3175 hyst = priv->cqm_rssi_hyst; in rndis_do_cqm()
3177 if (rssi < thold && (last_event == 0 || rssi < last_event - hyst)) in rndis_do_cqm()
3179 else if (rssi > thold && (last_event == 0 || rssi > last_event + hyst)) in rndis_do_cqm()
/drivers/net/wireless/ti/wlcore/
Dacx.c1225 bool enable, s16 thold, u8 hyst) in wl1271_acx_rssi_snr_trigger() argument
1252 acx->hysteresis = hyst; in wl1271_acx_rssi_snr_trigger()
Dacx.h1102 bool enable, s16 thold, u8 hyst);