/Linux-v4.19/drivers/platform/mips/ |
D | cpu_hwmon.c | 140 int i, value, temp_max = 0; in do_thermal_timer() local 144 if (value > temp_max) in do_thermal_timer() 145 temp_max = value; in do_thermal_timer() 148 if (temp_max <= CPU_THERMAL_THRESHOLD) in do_thermal_timer()
|
/Linux-v4.19/drivers/hwmon/ |
D | adm1021.c | 92 int temp_max[2]; /* Register values */ member 121 data->temp_max[i] = 1000 * in adm1021_update_device() 139 data->temp_max[1] += 125 * (i2c_smbus_read_byte_data( in adm1021_update_device() 174 return sprintf(buf, "%d\n", data->temp_max[index]); in show_temp_max() 219 data->temp_max[index] = reg_val * 1000; in set_temp_max()
|
D | thmc50.c | 82 s8 temp_max[3]; member 109 data->temp_max[i] = i2c_smbus_read_byte_data(client, in thmc50_update_device() 218 return sprintf(buf, "%d\n", data->temp_max[nr] * 1000); in show_temp_max() 235 data->temp_max[nr] = clamp_val(val / 1000, -128, 127); in set_temp_max() 237 data->temp_max[nr]); in set_temp_max()
|
D | max1668.c | 78 s8 temp_max[5]; member 111 data->temp_max[i] = (s8) val; in max1668_update_device() 164 return sprintf(buf, "%d\n", data->temp_max[index] * 1000); in show_temp_max() 219 data->temp_max[index] = clamp_val(temp/1000, -128, 127); in set_temp_max() 222 data->temp_max[index]); in set_temp_max()
|
D | adm1025.c | 121 s8 temp_max[2]; /* register value */ member 151 data->temp_max[i] = i2c_smbus_read_byte_data(client, in adm1025_update_device() 224 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[index])); in show_temp_max() 318 data->temp_max[index] = TEMP_TO_REG(val); in set_temp_max() 320 data->temp_max[index]); in set_temp_max()
|
D | adm9240.c | 151 s8 temp_max[2]; /* rw 0 -> temp_max, 1 -> temp_max_hyst */ member 239 data->temp_max[0] = i2c_smbus_read_byte_data(client, in adm9240_update_device() 241 data->temp_max[1] = i2c_smbus_read_byte_data(client, in adm9240_update_device() 277 return sprintf(buf, "%d\n", data->temp_max[attr->index] * 1000); in show_max() 294 data->temp_max[attr->index] = TEMP_TO_REG(val); in set_max() 296 data->temp_max[attr->index]); in set_max()
|
D | vt8231.c | 168 u8 temp_max[6]; /* Register value */ member 363 return sprintf(buf, "%d\n", data->temp_max[0] * 1000); in temp1_max_show() 386 data->temp_max[0] = clamp_val((val + 500) / 1000, 0, 255); in temp1_max_store() 387 vt8231_write_value(data, regtempmax[0], data->temp_max[0]); in temp1_max_store() 425 return sprintf(buf, "%d\n", TEMP_MAXMIN_FROM_REG(data->temp_max[nr])); in show_temp_max() 451 data->temp_max[nr] = clamp_val(TEMP_MAXMIN_TO_REG(val), 0, 255); in set_temp_max() 452 vt8231_write_value(data, regtempmax[nr], data->temp_max[nr]); in set_temp_max() 916 data->temp_max[i] = vt8231_read_value(data, in vt8231_update_device()
|
D | smsc47m192.c | 109 s8 temp_max[3]; /* Register value */ member 142 data->temp_max[i] = i2c_smbus_read_byte_data(client, in smsc47m192_update_device() 295 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in show_temp_max() 335 data->temp_max[nr] = TEMP_TO_REG(val); in set_temp_max() 337 data->temp_max[nr]); in set_temp_max()
|
D | fschmd.c | 293 u8 temp_max[11]; /* high temp limit, notice: undocumented! */ member 367 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[index])); in show_temp_max() 387 data->temp_max[index] = v; in store_temp_max() 1131 data->temp_max[0] = 70 + 128; in fschmd_probe() 1132 data->temp_max[1] = 50 + 128; in fschmd_probe() 1133 data->temp_max[2] = 50 + 128; in fschmd_probe() 1333 data->temp_max[i] = i2c_smbus_read_byte_data( in fschmd_update_device() 1343 data->temp_act[i] < data->temp_max[i]) in fschmd_update_device()
|
D | emc2103.c | 78 s8 temp_max[4]; /* no fractional part */ member 164 &data->temp_max[i]); in emc2103_update_device() 211 int millidegrees = data->temp_max[nr] * 1000; in show_temp_max() 279 data->temp_max[nr] = val; in set_temp_max()
|
D | adm1031.c | 105 s8 temp_max[3]; member 167 data->temp_max[chan] = in adm1031_update_device() 463 data->temp_max[nr] = AUTO_TEMP_MAX_TO_REG(val, data->auto_temp[nr], in set_auto_temp_max() 466 data->temp_max[nr]); in set_auto_temp_max() 720 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in show_temp_max() 787 data->temp_max[nr] = TEMP_TO_REG(val); in set_temp_max() 789 data->temp_max[nr]); in set_temp_max()
|
D | gl520sm.c | 94 u8 temp_max[2]; member 158 data->temp_max[0] = gl520_read_value(client, in gl520_update_device() 177 data->temp_max[1] = gl520_read_value(client, in gl520_update_device() 542 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[n])); in get_temp_max() 568 data->temp_max[n] = TEMP_TO_REG(v); in set_temp_max() 569 gl520_write_value(client, GL520_REG_TEMP_MAX[n], data->temp_max[n]); in set_temp_max()
|
D | gl518sm.c | 134 u8 temp_max; /* Register values */ member 200 data->temp_max = in gl518_update_device() 248 show(TEMP, temp_max1, temp_max); 339 set(TEMP, temp_max1, temp_max, GL518_REG_TEMP_MAX);
|
D | vt1211.c | 129 u8 temp_max[7]; member 283 data->temp_max[ix] = vt1211_read8(data, in vt1211_update_device() 436 res = TEMP_FROM_REG(ix, data->temp_max[ix]); in show_temp() 470 data->temp_max[ix] = TEMP_TO_REG(ix, val); in set_temp() 472 data->temp_max[ix]); in set_temp()
|
D | sch5627.c | 84 u8 temp_max[SCH5627_NO_TEMPS]; member 169 data->temp_max[i] = val; in sch5627_read_limits() 247 val = reg_to_temp_limit(data->temp_max[attr->index]); in show_temp_max()
|
D | asb100.c | 209 u16 temp_max[4]; /* Register value (0 and 3 are u8 only) */ member 440 show_temp_reg(temp_max); 469 set_temp_reg(MAX, temp_max); 987 data->temp_max[i-1] = asb100_read_value(client, in asb100_update_device()
|
D | lm85.c | 313 s8 temp_max[3]; /* Register value */ member 511 data->temp_max[i] = in lm85_update_device() 528 data->temp_max[i] -= 64; in lm85_update_device() 979 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in show_temp_max() 999 data->temp_max[nr] = TEMP_TO_REG(val); in set_temp_max() 1000 lm85_write_value(client, LM85_REG_TEMP_MAX(nr), data->temp_max[nr]); in set_temp_max()
|
D | pc87360.c | 220 s8 temp_max[3]; /* Register value */ member 891 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[attr->index])); in show_temp_max() 946 data->temp_max[attr->index] = TEMP_TO_REG(val); in set_temp_max() 948 data->temp_max[attr->index]); in set_temp_max() 992 static struct sensor_device_attribute temp_max[] = { variable 1088 &temp_max[X].dev_attr.attr, \ 1693 data->temp_max[i] = pc87360_read_value(data, in pc87360_update_device()
|
/Linux-v4.19/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() 803 data->temp_max / 1000, data->temp_critical / 1000, in imx_thermal_probe()
|
/Linux-v4.19/drivers/net/ethernet/mellanox/mlxsw/ |
D | core_hwmon.c | 65 unsigned int temp_max; in mlxsw_hwmon_temp_max_show() local 75 mlxsw_reg_mtmp_unpack(mtmp_pl, NULL, &temp_max, NULL); in mlxsw_hwmon_temp_max_show() 76 return sprintf(buf, "%u\n", temp_max); in mlxsw_hwmon_temp_max_show()
|
/Linux-v4.19/drivers/hwmon/pmbus/ |
D | ltc2978.c | 106 u16 temp_min[LTC2974_NUM_PAGES], temp_max[LTC2974_NUM_PAGES]; member 262 &data->temp_max[page]); in ltc2978_read_word_data_common() 488 data->temp_max[page] = 0x7c00; in ltc2978_write_word_data() 639 for (i = 0; i < ARRAY_SIZE(data->temp_max); i++) in ltc2978_probe() 640 data->temp_max[i] = 0x7c00; in ltc2978_probe()
|
/Linux-v4.19/include/linux/power/ |
D | charger-manager.h | 195 int temp_max; member
|
D | max17042_battery.h | 228 int temp_max; /* in tenths of degree Celsius */ member
|
/Linux-v4.19/drivers/power/supply/ |
D | max17042_battery.c | 228 if (temp > chip->pdata->temp_max) { in max17042_get_battery_health() 392 val->intval = chip->pdata->temp_max; in max17042_get_property() 911 if (of_property_read_s32(np, "maxim,over-heat-temp", &pdata->temp_max)) in max17042_get_of_pdata() 912 pdata->temp_max = INT_MAX; in max17042_get_of_pdata() 965 pdata->temp_max = MAX17042_DEFAULT_TEMP_MAX; in max17042_get_default_pdata()
|
D | charger-manager.c | 653 upper_limit = desc->temp_max; in cm_check_thermal_status() 1473 if (!desc->temp_max) in cm_init_thermal_data() 1474 desc->temp_max = CM_DEFAULT_CHARGE_TEMP_MAX; in cm_init_thermal_data() 1546 of_property_read_u32(np, "cm-battery-hot", &desc->temp_max); in of_cm_parse_desc()
|