/drivers/hwmon/ |
D | fschmd.c | 280 u8 temp_max[11]; /* high temp limit, notice: undocumented! */ member 354 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[index])); in temp_max_show() 375 data->temp_max[index] = v; in temp_max_store() 609 SENSOR_ATTR_RW(temp1_max, temp_max, 0), 613 SENSOR_ATTR_RW(temp2_max, temp_max, 1), 617 SENSOR_ATTR_RW(temp3_max, temp_max, 2), 621 SENSOR_ATTR_RW(temp4_max, temp_max, 3), 625 SENSOR_ATTR_RW(temp5_max, temp_max, 4), 629 SENSOR_ATTR_RW(temp6_max, temp_max, 5), 633 SENSOR_ATTR_RW(temp7_max, temp_max, 6), [all …]
|
D | sch5627.c | 71 u8 temp_max[SCH5627_NO_TEMPS]; member 156 data->temp_max[i] = val; in sch5627_read_limits() 234 val = reg_to_temp_limit(data->temp_max[attr->index]); in temp_max_show() 333 static SENSOR_DEVICE_ATTR_RO(temp1_max, temp_max, 0); 334 static SENSOR_DEVICE_ATTR_RO(temp2_max, temp_max, 1); 335 static SENSOR_DEVICE_ATTR_RO(temp3_max, temp_max, 2); 336 static SENSOR_DEVICE_ATTR_RO(temp4_max, temp_max, 3); 337 static SENSOR_DEVICE_ATTR_RO(temp5_max, temp_max, 4); 338 static SENSOR_DEVICE_ATTR_RO(temp6_max, temp_max, 5); 339 static SENSOR_DEVICE_ATTR_RO(temp7_max, temp_max, 6); [all …]
|
D | thmc50.c | 69 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);
|
D | adm1021.c | 79 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);
|
D | vt8231.c | 155 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 …]
|
D | emc2103.c | 65 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);
|
D | adm1025.c | 108 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);
|
D | smsc47m192.c | 96 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);
|
D | adt7470.c | 152 s8 temp_max[ADT7470_TEMP_COUNT]; member 365 data->temp_max[i] = i2c_smbus_read_byte_data(client, in adt7470_update_device() 486 return sprintf(buf, "%d\n", 1000 * data->temp_max[attr->index]); in temp_max_show() 505 data->temp_max[attr->index] = temp; in temp_max_store() 983 static SENSOR_DEVICE_ATTR_RW(temp1_max, temp_max, 0); 984 static SENSOR_DEVICE_ATTR_RW(temp2_max, temp_max, 1); 985 static SENSOR_DEVICE_ATTR_RW(temp3_max, temp_max, 2); 986 static SENSOR_DEVICE_ATTR_RW(temp4_max, temp_max, 3); 987 static SENSOR_DEVICE_ATTR_RW(temp5_max, temp_max, 4); 988 static SENSOR_DEVICE_ATTR_RW(temp6_max, temp_max, 5); [all …]
|
D | max1668.c | 65 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()
|
D | adm1031.c | 92 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);
|
D | gl520sm.c | 80 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);
|
D | pc87427.c | 66 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);
|
D | adm9240.c | 138 s8 temp_max[2]; /* rw 0 -> temp_max, 1 -> temp_max_hyst */ member 226 data->temp_max[0] = i2c_smbus_read_byte_data(client, in adm9240_update_device() 228 data->temp_max[1] = i2c_smbus_read_byte_data(client, in adm9240_update_device() 264 return sprintf(buf, "%d\n", data->temp_max[attr->index] * 1000); in max_show() 281 data->temp_max[attr->index] = TEMP_TO_REG(val); in max_store() 283 data->temp_max[attr->index]); in max_store()
|
D | pc87360.c | 207 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()
|
D | lm85.c | 306 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);
|
D | max6642.c | 246 static SENSOR_DEVICE_ATTR_2_RW(temp1_max, temp_max, 0, 248 static SENSOR_DEVICE_ATTR_2_RW(temp2_max, temp_max, 1,
|
D | gl518sm.c | 121 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);
|
D | adt7462.c | 203 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);
|
D | w83627hf.c | 367 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()
|
D | vt1211.c | 116 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()
|
/drivers/platform/mips/ |
D | cpu_hwmon.c | 142 int i, value, temp_max = 0; in do_thermal_timer() local 146 if (value > temp_max) in do_thermal_timer() 147 temp_max = value; in do_thermal_timer() 150 if (temp_max <= CPU_THERMAL_THRESHOLD) in do_thermal_timer()
|
/drivers/thermal/ |
D | imx_thermal.c | 212 int temp_max; member 543 data->temp_max = 95000; in imx_init_temp_grade() 547 data->temp_max = 105000; in imx_init_temp_grade() 551 data->temp_max = 105000; in imx_init_temp_grade() 555 data->temp_max = 125000; in imx_init_temp_grade() 563 data->temp_critical = data->temp_max - (1000 * 5); in imx_init_temp_grade() 564 data->temp_passive = data->temp_max - (1000 * 10); in imx_init_temp_grade() 821 data->temp_max / 1000, data->temp_critical / 1000, in imx_thermal_probe()
|
/drivers/hwmon/pmbus/ |
D | ltc2978.c | 99 u16 temp_min[LTC2974_NUM_PAGES], temp_max[LTC2974_NUM_PAGES]; member 255 &data->temp_max[page]); in ltc2978_read_word_data_common() 481 data->temp_max[page] = 0x7c00; in ltc2978_write_word_data() 635 for (i = 0; i < ARRAY_SIZE(data->temp_max); i++) in ltc2978_probe() 636 data->temp_max[i] = 0x7c00; in ltc2978_probe()
|
/drivers/power/supply/ |
D | max17042_battery.c | 214 if (temp > chip->pdata->temp_max) { in max17042_get_battery_health() 378 val->intval = chip->pdata->temp_max; in max17042_get_property() 897 if (of_property_read_s32(np, "maxim,over-heat-temp", &pdata->temp_max)) in max17042_get_of_pdata() 898 pdata->temp_max = INT_MAX; in max17042_get_of_pdata() 951 pdata->temp_max = MAX17042_DEFAULT_TEMP_MAX; in max17042_get_default_pdata()
|