Home
last modified time | relevance | path

Searched refs:temp_hyst (Results 1 – 10 of 10) sorted by relevance

/linux/drivers/hwmon/
H A Dnct6694-hwmon.c323 unsigned char temp_en, temp_hyst; in nct6694_temp_read() local
381 temp_hyst = FIELD_GET(NCT6694_TIN_HYST_MASK, in nct6694_temp_read()
383 *val = temp_from_reg(temp_max - temp_hyst); in nct6694_temp_read()
579 unsigned char temp_hyst; in nct6694_temp_write() local
632 temp_hyst = temp_max - temp_to_reg(val); in nct6694_temp_write()
633 temp_hyst = clamp_val(temp_hyst, 0, 7); in nct6694_temp_write()
636 FIELD_PREP(NCT6694_TIN_HYST_MASK, temp_hyst); in nct6694_temp_write()
H A Dvia686a.c319 u8 temp_hyst[3]; /* Register value */ member
374 data->temp_hyst[i] = in via686a_update_device()
510 return sprintf(buf, "%ld\n", TEMP_FROM_REG(data->temp_hyst[nr])); in temp_hyst_show()
546 data->temp_hyst[nr] = TEMP_TO_REG(val); in temp_hyst_store()
548 data->temp_hyst[nr]); in temp_hyst_store()
555 static SENSOR_DEVICE_ATTR_RW(temp1_max_hyst, temp_hyst, 0);
558 static SENSOR_DEVICE_ATTR_RW(temp2_max_hyst, temp_hyst, 1);
561 static SENSOR_DEVICE_ATTR_RW(temp3_max_hyst, temp_hyst, 2);
H A Dlm77.c216 static SENSOR_DEVICE_ATTR_RW(temp1_crit_hyst, temp_hyst, t_crit);
217 static SENSOR_DEVICE_ATTR_RO(temp1_min_hyst, temp_hyst, t_min);
218 static SENSOR_DEVICE_ATTR_RO(temp1_max_hyst, temp_hyst, t_max);
H A Dsis5595.c184 s8 temp_hyst; /* Register value */ member
243 data->temp_hyst = in sis5595_update_device()
383 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_hyst)); in temp1_max_hyst_show()
399 data->temp_hyst = TEMP_TO_REG(val); in temp1_max_hyst_store()
400 sis5595_write_value(data, SIS5595_REG_TEMP_HYST, data->temp_hyst); in temp1_max_hyst_store()
H A Dlm78.c130 s8 temp_hyst; /* Register value */ member
266 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_hyst)); in temp1_max_hyst_show()
282 data->temp_hyst = TEMP_TO_REG(val); in temp1_max_hyst_store()
283 lm78_write_value(data, LM78_REG_TEMP_HYST, data->temp_hyst); in temp1_max_hyst_store()
758 data->temp_hyst = in lm78_update_device()
H A Dgl518sm.c122 u8 temp_hyst; /* Register values */ member
189 data->temp_hyst = in gl518_update_device()
236 show(TEMP, temp_hyst1, temp_hyst);
327 set(TEMP, temp_hyst1, temp_hyst, GL518_REG_TEMP_HYST);
H A Dvt1211.c117 u8 temp_hyst[7]; member
289 data->temp_hyst[ix] = vt1211_read8(data, in vt1211_update_device()
443 res = temp_from_reg(ix, data->temp_hyst[ix]); in show_temp()
479 data->temp_hyst[ix] = TEMP_TO_REG(ix, val); in set_temp()
481 data->temp_hyst[ix]); in set_temp()
H A Dasb100.c197 u16 temp_hyst[4]; /* Register value (0 and 3 are u8 only) */ member
427 show_temp_reg(temp_hyst);
456 set_temp_reg(HYST, temp_hyst);
972 data->temp_hyst[i-1] = asb100_read_value(client, in asb100_update_device()
H A Df71805f.c185 u8 temp_hyst[3]; member
361 data->temp_hyst[nr] = f71805f_read8(data, in f71805f_update_device()
886 return sprintf(buf, "%ld\n", temp_from_reg(data->temp_hyst[nr])); in show_temp_hyst()
935 data->temp_hyst[nr] = temp_to_reg(val); in set_temp_hyst()
936 f71805f_write8(data, F71805F_REG_TEMP_HYST(nr), data->temp_hyst[nr]); in set_temp_hyst()
H A Dlm90.c763 u8 temp_hyst; member
1005 data->temp_hyst = val; in lm90_update_limits()
1439 return temp - data->temp_hyst * 1000; in lm90_get_temphyst()
1448 data->temp_hyst = clamp_val(DIV_ROUND_CLOSEST(temp - val, 1000), 0, 31); in lm90_set_temphyst()
1450 return lm90_write_reg(data->client, LM90_REG_TCRIT_HYST, data->temp_hyst); in lm90_set_temphyst()