• Home
  • Raw
  • Download

Lines Matching refs:zone

227 static int ZONE_TO_REG(int zone)  in ZONE_TO_REG()  argument
232 if (zone == lm85_zone_map[i]) in ZONE_TO_REG()
318 struct lm85_zone zone[3]; member
511 data->zone[i].range = val >> 4; in lm85_update_device()
514 data->zone[i].limit = in lm85_update_device()
516 data->zone[i].critical = in lm85_update_device()
522 data->zone[i].limit -= 64; in lm85_update_device()
523 data->zone[i].critical -= 64; in lm85_update_device()
534 data->zone[0].hyst = i >> 4; in lm85_update_device()
535 data->zone[1].hyst = i & 0x0f; in lm85_update_device()
538 data->zone[2].hyst = i >> 4; in lm85_update_device()
820 (data->zone[nr].range << 4) in pwm_freq_store()
1135 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->zone[nr].limit) - in temp_auto_temp_off_show()
1136 HYST_FROM_REG(data->zone[nr].hyst)); in temp_auto_temp_off_show()
1155 min = TEMP_FROM_REG(data->zone[nr].limit); in temp_auto_temp_off_store()
1156 data->zone[nr].hyst = HYST_TO_REG(min - val); in temp_auto_temp_off_store()
1159 (data->zone[0].hyst << 4) in temp_auto_temp_off_store()
1160 | data->zone[1].hyst); in temp_auto_temp_off_store()
1163 (data->zone[2].hyst << 4)); in temp_auto_temp_off_store()
1175 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->zone[nr].limit)); in temp_auto_temp_min_show()
1193 data->zone[nr].limit = TEMP_TO_REG(val); in temp_auto_temp_min_store()
1195 data->zone[nr].limit); in temp_auto_temp_min_store()
1198 data->zone[nr].range = RANGE_TO_REG( in temp_auto_temp_min_store()
1199 TEMP_FROM_REG(data->zone[nr].max_desired) - in temp_auto_temp_min_store()
1200 TEMP_FROM_REG(data->zone[nr].limit)); in temp_auto_temp_min_store()
1202 ((data->zone[nr].range & 0x0f) << 4) in temp_auto_temp_min_store()
1215 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->zone[nr].limit) + in temp_auto_temp_max_show()
1216 RANGE_FROM_REG(data->zone[nr].range)); in temp_auto_temp_max_show()
1235 min = TEMP_FROM_REG(data->zone[nr].limit); in temp_auto_temp_max_store()
1236 data->zone[nr].max_desired = TEMP_TO_REG(val); in temp_auto_temp_max_store()
1237 data->zone[nr].range = RANGE_TO_REG( in temp_auto_temp_max_store()
1240 ((data->zone[nr].range & 0x0f) << 4) in temp_auto_temp_max_store()
1252 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->zone[nr].critical)); in temp_auto_temp_crit_show()
1270 data->zone[nr].critical = TEMP_TO_REG(val); in temp_auto_temp_crit_store()
1272 data->zone[nr].critical); in temp_auto_temp_crit_store()