Lines Matching refs:zone
234 static int ZONE_TO_REG(int zone) in ZONE_TO_REG() argument
239 if (zone == lm85_zone_map[i]) in ZONE_TO_REG()
323 struct lm85_zone zone[3]; member
516 data->zone[i].range = val >> 4; in lm85_update_device()
519 data->zone[i].limit = in lm85_update_device()
521 data->zone[i].critical = in lm85_update_device()
527 data->zone[i].limit -= 64; in lm85_update_device()
528 data->zone[i].critical -= 64; in lm85_update_device()
539 data->zone[0].hyst = i >> 4; in lm85_update_device()
540 data->zone[1].hyst = i & 0x0f; in lm85_update_device()
543 data->zone[2].hyst = i >> 4; in lm85_update_device()
823 (data->zone[nr].range << 4) in set_pwm_freq()
1132 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->zone[nr].limit) - in show_temp_auto_temp_off()
1133 HYST_FROM_REG(data->zone[nr].hyst)); in show_temp_auto_temp_off()
1151 min = TEMP_FROM_REG(data->zone[nr].limit); in set_temp_auto_temp_off()
1152 data->zone[nr].hyst = HYST_TO_REG(min - val); in set_temp_auto_temp_off()
1155 (data->zone[0].hyst << 4) in set_temp_auto_temp_off()
1156 | data->zone[1].hyst); in set_temp_auto_temp_off()
1159 (data->zone[2].hyst << 4)); in set_temp_auto_temp_off()
1170 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->zone[nr].limit)); in show_temp_auto_temp_min()
1187 data->zone[nr].limit = TEMP_TO_REG(val); in set_temp_auto_temp_min()
1189 data->zone[nr].limit); in set_temp_auto_temp_min()
1192 data->zone[nr].range = RANGE_TO_REG( in set_temp_auto_temp_min()
1193 TEMP_FROM_REG(data->zone[nr].max_desired) - in set_temp_auto_temp_min()
1194 TEMP_FROM_REG(data->zone[nr].limit)); in set_temp_auto_temp_min()
1196 ((data->zone[nr].range & 0x0f) << 4) in set_temp_auto_temp_min()
1208 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->zone[nr].limit) + in show_temp_auto_temp_max()
1209 RANGE_FROM_REG(data->zone[nr].range)); in show_temp_auto_temp_max()
1227 min = TEMP_FROM_REG(data->zone[nr].limit); in set_temp_auto_temp_max()
1228 data->zone[nr].max_desired = TEMP_TO_REG(val); in set_temp_auto_temp_max()
1229 data->zone[nr].range = RANGE_TO_REG( in set_temp_auto_temp_max()
1232 ((data->zone[nr].range & 0x0f) << 4) in set_temp_auto_temp_max()
1243 return sprintf(buf, "%d\n", TEMP_FROM_REG(data->zone[nr].critical)); in show_temp_auto_temp_crit()
1260 data->zone[nr].critical = TEMP_TO_REG(val); in set_temp_auto_temp_crit()
1262 data->zone[nr].critical); in set_temp_auto_temp_crit()