Lines Matching refs:temp
185 unsigned long temp);
193 unsigned long temp; in exynos_report_trigger() local
206 tz->ops->get_trip_temp(tz, i, &temp); in exynos_report_trigger()
207 if (tz->last_temperature < temp) in exynos_report_trigger()
220 static int temp_to_code(struct exynos_tmu_data *data, u8 temp) in temp_to_code() argument
227 temp_code = (temp - pdata->first_point_trim) * in temp_to_code()
233 temp_code = temp + data->temp_error1 - pdata->first_point_trim; in temp_to_code()
236 temp_code = temp + pdata->default_temp_offset; in temp_to_code()
250 int temp; in code_to_temp() local
254 temp = (temp_code - data->temp_error1) * in code_to_temp()
260 temp = temp_code - data->temp_error1 + pdata->first_point_trim; in code_to_temp()
263 temp = temp_code - pdata->default_temp_offset; in code_to_temp()
267 return temp; in code_to_temp()
294 unsigned long temp; in get_th_reg() local
307 temp = trips[i].temperature / MCELSIUS; in get_th_reg()
309 temp -= (trips[i].hysteresis / MCELSIUS); in get_th_reg()
313 threshold |= temp_to_code(data, temp) << 8 * i; in get_th_reg()
377 unsigned long reference, temp; in exynos4210_tmu_initialize() local
405 temp = trips[i].temperature / MCELSIUS; in exynos4210_tmu_initialize()
406 writeb(temp - reference, data->base + in exynos4210_tmu_initialize()
545 unsigned long temp, temp_hist; in exynos7_tmu_initialize() local
587 tz->ops->get_trip_temp(tz, i, &temp); in exynos7_tmu_initialize()
588 temp /= MCELSIUS; in exynos7_tmu_initialize()
591 temp_hist = temp - (temp_hist / MCELSIUS); in exynos7_tmu_initialize()
594 threshold_code = temp_to_code(data, temp); in exynos7_tmu_initialize()
716 static int exynos_get_temp(void *p, long *temp) in exynos_get_temp() argument
726 *temp = code_to_temp(data, data->tmu_read(data)) * MCELSIUS; in exynos_get_temp()
736 unsigned long temp) in get_emul_con_reg() argument
738 if (temp) { in get_emul_con_reg()
739 temp /= MCELSIUS; in get_emul_con_reg()
748 val |= (temp_to_code(data, temp) << in get_emul_con_reg()
754 val |= (temp_to_code(data, temp) << in get_emul_con_reg()
766 unsigned long temp) in exynos4412_tmu_set_emulation() argument
779 val = get_emul_con_reg(data, val, temp); in exynos4412_tmu_set_emulation()
784 unsigned long temp) in exynos5440_tmu_set_emulation() argument
789 val = get_emul_con_reg(data, val, temp); in exynos5440_tmu_set_emulation()
793 static int exynos_tmu_set_emulation(void *drv_data, unsigned long temp) in exynos_tmu_set_emulation() argument
801 if (temp && temp < MCELSIUS) in exynos_tmu_set_emulation()
806 data->tmu_set_emulation(data, temp); in exynos_tmu_set_emulation()
816 static int exynos_tmu_set_emulation(void *drv_data, unsigned long temp) in exynos_tmu_set_emulation() argument