Home
last modified time | relevance | path

Searched refs:temp_max (Results 1 – 25 of 41) sorted by relevance

12

/drivers/hwmon/
Dfschmd.c279 u8 temp_max[11]; /* high temp limit, notice: undocumented! */ member
353 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[index])); in temp_max_show()
374 data->temp_max[index] = v; in temp_max_store()
608 SENSOR_ATTR_RW(temp1_max, temp_max, 0),
612 SENSOR_ATTR_RW(temp2_max, temp_max, 1),
616 SENSOR_ATTR_RW(temp3_max, temp_max, 2),
620 SENSOR_ATTR_RW(temp4_max, temp_max, 3),
624 SENSOR_ATTR_RW(temp5_max, temp_max, 4),
628 SENSOR_ATTR_RW(temp6_max, temp_max, 5),
632 SENSOR_ATTR_RW(temp7_max, temp_max, 6),
[all …]
Dthmc50.c69 s8 temp_max[3]; member
96 data->temp_max[i] = i2c_smbus_read_byte_data(client, in thmc50_update_device()
206 return sprintf(buf, "%d\n", data->temp_max[nr] * 1000); in temp_max_show()
224 data->temp_max[nr] = clamp_val(val / 1000, -128, 127); in temp_max_store()
226 data->temp_max[nr]); in temp_max_store()
250 static SENSOR_DEVICE_ATTR_RW(temp1_max, temp_max, 0);
254 static SENSOR_DEVICE_ATTR_RW(temp2_max, temp_max, 1);
258 static SENSOR_DEVICE_ATTR_RW(temp3_max, temp_max, 2);
Dadm1021.c79 int temp_max[2]; /* Register values */ member
108 data->temp_max[i] = 1000 * in adm1021_update_device()
126 data->temp_max[1] += 125 * (i2c_smbus_read_byte_data( in adm1021_update_device()
161 return sprintf(buf, "%d\n", data->temp_max[index]); in temp_max_show()
206 data->temp_max[index] = reg_val * 1000; in temp_max_store()
278 static SENSOR_DEVICE_ATTR_RW(temp1_max, temp_max, 0);
281 static SENSOR_DEVICE_ATTR_RW(temp2_max, temp_max, 1);
Dvt8231.c155 u8 temp_max[6]; /* Register value */ member
352 return sprintf(buf, "%d\n", data->temp_max[0] * 1000); in temp1_max_show()
375 data->temp_max[0] = clamp_val((val + 500) / 1000, 0, 255); in temp1_max_store()
376 vt8231_write_value(data, regtempmax[0], data->temp_max[0]); in temp1_max_store()
414 return sprintf(buf, "%d\n", TEMP_MAXMIN_FROM_REG(data->temp_max[nr])); in temp_max_show()
441 data->temp_max[nr] = clamp_val(TEMP_MAXMIN_TO_REG(val), 0, 255); in temp_max_store()
442 vt8231_write_value(data, regtempmax[nr], data->temp_max[nr]); in temp_max_store()
477 static SENSOR_DEVICE_ATTR_RW(temp2_max, temp_max, 1);
480 static SENSOR_DEVICE_ATTR_RW(temp3_max, temp_max, 2);
483 static SENSOR_DEVICE_ATTR_RW(temp4_max, temp_max, 3);
[all …]
Demc2103.c65 s8 temp_max[4]; /* no fractional part */ member
151 &data->temp_max[i]); in emc2103_update_device()
198 int millidegrees = data->temp_max[nr] * 1000; in temp_max_show()
268 data->temp_max[nr] = val; in temp_max_store()
464 static SENSOR_DEVICE_ATTR_RW(temp1_max, temp_max, 0);
471 static SENSOR_DEVICE_ATTR_RW(temp2_max, temp_max, 1);
478 static SENSOR_DEVICE_ATTR_RW(temp3_max, temp_max, 2);
485 static SENSOR_DEVICE_ATTR_RW(temp4_max, temp_max, 3);
Dadm1025.c108 s8 temp_max[2]; /* register value */ member
138 data->temp_max[i] = i2c_smbus_read_byte_data(client, in adm1025_update_device()
211 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[index])); in temp_max_show()
312 data->temp_max[index] = TEMP_TO_REG(val); in temp_max_store()
314 data->temp_max[index]); in temp_max_store()
321 static SENSOR_DEVICE_ATTR_RW(temp1_max, temp_max, 0);
324 static SENSOR_DEVICE_ATTR_RW(temp2_max, temp_max, 1);
Dsmsc47m192.c96 s8 temp_max[3]; /* Register value */ member
129 data->temp_max[i] = i2c_smbus_read_byte_data(client, in smsc47m192_update_device()
290 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in temp_max_show()
332 data->temp_max[nr] = TEMP_TO_REG(val); in temp_max_store()
334 data->temp_max[nr]); in temp_max_store()
388 static SENSOR_DEVICE_ATTR_RW(temp1_max, temp_max, 0);
392 static SENSOR_DEVICE_ATTR_RW(temp2_max, temp_max, 1);
396 static SENSOR_DEVICE_ATTR_RW(temp3_max, temp_max, 2);
Dmax1668.c65 s8 temp_max[5]; member
98 data->temp_max[i] = (s8) val; in max1668_update_device()
151 return sprintf(buf, "%d\n", data->temp_max[index] * 1000); in show_temp_max()
206 data->temp_max[index] = clamp_val(temp/1000, -128, 127); in set_temp_max()
209 data->temp_max[index]); in set_temp_max()
Dadm1031.c92 s8 temp_max[3]; member
154 data->temp_max[chan] = in adm1031_update_device()
448 data->temp_max[nr] = AUTO_TEMP_MAX_TO_REG(val, data->auto_temp[nr], in auto_temp_max_store()
451 data->temp_max[nr]); in auto_temp_max_store()
697 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in temp_max_show()
766 data->temp_max[nr] = TEMP_TO_REG(val); in temp_max_store()
768 data->temp_max[nr]); in temp_max_store()
798 static SENSOR_DEVICE_ATTR_RW(temp1_max, temp_max, 0);
803 static SENSOR_DEVICE_ATTR_RW(temp2_max, temp_max, 1);
808 static SENSOR_DEVICE_ATTR_RW(temp3_max, temp_max, 2);
Dgl520sm.c80 u8 temp_max[2]; member
144 data->temp_max[0] = gl520_read_value(client, in gl520_update_device()
163 data->temp_max[1] = gl520_read_value(client, in gl520_update_device()
516 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[n])); in temp_max_show()
543 data->temp_max[n] = TEMP_TO_REG(v); in temp_max_store()
544 gl520_write_value(client, GL520_REG_TEMP_MAX[n], data->temp_max[n]); in temp_max_store()
573 static SENSOR_DEVICE_ATTR_RW(temp1_max, temp_max, 0);
574 static SENSOR_DEVICE_ATTR_RW(temp2_max, temp_max, 1);
Dpc87427.c66 s8 temp_max[6]; /* register values */ member
309 data->temp_max[nr] = inb(iobase + PC87427_REG_TEMP_MAX); in pc87427_readall_temp()
715 return sprintf(buf, "%ld\n", temp_from_reg8(data->temp_max[nr])); in temp_max_show()
793 static SENSOR_DEVICE_ATTR_RO(temp1_max, temp_max, 0);
794 static SENSOR_DEVICE_ATTR_RO(temp2_max, temp_max, 1);
795 static SENSOR_DEVICE_ATTR_RO(temp3_max, temp_max, 2);
796 static SENSOR_DEVICE_ATTR_RO(temp4_max, temp_max, 3);
797 static SENSOR_DEVICE_ATTR_RO(temp5_max, temp_max, 4);
798 static SENSOR_DEVICE_ATTR_RO(temp6_max, temp_max, 5);
Ddrivetemp.c126 int temp_max; /* max temp */ member
417 st->temp_max = temp_from_sct(buf[6]); in drivetemp_identify_sata()
473 *val = st->temp_max; in drivetemp_read()
Dsch5627.c68 u8 temp_max[SCH5627_NO_TEMPS]; member
183 data->temp_max[i] = val; in sch5627_read_limits()
244 *val = reg_to_temp_limit(data->temp_max[channel]); in sch5627_read()
Dpc87360.c207 s8 temp_max[3]; /* Register value */ member
865 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[attr->index])); in temp_max_show()
920 data->temp_max[attr->index] = TEMP_TO_REG(val); in temp_max_store()
922 data->temp_max[attr->index]); in temp_max_store()
963 static struct sensor_device_attribute temp_max[] = { variable
964 SENSOR_ATTR_RW(temp1_max, temp_max, 0),
965 SENSOR_ATTR_RW(temp2_max, temp_max, 1),
966 SENSOR_ATTR_RW(temp3_max, temp_max, 2),
1056 &temp_max[X].dev_attr.attr, \
1661 data->temp_max[i] = pc87360_read_value(data, in pc87360_update_device()
Dlm85.c306 s8 temp_max[3]; /* Register value */ member
504 data->temp_max[i] = in lm85_update_device()
521 data->temp_max[i] -= 64; in lm85_update_device()
981 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in temp_max_show()
1002 data->temp_max[nr] = TEMP_TO_REG(val); in temp_max_store()
1003 lm85_write_value(client, LM85_REG_TEMP_MAX(nr), data->temp_max[nr]); in temp_max_store()
1010 static SENSOR_DEVICE_ATTR_RW(temp1_max, temp_max, 0);
1013 static SENSOR_DEVICE_ATTR_RW(temp2_max, temp_max, 1);
1016 static SENSOR_DEVICE_ATTR_RW(temp3_max, temp_max, 2);
Dmax6642.c246 static SENSOR_DEVICE_ATTR_2_RW(temp1_max, temp_max, 0,
248 static SENSOR_DEVICE_ATTR_2_RW(temp2_max, temp_max, 1,
Dgl518sm.c121 u8 temp_max; /* Register values */ member
187 data->temp_max = in gl518_update_device()
235 show(TEMP, temp_max1, temp_max);
326 set(TEMP, temp_max1, temp_max, GL518_REG_TEMP_MAX);
Dadt7462.c203 u8 temp_max[ADT7462_TEMP_COUNT]; member
737 data->temp_max[i] = i2c_smbus_read_byte_data(client, in adt7462_update_device()
823 return sprintf(buf, "%d\n", 1000 * (data->temp_max[attr->index] - 64)); in temp_max_show()
842 data->temp_max[attr->index] = temp; in temp_max_store()
1396 static SENSOR_DEVICE_ATTR_RW(temp1_max, temp_max, 0);
1397 static SENSOR_DEVICE_ATTR_RW(temp2_max, temp_max, 1);
1398 static SENSOR_DEVICE_ATTR_RW(temp3_max, temp_max, 2);
1399 static SENSOR_DEVICE_ATTR_RW(temp4_max, temp_max, 3);
Dw83627hf.c367 u16 temp_max[3]; /* Register value */ member
437 data->temp_max[i]); in w83627hf_resume()
727 u16 tmp = data->temp_max[nr]; in temp_max_show()
760 data->temp_max[nr] = tmp; in temp_max_store()
789 static SENSOR_DEVICE_ATTR_RW(temp1_max, temp_max, 0);
792 static SENSOR_DEVICE_ATTR_RW(temp2_max, temp_max, 1);
795 static SENSOR_DEVICE_ATTR_RW(temp3_max, temp_max, 2);
1891 data->temp_max[i] = w83627hf_read_value( in w83627hf_update_device()
Dvt1211.c116 u8 temp_max[7]; member
276 data->temp_max[ix] = vt1211_read8(data, in vt1211_update_device()
429 res = TEMP_FROM_REG(ix, data->temp_max[ix]); in show_temp()
463 data->temp_max[ix] = TEMP_TO_REG(ix, val); in set_temp()
465 data->temp_max[ix]); in set_temp()
Dadm1026.c271 s8 temp_max[3]; /* Register value */ member
406 data->temp_max[i] = adm1026_read_value(client, in adm1026_update_device()
835 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in temp_max_show()
853 data->temp_max[nr] = TEMP_TO_REG(val); in temp_max_store()
855 data->temp_max[nr]); in temp_max_store()
862 static SENSOR_DEVICE_ATTR_RW(temp1_max, temp_max, 0);
865 static SENSOR_DEVICE_ATTR_RW(temp2_max, temp_max, 1);
868 static SENSOR_DEVICE_ATTR_RW(temp3_max, temp_max, 2);
Dasb100.c196 u16 temp_max[4]; /* Register value (0 and 3 are u8 only) */ member
426 show_temp_reg(temp_max);
455 set_temp_reg(MAX, temp_max);
972 data->temp_max[i-1] = asb100_read_value(client, in asb100_update_device()
/drivers/thermal/
Dimx_thermal.c206 int temp_max; member
490 data->temp_max = 95000; in imx_init_temp_grade()
494 data->temp_max = 105000; in imx_init_temp_grade()
498 data->temp_max = 105000; in imx_init_temp_grade()
502 data->temp_max = 125000; in imx_init_temp_grade()
510 data->temp_critical = data->temp_max - (1000 * 5); in imx_init_temp_grade()
511 data->temp_passive = data->temp_max - (1000 * 10); in imx_init_temp_grade()
761 data->temp_max / 1000, data->temp_critical / 1000, in imx_thermal_probe()
/drivers/hwmon/pmbus/
Dltc2978.c121 u16 temp_min[LTC2974_NUM_PAGES], temp_max[LTC2974_NUM_PAGES]; member
279 &data->temp_max[page]); in ltc2978_read_word_data_common()
511 data->temp_max[page] = 0x7c00; in ltc2978_write_word_data()
697 for (i = 0; i < ARRAY_SIZE(data->temp_max); i++) in ltc2978_probe()
698 data->temp_max[i] = 0x7c00; in ltc2978_probe()
/drivers/power/supply/
Dmax17042_battery.c215 if (temp > chip->pdata->temp_max) { in max17042_get_battery_health()
383 val->intval = chip->pdata->temp_max; in max17042_get_property()
931 if (of_property_read_s32(np, "maxim,over-heat-temp", &pdata->temp_max)) in max17042_get_of_pdata()
932 pdata->temp_max = INT_MAX; in max17042_get_of_pdata()
986 pdata->temp_max = MAX17042_DEFAULT_TEMP_MAX; in max17042_get_default_pdata()

12