Home
last modified time | relevance | path

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

123

/linux-6.6.21/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.c156 u8 temp_max[6]; /* Register value */ member
213 data->temp_max[i] = vt8231_read_value(data, in vt8231_update_device()
417 return sprintf(buf, "%d\n", data->temp_max[0] * 1000); in temp1_max_show()
440 data->temp_max[0] = clamp_val((val + 500) / 1000, 0, 255); in temp1_max_store()
441 vt8231_write_value(data, regtempmax[0], data->temp_max[0]); in temp1_max_store()
479 return sprintf(buf, "%d\n", TEMP_MAXMIN_FROM_REG(data->temp_max[nr])); in temp_max_show()
506 data->temp_max[nr] = clamp_val(TEMP_MAXMIN_TO_REG(val), 0, 255); in temp_max_store()
507 vt8231_write_value(data, regtempmax[nr], data->temp_max[nr]); in temp_max_store()
542 static SENSOR_DEVICE_ATTR_RW(temp2_max, temp_max, 1);
545 static SENSOR_DEVICE_ATTR_RW(temp3_max, temp_max, 2);
[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()
447 data->temp_max[nr] = AUTO_TEMP_MAX_TO_REG(val, data->auto_temp[nr], in auto_temp_max_store()
450 data->temp_max[nr]); in auto_temp_max_store()
696 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in temp_max_show()
765 data->temp_max[nr] = TEMP_TO_REG(val); in temp_max_store()
767 data->temp_max[nr]); in temp_max_store()
797 static SENSOR_DEVICE_ATTR_RW(temp1_max, temp_max, 0);
802 static SENSOR_DEVICE_ATTR_RW(temp2_max, temp_max, 1);
807 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
416 st->temp_max = temp_from_sct(buf[6]); in drivetemp_identify_sata()
472 *val = st->temp_max; in drivetemp_read()
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,
Dsch5627.c77 u8 temp_max[SCH5627_NO_TEMPS]; member
193 data->temp_max[i] = val; in sch5627_read_limits()
265 *val = reg_to_temp_limit(data->temp_max[channel]); in sch5627_read()
Dpc87360.c219 s8 temp_max[3]; /* Register value */ member
379 data->temp_max[i] = pc87360_read_value(data, in pc87360_update_device()
945 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[attr->index])); in temp_max_show()
962 data->temp_max[attr->index] = TEMP_TO_REG(val); in temp_max_store()
964 data->temp_max[attr->index]); in temp_max_store()
969 static struct sensor_device_attribute temp_max[] = { variable
970 SENSOR_ATTR_RW(temp1_max, temp_max, 0),
971 SENSOR_ATTR_RW(temp2_max, temp_max, 1),
972 SENSOR_ATTR_RW(temp3_max, temp_max, 2),
1084 &temp_max[X].dev_attr.attr, \
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);
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);
/linux-6.6.21/drivers/thermal/
Dimx_thermal.c208 int temp_max; member
444 data->temp_max = 95000; in imx_init_temp_grade()
448 data->temp_max = 105000; in imx_init_temp_grade()
452 data->temp_max = 105000; in imx_init_temp_grade()
456 data->temp_max = 125000; in imx_init_temp_grade()
464 trips[IMX_TRIP_PASSIVE].temperature = data->temp_max - (1000 * 10); in imx_init_temp_grade()
465 trips[IMX_TRIP_CRITICAL].temperature = data->temp_max - (1000 * 5); in imx_init_temp_grade()
715 data->temp_max / 1000, trips[IMX_TRIP_CRITICAL].temperature / 1000, in imx_thermal_probe()
/linux-6.6.21/drivers/power/supply/
Dab8500_bmdata.c226 if (bi->temp_max == INT_MAX) in ab8500_bm_of_probe()
227 bi->temp_max = AB8500_TEMP_OVER; in ab8500_bm_of_probe()
Dsamsung-sdi-battery.c661 .temp_max = 60,
705 .temp_max = 47,
749 .temp_max = 49,
792 .temp_max = 60,
837 .temp_max = 60,
881 .temp_max = 60,
Dmax17042_battery.c216 if (temp > chip->pdata->temp_max) { in max17042_get_battery_health()
384 val->intval = chip->pdata->temp_max; in max17042_get_property()
927 if (of_property_read_s32(np, "maxim,over-heat-temp", &pdata->temp_max)) in max17042_get_of_pdata()
928 pdata->temp_max = INT_MAX; in max17042_get_of_pdata()
982 pdata->temp_max = MAX17042_DEFAULT_TEMP_MAX; in max17042_get_default_pdata()
/linux-6.6.21/include/linux/power/
Dcharger-manager.h187 int temp_max; member
/linux-6.6.21/drivers/hwmon/pmbus/
Dltc2978.c121 u16 temp_min[LTC2974_NUM_PAGES], temp_max[LTC2974_NUM_PAGES]; member
290 &data->temp_max[page]); in ltc2978_read_word_data_common()
522 data->temp_max[page] = 0x7c00; in ltc2978_write_word_data()
729 for (i = 0; i < ARRAY_SIZE(data->temp_max); i++) in ltc2978_probe()
730 data->temp_max[i] = 0x7c00; in ltc2978_probe()
/linux-6.6.21/drivers/hwmon/peci/
Ddimmtemp.c63 long temp_max; member
135 priv->dimm[dimm_no].thresholds.temp_max = GET_TEMP_MAX(data) * MILLIDEGREE_PER_DEGREE; in update_thresholds()
155 *val = priv->dimm[dimm_no].thresholds.temp_max; in get_dimm_thresholds()

123