/linux-6.3-rc2/drivers/hwmon/ |
A D | fschmd.c | 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), 1114 data->temp_max[0] = 70 + 128; in fschmd_probe() 1115 data->temp_max[1] = 50 + 128; in fschmd_probe() [all …]
|
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);
|
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);
|
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() 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); 548 static SENSOR_DEVICE_ATTR_RW(temp4_max, temp_max, 3); 551 static SENSOR_DEVICE_ATTR_RW(temp5_max, temp_max, 4); [all …]
|
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);
|
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);
|
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);
|
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()
|
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, 2);
|
A 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);
|
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);
|
A D | drivetemp.c | 126 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()
|
A 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,
|
A D | sch5627.c | 72 u8 temp_max[SCH5627_NO_TEMPS]; member 187 data->temp_max[i] = val; in sch5627_read_limits() 251 *val = reg_to_temp_limit(data->temp_max[channel]); in sch5627_read()
|
A D | pc87360.c | 219 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, \
|
A 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);
|
A 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);
|
A 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);
|
/linux-6.3-rc2/drivers/thermal/ |
A D | imx_thermal.c | 208 int temp_max; member 471 data->temp_max = 95000; in imx_init_temp_grade() 475 data->temp_max = 105000; in imx_init_temp_grade() 479 data->temp_max = 105000; in imx_init_temp_grade() 483 data->temp_max = 125000; in imx_init_temp_grade() 491 trips[IMX_TRIP_PASSIVE].temperature = data->temp_max - (1000 * 10); in imx_init_temp_grade() 492 trips[IMX_TRIP_CRITICAL].temperature = data->temp_max - (1000 * 5); in imx_init_temp_grade() 743 data->temp_max / 1000, trips[IMX_TRIP_CRITICAL].temperature / 1000, in imx_thermal_probe()
|
/linux-6.3-rc2/drivers/power/supply/ |
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()
|
A D | samsung-sdi-battery.c | 661 .temp_max = 60, 705 .temp_max = 47, 749 .temp_max = 49, 792 .temp_max = 60, 837 .temp_max = 60, 881 .temp_max = 60,
|
A D | max17042_battery.c | 216 if (temp > chip->pdata->temp_max) { in max17042_get_battery_health() 384 val->intval = chip->pdata->temp_max; in max17042_get_property() 932 if (of_property_read_s32(np, "maxim,over-heat-temp", &pdata->temp_max)) in max17042_get_of_pdata() 933 pdata->temp_max = INT_MAX; in max17042_get_of_pdata() 987 pdata->temp_max = MAX17042_DEFAULT_TEMP_MAX; in max17042_get_default_pdata()
|
/linux-6.3-rc2/include/linux/power/ |
A D | charger-manager.h | 187 int temp_max; member
|
/linux-6.3-rc2/drivers/hwmon/pmbus/ |
A D | ltc2978.c | 121 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.3-rc2/drivers/hwmon/peci/ |
A D | dimmtemp.c | 61 long temp_max; member 133 priv->dimm[dimm_no].thresholds.temp_max = GET_TEMP_MAX(data) * MILLIDEGREE_PER_DEGREE; in update_thresholds() 153 *val = priv->dimm[dimm_no].thresholds.temp_max; in get_dimm_thresholds()
|