Home
last modified time | relevance | path

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

/linux-4.4.14/drivers/thermal/
Dimx_thermal.c98 int temp_max; member
417 data->temp_max = 95000; in imx_get_sensor_data()
421 data->temp_max = 105000; in imx_get_sensor_data()
425 data->temp_max = 105000; in imx_get_sensor_data()
429 data->temp_max = 125000; in imx_get_sensor_data()
437 data->temp_critical = data->temp_max - (1000 * 5); in imx_get_sensor_data()
438 data->temp_passive = data->temp_max - (1000 * 10); in imx_get_sensor_data()
577 data->temp_max / 1000, data->temp_critical / 1000, in imx_thermal_probe()
/linux-4.4.14/drivers/hwmon/
Dadm1021.c92 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()
Dthmc50.c82 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()
Dmax1668.c78 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()
Dadm1025.c121 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()
Dadm9240.c148 s8 temp_max[2]; /* rw 0 -> temp_max, 1 -> temp_max_hyst */ member
236 data->temp_max[0] = i2c_smbus_read_byte_data(client, in adm9240_update_device()
238 data->temp_max[1] = i2c_smbus_read_byte_data(client, in adm9240_update_device()
274 return sprintf(buf, "%d\n", data->temp_max[attr->index] * 1000); in show_max()
291 data->temp_max[attr->index] = TEMP_TO_REG(val); in set_max()
293 data->temp_max[attr->index]); in set_max()
Dvt8231.c168 u8 temp_max[6]; /* Register value */ member
361 return sprintf(buf, "%d\n", data->temp_max[0] * 1000); in show_temp0_max()
383 data->temp_max[0] = clamp_val((val + 500) / 1000, 0, 255); in set_temp0_max()
384 vt8231_write_value(data, regtempmax[0], data->temp_max[0]); in set_temp0_max()
421 return sprintf(buf, "%d\n", TEMP_MAXMIN_FROM_REG(data->temp_max[nr])); in show_temp_max()
447 data->temp_max[nr] = clamp_val(TEMP_MAXMIN_TO_REG(val), 0, 255); in set_temp_max()
448 vt8231_write_value(data, regtempmax[nr], data->temp_max[nr]); in set_temp_max()
913 data->temp_max[i] = vt8231_read_value(data, in vt8231_update_device()
Dsmsc47m192.c108 s8 temp_max[3]; /* Register value */ member
141 data->temp_max[i] = i2c_smbus_read_byte_data(client, in smsc47m192_update_device()
294 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in show_temp_max()
334 data->temp_max[nr] = TEMP_TO_REG(val); in set_temp_max()
336 data->temp_max[nr]); in set_temp_max()
Dfschmd.c293 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()
Dadm1031.c105 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()
Dgl520sm.c94 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()
535 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[n])); in get_temp_max()
561 data->temp_max[n] = TEMP_TO_REG(v); in set_temp_max()
562 gl520_write_value(client, GL520_REG_TEMP_MAX[n], data->temp_max[n]); in set_temp_max()
Demc2103.c78 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()
Dgl518sm.c133 u8 temp_max; /* Register values */ member
199 data->temp_max = in gl518_update_device()
247 show(TEMP, temp_max1, temp_max);
338 set(TEMP, temp_max1, temp_max, GL518_REG_TEMP_MAX);
Dvt1211.c129 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()
Dsch5627.c84 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()
Dasb100.c209 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()
Dlm85.c311 s8 temp_max[3]; /* Register value */ member
509 data->temp_max[i] = in lm85_update_device()
526 data->temp_max[i] -= 64; in lm85_update_device()
977 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in show_temp_max()
997 data->temp_max[nr] = TEMP_TO_REG(val); in set_temp_max()
998 lm85_write_value(client, LM85_REG_TEMP_MAX(nr), data->temp_max[nr]); in set_temp_max()
Dpc87360.c220 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()
Dadt7470.c158 s8 temp_max[ADT7470_TEMP_COUNT]; member
370 data->temp_max[i] = i2c_smbus_read_byte_data(client, in adt7470_update_device()
496 return sprintf(buf, "%d\n", 1000 * data->temp_max[attr->index]); in show_temp_max()
516 data->temp_max[attr->index] = temp; in set_temp_max()
Dadm1026.c282 s8 temp_max[3]; /* Register value */ member
417 data->temp_max[i] = adm1026_read_value(client, in adm1026_update_device()
817 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp_max[nr])); in show_temp_max()
834 data->temp_max[nr] = TEMP_TO_REG(val); in set_temp_max()
836 data->temp_max[nr]); in set_temp_max()
Dw83627hf.c374 u16 temp_max[3]; /* Register value */ member
445 data->temp_max[i]); in w83627hf_resume()
725 u16 tmp = data->temp_max[nr]; in show_temp_max()
758 data->temp_max[nr] = tmp; in store_temp_max()
1894 data->temp_max[i] = w83627hf_read_value( in w83627hf_update_device()
Dpc87427.c74 s8 temp_max[6]; /* register values */ member
309 data->temp_max[nr] = inb(iobase + PC87427_REG_TEMP_MAX); in pc87427_readall_temp()
725 return sprintf(buf, "%ld\n", temp_from_reg8(data->temp_max[nr])); in show_temp_max()
Ddme1737.c235 s8 temp_max[3]; member
656 data->temp_max[ix] = dme1737_read(data, in dme1737_update_device()
905 res = TEMP_FROM_REG(data->temp_max[ix], 8); in show_temp()
947 data->temp_max[ix] = TEMP_TO_REG(val); in set_temp()
949 data->temp_max[ix]); in set_temp()
Dadt7462.c216 u8 temp_max[ADT7462_TEMP_COUNT]; member
746 data->temp_max[i] = i2c_smbus_read_byte_data(client, in adt7462_update_device()
835 return sprintf(buf, "%d\n", 1000 * (data->temp_max[attr->index] - 64)); in show_temp_max()
855 data->temp_max[attr->index] = temp; in set_temp_max()
Dw83627ehf.c471 s16 temp_max[9]; member
900 data->temp_max[i] in w83627ehf_update_device()
1219 show_temp_reg(reg_temp_over, temp_max);
1242 store_temp_reg(reg_temp_over, temp_max);
2652 data->temp_max[i]); in w83627ehf_resume()
Dw83781d.c231 s8 temp_max; /* Register value */ member
374 show_temp_reg(temp_max);
1510 data->temp_max = in w83781d_update_device()
Dnct6683.c883 SENSOR_TEMPLATE_2(temp_max, "temp%d_max", S_IRUGO, show_temp8, NULL, 0, 1);
Dnct6775.c2223 SENSOR_TEMPLATE_2(temp_max, "temp%d_max", S_IRUGO | S_IWUSR, show_temp,
/linux-4.4.14/drivers/hwmon/pmbus/
Dltc2978.c106 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-4.4.14/include/linux/power/
Dcharger-manager.h195 int temp_max; member
Dmax17042_battery.h221 int temp_max; /* in tenths of degree Celsius */ member
/linux-4.4.14/drivers/power/
Dmax17042_battery.c164 if (temp >= chip->pdata->temp_max) { in max17042_get_battery_health()
292 val->intval = chip->pdata->temp_max; in max17042_get_property()
814 if (of_property_read_s32(np, "maxim,over-heat-temp", &pdata->temp_max)) in max17042_get_pdata()
815 pdata->temp_max = INT_MAX; in max17042_get_pdata()
Dpower_supply_sysfs.c185 POWER_SUPPLY_ATTR(temp_max),
Dcharger-manager.c653 upper_limit = desc->temp_max; in cm_check_thermal_status()
1478 if (!desc->temp_max) in cm_init_thermal_data()
1479 desc->temp_max = CM_DEFAULT_CHARGE_TEMP_MAX; in cm_init_thermal_data()
1549 of_property_read_u32(np, "cm-battery-hot", &desc->temp_max); in of_cm_parse_desc()
/linux-4.4.14/drivers/gpu/drm/radeon/
Dsislands_smc.h254 int16_t temp_max; member
Dsi_dpm.c6078 fan_table.temp_max = cpu_to_be16((50 + rdev->pm.dpm.fan.t_max) / 100); in si_thermal_setup_fan_table()
/linux-4.4.14/Documentation/hwmon/
Dsysfs-interface342 corresponding temp_max values.