Lines Matching full:trip

165  * @ntrip: number of supported trip points.
167 * @tmu_set_trip_temp: SoC specific method to set trip (rising threshold)
196 void (*tmu_set_trip_temp)(struct exynos_tmu_data *data, int trip,
198 void (*tmu_set_trip_hyst)(struct exynos_tmu_data *data, int trip,
269 "No CRITICAL trip point defined in device tree!\n"); in exynos_tmu_initialize()
275 "More trip points than supported by this TMU.\n"); in exynos_tmu_initialize()
277 "%d trip points should be configured in polling mode.\n", in exynos_tmu_initialize()
298 struct thermal_trip trip; in exynos_tmu_initialize() local
300 ret = thermal_zone_get_trip(tzd, i, &trip); in exynos_tmu_initialize()
304 data->tmu_set_trip_temp(data, i, trip.temperature / MCELSIUS); in exynos_tmu_initialize()
305 data->tmu_set_trip_hyst(data, i, trip.temperature / MCELSIUS, in exynos_tmu_initialize()
306 trip.hysteresis / MCELSIUS); in exynos_tmu_initialize()
353 struct thermal_trip trip; in exynos4210_tmu_set_trip_temp() local
356 if (thermal_zone_get_trip(data->tzd, 0, &trip)) in exynos4210_tmu_set_trip_temp()
359 ref = trip.temperature / MCELSIUS; in exynos4210_tmu_set_trip_temp()
372 int trip, u8 temp, u8 hyst) in exynos4210_tmu_set_trip_hyst() argument
384 int trip, u8 temp) in exynos4412_tmu_set_trip_temp() argument
389 th &= ~(0xff << 8 * trip); in exynos4412_tmu_set_trip_temp()
390 th |= temp_to_code(data, temp) << 8 * trip; in exynos4412_tmu_set_trip_temp()
393 if (trip == 3) { in exynos4412_tmu_set_trip_temp()
401 int trip, u8 temp, u8 hyst) in exynos4412_tmu_set_trip_hyst() argument
406 th &= ~(0xff << 8 * trip); in exynos4412_tmu_set_trip_hyst()
408 th |= temp_to_code(data, temp - hyst) << 8 * trip; in exynos4412_tmu_set_trip_hyst()
440 int trip, u8 temp) in exynos5433_tmu_set_trip_temp() argument
445 if (trip > 3) { in exynos5433_tmu_set_trip_temp()
447 j = trip - 4; in exynos5433_tmu_set_trip_temp()
450 j = trip; in exynos5433_tmu_set_trip_temp()
460 int trip, u8 temp, u8 hyst) in exynos5433_tmu_set_trip_hyst() argument
465 if (trip > 3) { in exynos5433_tmu_set_trip_hyst()
467 j = trip - 4; in exynos5433_tmu_set_trip_hyst()
470 j = trip; in exynos5433_tmu_set_trip_hyst()
513 int trip, u8 temp) in exynos7_tmu_set_trip_temp() argument
518 reg_off = ((7 - trip) / 2) * 4; in exynos7_tmu_set_trip_temp()
519 bit_off = ((8 - trip) % 2); in exynos7_tmu_set_trip_temp()
528 int trip, u8 temp, u8 hyst) in exynos7_tmu_set_trip_hyst() argument
533 reg_off = ((7 - trip) / 2) * 4; in exynos7_tmu_set_trip_hyst()
534 bit_off = ((8 - trip) % 2); in exynos7_tmu_set_trip_hyst()
555 struct thermal_trip trip; in exynos4210_tmu_control() local
562 if (thermal_zone_get_trip(tz, i, &trip)) in exynos4210_tmu_control()
586 struct thermal_trip trip; in exynos5433_tmu_control() local
593 if (thermal_zone_get_trip(tz, i, &trip)) in exynos5433_tmu_control()
618 struct thermal_trip trip; in exynos7_tmu_control() local
625 if (thermal_zone_get_trip(tz, i, &trip)) in exynos7_tmu_control()