/kernel/linux/linux-5.10/drivers/platform/loongarch/ |
H A D | cpu_hwmon.c | 138 int i, value, temp_max = 0; in do_thermal_timer() local 142 if (value > temp_max) in do_thermal_timer() 143 temp_max = value; in do_thermal_timer() 146 if (temp_max <= cpu_thermal_threshold) in do_thermal_timer() 154 int i, value, temp_max = 0; in loongson_hwmon_init() local 170 if (value > temp_max) in loongson_hwmon_init() 171 temp_max = value; in loongson_hwmon_init() 174 pr_info("Initial CPU temperature is %d (highest).\n", temp_max); in loongson_hwmon_init() 175 if (temp_max > cpu_initial_threshold) in loongson_hwmon_init() 176 cpu_thermal_threshold += temp_max in loongson_hwmon_init() [all...] |
/kernel/linux/linux-5.10/drivers/hwmon/ |
H A 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, [all...] |
H A D | fschmd.c | 279 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, [all...] |
H A 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);
|
H A 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);
|
H A 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);
|
H A D | adt7470.c | 153 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, [all...] |
H A 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, [all...] |
H A 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);
|
H A 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()
|
H A 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);
|
H A 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, [all...] |
H A 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);
|
/kernel/linux/linux-6.6/drivers/hwmon/ |
H A D | fschmd.c | 279 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, [all...] |
H A 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);
|
H A 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);
|
H A 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);
|
H A D | vt8231.c | 156 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, [all...] |
H A 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);
|
H A 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()
|
H A 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);
|
H A D | adm1031.c | 92 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, [all...] |
/kernel/linux/linux-5.10/drivers/thermal/ |
H A D | imx_thermal.c | 206 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()
|
/kernel/linux/linux-6.6/drivers/thermal/ |
H A D | imx_thermal.c | 208 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()
|
/kernel/linux/linux-6.6/drivers/power/supply/ |
H A D | ab8500_bmdata.c | 226 if (bi->temp_max == INT_MAX) in ab8500_bm_of_probe() 227 bi->temp_max = AB8500_TEMP_OVER; in ab8500_bm_of_probe()
|