Lines Matching refs:threshold_code
376 int ret = 0, threshold_code, i; in exynos4210_tmu_initialize() local
397 threshold_code = temp_to_code(data, reference); in exynos4210_tmu_initialize()
398 if (threshold_code < 0) { in exynos4210_tmu_initialize()
399 ret = threshold_code; in exynos4210_tmu_initialize()
402 writeb(threshold_code, data->base + EXYNOS4210_TMU_REG_THRESHOLD_TEMP); in exynos4210_tmu_initialize()
421 int ret = 0, threshold_code, i; in exynos4412_tmu_initialize() local
474 threshold_code = temp_to_code(data, crit_temp / MCELSIUS); in exynos4412_tmu_initialize()
477 rising_threshold |= threshold_code << 8 * i; in exynos4412_tmu_initialize()
491 int ret = 0, threshold_code; in exynos5440_tmu_initialize() local
522 threshold_code = temp_to_code(data, crit_temp / MCELSIUS); in exynos5440_tmu_initialize()
525 threshold_code << EXYNOS5440_TMU_TH_RISE4_SHIFT; in exynos5440_tmu_initialize()
544 int ret = 0, threshold_code, i; in exynos7_tmu_initialize() local
594 threshold_code = temp_to_code(data, temp); in exynos7_tmu_initialize()
598 rising_threshold |= threshold_code << (16 * bit_off); in exynos7_tmu_initialize()
603 threshold_code = temp_to_code(data, temp_hist); in exynos7_tmu_initialize()
605 falling_threshold |= threshold_code << (16 * bit_off); in exynos7_tmu_initialize()