Lines Matching defs:temp
77 #define TEMP_TO_REG(temp) (DIV_ROUND_CLOSEST(clamp_val((temp), \
126 s16 temp[t_num_temp]; /* Register values, normalized to 16 bit */
215 data->temp[t_input] = (prev_rv << 8) | (rv & 0xf0);
221 data->temp[i] = rv << 8;
408 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index]));
425 data->temp[nr] = TEMP_TO_REG(val);
426 lm80_write_value(client, temp_regs[nr], data->temp[nr] >> 8);
477 static SENSOR_DEVICE_ATTR_RO(temp1_input, temp, t_input);
478 static SENSOR_DEVICE_ATTR_RW(temp1_max, temp, t_hot_max);
479 static SENSOR_DEVICE_ATTR_RW(temp1_max_hyst, temp, t_hot_hyst);
480 static SENSOR_DEVICE_ATTR_RW(temp1_crit, temp, t_os_max);
481 static SENSOR_DEVICE_ATTR_RW(temp1_crit_hyst, temp, t_os_hyst);