Lines Matching refs:temp
210 void (*tmu_set_emulation)(struct exynos_tmu_data *data, int temp);
218 int temp; in exynos_report_trigger() local
231 tz->ops->get_trip_temp(tz, i, &temp); in exynos_report_trigger()
232 if (tz->last_temperature < temp) in exynos_report_trigger()
245 static int temp_to_code(struct exynos_tmu_data *data, u8 temp) in temp_to_code() argument
252 temp_code = (temp - pdata->first_point_trim) * in temp_to_code()
258 temp_code = temp + data->temp_error1 - pdata->first_point_trim; in temp_to_code()
261 temp_code = temp + pdata->default_temp_offset; in temp_to_code()
275 int temp; in code_to_temp() local
279 temp = (temp_code - data->temp_error1) * in code_to_temp()
285 temp = temp_code - data->temp_error1 + pdata->first_point_trim; in code_to_temp()
288 temp = temp_code - pdata->default_temp_offset; in code_to_temp()
292 return temp; in code_to_temp()
319 unsigned long temp; in get_th_reg() local
332 temp = trips[i].temperature / MCELSIUS; in get_th_reg()
334 temp -= (trips[i].hysteresis / MCELSIUS); in get_th_reg()
338 threshold |= temp_to_code(data, temp) << 8 * i; in get_th_reg()
402 unsigned long reference, temp; in exynos4210_tmu_initialize() local
430 temp = trips[i].temperature / MCELSIUS; in exynos4210_tmu_initialize()
431 writeb(temp - reference, data->base + in exynos4210_tmu_initialize()
519 int temp, temp_hist; in exynos5433_tmu_initialize() local
583 tz->ops->get_trip_temp(tz, i, &temp); in exynos5433_tmu_initialize()
584 temp /= MCELSIUS; in exynos5433_tmu_initialize()
585 threshold_code = temp_to_code(data, temp); in exynos5433_tmu_initialize()
593 temp_hist = temp - (temp_hist / MCELSIUS); in exynos5433_tmu_initialize()
666 int temp, temp_hist; in exynos7_tmu_initialize() local
708 tz->ops->get_trip_temp(tz, i, &temp); in exynos7_tmu_initialize()
709 temp /= MCELSIUS; in exynos7_tmu_initialize()
712 temp_hist = temp - (temp_hist / MCELSIUS); in exynos7_tmu_initialize()
715 threshold_code = temp_to_code(data, temp); in exynos7_tmu_initialize()
879 static int exynos_get_temp(void *p, int *temp) in exynos_get_temp() argument
889 *temp = code_to_temp(data, data->tmu_read(data)) * MCELSIUS; in exynos_get_temp()
899 int temp) in get_emul_con_reg() argument
901 if (temp) { in get_emul_con_reg()
902 temp /= MCELSIUS; in get_emul_con_reg()
911 val |= (temp_to_code(data, temp) << in get_emul_con_reg()
917 val |= (temp_to_code(data, temp) << in get_emul_con_reg()
929 int temp) in exynos4412_tmu_set_emulation() argument
944 val = get_emul_con_reg(data, val, temp); in exynos4412_tmu_set_emulation()
949 int temp) in exynos5440_tmu_set_emulation() argument
954 val = get_emul_con_reg(data, val, temp); in exynos5440_tmu_set_emulation()
958 static int exynos_tmu_set_emulation(void *drv_data, int temp) in exynos_tmu_set_emulation() argument
966 if (temp && temp < MCELSIUS) in exynos_tmu_set_emulation()
971 data->tmu_set_emulation(data, temp); in exynos_tmu_set_emulation()
981 static int exynos_tmu_set_emulation(void *drv_data, int temp) in exynos_tmu_set_emulation() argument