Lines Matching defs:temp

63  * in1   Vccp  (proc core)           temp2   Internal temp
82 /* Temperatures (temp) numbered 0-2 (ix) */
220 s16 temp[3];
323 static inline int TEMP_HYST_TO_REG(int temp, long hyst, int ix, int reg)
325 hyst = clamp_val(hyst, temp - 15000, temp);
326 hyst = DIV_ROUND_CLOSEST(temp - hyst, 1000);
621 * to make it consistent with the temp inputs.
634 for (ix = 0; ix < ARRAY_SIZE(data->temp); ix++) {
639 * register values (2's complement) and temp values
642 data->temp[ix] = dme1737_read(data,
655 * In and temp LSB registers
672 for (ix = 0; ix < ARRAY_SIZE(data->temp); ix++) {
673 data->temp[ix] |= (lsb[DME1737_REG_TEMP_LSB[ix]] <<
889 res = TEMP_FROM_REG(data->temp[ix], 16);
904 res = (((u16)data->temp[ix] & 0xff00) == 0x8000);
977 /* check config2 for non-standard temp-to-zone mapping */
991 /* pwm_freq holds the temp range bits in the upper nibble */
1015 int temp;
1029 /* Modify the temp hyst value */
1030 temp = TEMP_FROM_REG(data->zone_low[ix], 8);
1032 data->zone_hyst[ix == 2] = TEMP_HYST_TO_REG(temp, val, ix, reg);
1046 * Modify the temp range value (which is stored in the upper
1049 temp = TEMP_FROM_REG(data->zone_low[ix], 8);
1050 val = clamp_val(val, temp, temp + 80000);
1052 data->pwm_freq[ix] = TEMP_RANGE_TO_REG(val - temp, reg);
1405 * PWM is already in auto mode so update the temp
1414 * PWM is not in auto mode so we save the temp
1533 static SENSOR_DEVICE_ATTR_2(temp##ix##_input, S_IRUGO, \
1535 static SENSOR_DEVICE_ATTR_2(temp##ix##_min, S_IRUGO | S_IWUSR, \
1537 static SENSOR_DEVICE_ATTR_2(temp##ix##_max, S_IRUGO | S_IWUSR, \
1539 static SENSOR_DEVICE_ATTR_2(temp##ix##_offset, S_IRUGO, \
1541 static SENSOR_DEVICE_ATTR_2(temp##ix##_alarm, S_IRUGO, \
1543 static SENSOR_DEVICE_ATTR_2(temp##ix##_fault, S_IRUGO, \
1712 * The following struct holds temp offset attributes, which are not available
1743 * The following struct holds temp zone 3 related attributes, which are not
1761 * The following struct holds temp zone hysteresis related attributes, which