Lines Matching refs:temp
197 u8 temp);
199 u8 temp, u8 hyst);
203 void (*tmu_set_emulation)(struct exynos_tmu_data *data, int temp);
211 static int temp_to_code(struct exynos_tmu_data *data, u8 temp)
214 return temp + data->temp_error1 - EXYNOS_FIRST_POINT_TRIM;
216 return (temp - EXYNOS_FIRST_POINT_TRIM) *
264 int ret = 0, temp;
266 ret = thermal_zone_get_crit_temp(tzd, &temp);
351 int trip_id, u8 temp)
366 temp -= ref;
367 writeb(temp, data->base + EXYNOS4210_TMU_REG_TRIG_LEVEL0 + trip_id * 4);
372 int trip, u8 temp, u8 hyst)
384 int trip, u8 temp)
390 th |= temp_to_code(data, temp) << 8 * trip;
401 int trip, u8 temp, u8 hyst)
408 th |= temp_to_code(data, temp - hyst) << 8 * trip;
440 int trip, u8 temp)
455 th |= (temp_to_code(data, temp) << j * 8);
460 int trip, u8 temp, u8 hyst)
475 th |= (temp_to_code(data, temp - hyst) << j * 8);
513 int trip, u8 temp)
523 th |= temp_to_code(data, temp) << (16 * bit_off);
528 int trip, u8 temp, u8 hyst)
538 th |= temp_to_code(data, temp - hyst) << (16 * bit_off);
646 static int exynos_get_temp(struct thermal_zone_device *tz, int *temp)
667 *temp = code_to_temp(data, value) * MCELSIUS;
677 int temp)
679 if (temp) {
680 temp /= MCELSIUS;
687 val |= (temp_to_code(data, temp) <<
693 val |= (temp_to_code(data, temp) <<
705 int temp)
720 val = get_emul_con_reg(data, val, temp);
724 static int exynos_tmu_set_emulation(struct thermal_zone_device *tz, int temp)
732 if (temp && temp < MCELSIUS)
737 data->tmu_set_emulation(data, temp);
746 static int exynos_tmu_set_emulation(struct thermal_zone_device *tz, int temp)