Lines Matching refs:temp
114 s16 temp[t_num_regs]; /* index with enum temp_index */ member
133 data->temp[i] = in lm92_update_device()
151 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index])); in show_temp()
169 data->temp[nr] = TEMP_TO_REG(val); in set_temp()
170 i2c_smbus_write_word_swapped(client, regs[nr], data->temp[nr]); in set_temp()
180 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[attr->index]) in show_temp_hyst()
181 - TEMP_FROM_REG(data->temp[t_hyst])); in show_temp_hyst()
188 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->temp[t_min]) in show_temp_min_hyst()
189 + TEMP_FROM_REG(data->temp[t_hyst])); in show_temp_min_hyst()
208 data->temp[t_hyst] = in set_temp_hyst()
209 TEMP_TO_REG(TEMP_FROM_REG(data->temp[attr->index]) - val); in set_temp_hyst()
211 data->temp[t_hyst]); in set_temp_hyst()
220 return sprintf(buf, "%d\n", ALARMS_FROM_REG(data->temp[t_input])); in show_alarms()
228 return sprintf(buf, "%d\n", (data->temp[t_input] >> bitnr) & 1); in show_alarm()