Lines Matching refs:threshold_code
401 int ret = 0, threshold_code, i; in exynos4210_tmu_initialize() local
422 threshold_code = temp_to_code(data, reference); in exynos4210_tmu_initialize()
423 if (threshold_code < 0) { in exynos4210_tmu_initialize()
424 ret = threshold_code; in exynos4210_tmu_initialize()
427 writeb(threshold_code, data->base + EXYNOS4210_TMU_REG_THRESHOLD_TEMP); in exynos4210_tmu_initialize()
446 int ret = 0, threshold_code, i; in exynos4412_tmu_initialize() local
499 threshold_code = temp_to_code(data, crit_temp / MCELSIUS); in exynos4412_tmu_initialize()
502 rising_threshold |= threshold_code << 8 * i; in exynos4412_tmu_initialize()
520 int ret = 0, threshold_code, i, sensor_id, cal_type; in exynos5433_tmu_initialize() local
585 threshold_code = temp_to_code(data, temp); in exynos5433_tmu_initialize()
588 rising_threshold |= (threshold_code << j * 8); in exynos5433_tmu_initialize()
594 threshold_code = temp_to_code(data, temp_hist); in exynos5433_tmu_initialize()
598 falling_threshold |= (threshold_code << j * 8); in exynos5433_tmu_initialize()
611 int threshold_code; in exynos5440_tmu_initialize() local
642 threshold_code = temp_to_code(data, crit_temp / MCELSIUS); in exynos5440_tmu_initialize()
645 threshold_code << EXYNOS5440_TMU_TH_RISE4_SHIFT; in exynos5440_tmu_initialize()
665 int ret = 0, threshold_code, i; in exynos7_tmu_initialize() local
715 threshold_code = temp_to_code(data, temp); in exynos7_tmu_initialize()
719 rising_threshold |= threshold_code << (16 * bit_off); in exynos7_tmu_initialize()
724 threshold_code = temp_to_code(data, temp_hist); in exynos7_tmu_initialize()
726 falling_threshold |= threshold_code << (16 * bit_off); in exynos7_tmu_initialize()