Lines Matching +full:4 +full:th
123 #define EXYNOS_NOISE_CANCEL_MODE 4
377 writeb(temp, data->base + EXYNOS4210_TMU_REG_TRIG_LEVEL0 + trip * 4); in exynos4210_tmu_set_trip_temp()
396 u32 th, con; in exynos4412_tmu_set_trip_temp() local
398 th = readl(data->base + EXYNOS_THD_TEMP_RISE); in exynos4412_tmu_set_trip_temp()
399 th &= ~(0xff << 8 * trip); in exynos4412_tmu_set_trip_temp()
400 th |= temp_to_code(data, temp) << 8 * trip; in exynos4412_tmu_set_trip_temp()
401 writel(th, data->base + EXYNOS_THD_TEMP_RISE); in exynos4412_tmu_set_trip_temp()
413 u32 th; in exynos4412_tmu_set_trip_hyst() local
415 th = readl(data->base + EXYNOS_THD_TEMP_FALL); in exynos4412_tmu_set_trip_hyst()
416 th &= ~(0xff << 8 * trip); in exynos4412_tmu_set_trip_hyst()
418 th |= temp_to_code(data, temp - hyst) << 8 * trip; in exynos4412_tmu_set_trip_hyst()
419 writel(th, data->base + EXYNOS_THD_TEMP_FALL); in exynos4412_tmu_set_trip_hyst()
453 u32 th; in exynos5433_tmu_set_trip_temp() local
457 j = trip - 4; in exynos5433_tmu_set_trip_temp()
463 th = readl(data->base + reg_off); in exynos5433_tmu_set_trip_temp()
464 th &= ~(0xff << j * 8); in exynos5433_tmu_set_trip_temp()
465 th |= (temp_to_code(data, temp) << j * 8); in exynos5433_tmu_set_trip_temp()
466 writel(th, data->base + reg_off); in exynos5433_tmu_set_trip_temp()
473 u32 th; in exynos5433_tmu_set_trip_hyst() local
477 j = trip - 4; in exynos5433_tmu_set_trip_hyst()
483 th = readl(data->base + reg_off); in exynos5433_tmu_set_trip_hyst()
484 th &= ~(0xff << j * 8); in exynos5433_tmu_set_trip_hyst()
485 th |= (temp_to_code(data, temp - hyst) << j * 8); in exynos5433_tmu_set_trip_hyst()
486 writel(th, data->base + reg_off); in exynos5433_tmu_set_trip_hyst()
526 u32 th; in exynos7_tmu_set_trip_temp() local
528 reg_off = ((7 - trip) / 2) * 4; in exynos7_tmu_set_trip_temp()
531 th = readl(data->base + EXYNOS7_THD_TEMP_RISE7_6 + reg_off); in exynos7_tmu_set_trip_temp()
532 th &= ~(EXYNOS7_TMU_TEMP_MASK << (16 * bit_off)); in exynos7_tmu_set_trip_temp()
533 th |= temp_to_code(data, temp) << (16 * bit_off); in exynos7_tmu_set_trip_temp()
534 writel(th, data->base + EXYNOS7_THD_TEMP_RISE7_6 + reg_off); in exynos7_tmu_set_trip_temp()
541 u32 th; in exynos7_tmu_set_trip_hyst() local
543 reg_off = ((7 - trip) / 2) * 4; in exynos7_tmu_set_trip_hyst()
546 th = readl(data->base + EXYNOS7_THD_TEMP_FALL7_6 + reg_off); in exynos7_tmu_set_trip_hyst()
547 th &= ~(EXYNOS7_TMU_TEMP_MASK << (16 * bit_off)); in exynos7_tmu_set_trip_hyst()
548 th |= temp_to_code(data, temp - hyst) << (16 * bit_off); in exynos7_tmu_set_trip_hyst()
549 writel(th, data->base + EXYNOS7_THD_TEMP_FALL7_6 + reg_off); in exynos7_tmu_set_trip_hyst()
575 (1 << (EXYNOS_TMU_INTEN_RISE0_SHIFT + i * 4)); in exynos4210_tmu_control()
907 data->ntrip = 4; in exynos_map_dt_data()
927 data->ntrip = 4; in exynos_map_dt_data()