Home
last modified time | relevance | path

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

/drivers/hwmon/
Demc1403.c130 int hyst; in show_hyst() local
137 hyst = i2c_smbus_read_byte_data(client, 0x21); in show_hyst()
138 if (hyst < 0) in show_hyst()
140 data->cached_hyst = hyst; in show_hyst()
153 int hyst; in store_hyst() local
164 hyst = val - retval * 1000; in store_hyst()
165 hyst = DIV_ROUND_CLOSEST(hyst, 1000); in store_hyst()
166 if (hyst < 0 || hyst > 255) { in store_hyst()
171 retval = i2c_smbus_write_byte_data(client, 0x21, hyst); in store_hyst()
174 data->cached_hyst = hyst; in store_hyst()
Djc42.c284 int temp, hyst; in show_temp_crit_hyst() local
290 hyst = jc42_hysteresis[(data->config >> JC42_CFG_HYST_SHIFT) in show_temp_crit_hyst()
292 return sprintf(buf, "%d\n", temp - hyst); in show_temp_crit_hyst()
299 int temp, hyst; in show_temp_max_hyst() local
305 hyst = jc42_hysteresis[(data->config >> JC42_CFG_HYST_SHIFT) in show_temp_max_hyst()
307 return sprintf(buf, "%d\n", temp - hyst); in show_temp_max_hyst()
346 int diff, hyst; in set_temp_crit_hyst() local
354 hyst = 0; in set_temp_crit_hyst()
357 hyst = 1; /* 1.5 degrees C */ in set_temp_crit_hyst()
359 hyst = 2; /* 3.0 degrees C */ in set_temp_crit_hyst()
[all …]
Dlm75.c249 int conf, hyst, os; in lm75_detect() local
295 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect()
299 hyst = i2c_smbus_read_byte_data(new_client, 2); in lm75_detect()
300 if (i2c_smbus_read_byte_data(new_client, 4) != hyst in lm75_detect()
301 || i2c_smbus_read_byte_data(new_client, 5) != hyst in lm75_detect()
302 || i2c_smbus_read_byte_data(new_client, 6) != hyst in lm75_detect()
303 || i2c_smbus_read_byte_data(new_client, 7) != hyst) in lm75_detect()
316 || i2c_smbus_read_byte_data(new_client, i + 2) != hyst in lm75_detect()
Dlm77.c274 int i, cur, conf, hyst, crit, min, max; in lm77_detect() local
297 hyst = i2c_smbus_read_word_data(new_client, 2); in lm77_detect()
303 || i2c_smbus_read_word_data(new_client, i + 2) != hyst in lm77_detect()
312 || ((hyst & 0x00f0) != 0xf0 && (hyst & 0x00f0) != 0x0) in lm77_detect()
327 hyst = i2c_smbus_read_word_data(new_client, 2); in lm77_detect()
328 if (i2c_smbus_read_word_data(new_client, 6) != hyst in lm77_detect()
329 || i2c_smbus_read_word_data(new_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()
1697 data->zone[0].hyst = i >> 4; in lm85_update_device()
1698 data->zone[1].hyst = i & 0x0f; in lm85_update_device()
1701 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.c335 int hyst = SENSORS_LIMIT((val + 500) / 1000, 0, 15); in TEMP_HYST_TO_REG() local
337 return (ix == 1) ? (reg & 0xf0) | hyst : (reg & 0x0f) | (hyst << 4); in TEMP_HYST_TO_REG()
Dlm93.c534 static u8 LM93_AUTO_BOOST_HYST_TO_REG(struct lm93_data *data, long hyst, in LM93_AUTO_BOOST_HYST_TO_REG() argument
538 (LM93_TEMP_FROM_REG(data->boost[nr]) - hyst), mode); in LM93_AUTO_BOOST_HYST_TO_REG()
/drivers/input/misc/
Dbma150.c253 u8 enable, u8 hyst, u8 dur, u8 thres) in bma150_set_low_g_interrupt() argument
257 error = bma150_set_reg_bits(bma150->client, hyst, in bma150_set_low_g_interrupt()
277 u8 enable, u8 hyst, u8 dur, u8 thres) in bma150_set_high_g_interrupt() argument
281 error = bma150_set_reg_bits(bma150->client, hyst, in bma150_set_high_g_interrupt()
/drivers/net/wireless/wl12xx/
Dacx.c1241 bool enable, s16 thold, u8 hyst) in wl1271_acx_rssi_snr_trigger() argument
1268 acx->hysteresis = hyst; in wl1271_acx_rssi_snr_trigger()
Dacx.h1290 bool enable, s16 thold, u8 hyst);
/drivers/net/wireless/
Drndis_wlan.c3195 int thold, hyst, last_event; in rndis_do_cqm() local
3204 hyst = priv->cqm_rssi_hyst; in rndis_do_cqm()
3206 if (rssi < thold && (last_event == 0 || rssi < last_event - hyst)) in rndis_do_cqm()
3208 else if (rssi > thold && (last_event == 0 || rssi > last_event + hyst)) in rndis_do_cqm()