Lines Matching refs:temp
198 u8 temp);
200 u8 temp, u8 hyst);
204 void (*tmu_set_emulation)(struct exynos_tmu_data *data, int temp);
212 static int temp_to_code(struct exynos_tmu_data *data, u8 temp)
215 return temp + data->temp_error1 - EXYNOS_FIRST_POINT_TRIM;
217 return (temp - EXYNOS_FIRST_POINT_TRIM) *
266 int ret = 0, temp, hyst;
275 ret = tzd->ops->get_crit_temp(tzd, &temp);
307 ret = tzd->ops->get_trip_temp(tzd, i, &temp);
310 temp /= MCELSIUS;
311 data->tmu_set_trip_temp(data, i, temp);
318 data->tmu_set_trip_hyst(data, i, temp, hyst);
363 int trip, u8 temp)
376 temp -= ref;
377 writeb(temp, data->base + EXYNOS4210_TMU_REG_TRIG_LEVEL0 + trip * 4);
382 int trip, u8 temp, u8 hyst)
394 int trip, u8 temp)
400 th |= temp_to_code(data, temp) << 8 * trip;
411 int trip, u8 temp, u8 hyst)
418 th |= temp_to_code(data, temp - hyst) << 8 * trip;
450 int trip, u8 temp)
465 th |= (temp_to_code(data, temp) << j * 8);
470 int trip, u8 temp, u8 hyst)
485 th |= (temp_to_code(data, temp - hyst) << j * 8);
523 int trip, u8 temp)
533 th |= temp_to_code(data, temp) << (16 * bit_off);
538 int trip, u8 temp, u8 hyst)
548 th |= temp_to_code(data, temp - hyst) << (16 * bit_off);
653 static int exynos_get_temp(void *p, int *temp)
674 *temp = code_to_temp(data, value) * MCELSIUS;
684 int temp)
686 if (temp) {
687 temp /= MCELSIUS;
694 val |= (temp_to_code(data, temp) <<
700 val |= (temp_to_code(data, temp) <<
712 int temp)
727 val = get_emul_con_reg(data, val, temp);
731 static int exynos_tmu_set_emulation(void *drv_data, int temp)
739 if (temp && temp < MCELSIUS)
744 data->tmu_set_emulation(data, temp);
753 static int exynos_tmu_set_emulation(void *drv_data, int temp)