Lines Matching refs: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");
275 "More trip points than supported by this TMU.\n");
277 "%d trip points should be configured in polling mode.\n",
298 struct thermal_trip trip;
300 ret = thermal_zone_get_trip(tzd, i, &trip);
304 data->tmu_set_trip_temp(data, i, trip.temperature / MCELSIUS);
305 data->tmu_set_trip_hyst(data, i, trip.temperature / MCELSIUS,
306 trip.hysteresis / MCELSIUS);
353 struct thermal_trip trip;
356 if (thermal_zone_get_trip(data->tzd, 0, &trip))
359 ref = trip.temperature / MCELSIUS;
372 int trip, u8 temp, u8 hyst)
384 int trip, u8 temp)
389 th &= ~(0xff << 8 * trip);
390 th |= temp_to_code(data, temp) << 8 * trip;
393 if (trip == 3) {
401 int trip, u8 temp, u8 hyst)
406 th &= ~(0xff << 8 * trip);
408 th |= temp_to_code(data, temp - hyst) << 8 * trip;
440 int trip, u8 temp)
445 if (trip > 3) {
447 j = trip - 4;
450 j = trip;
460 int trip, u8 temp, u8 hyst)
465 if (trip > 3) {
467 j = trip - 4;
470 j = trip;
513 int trip, u8 temp)
518 reg_off = ((7 - trip) / 2) * 4;
519 bit_off = ((8 - trip) % 2);
528 int trip, u8 temp, u8 hyst)
533 reg_off = ((7 - trip) / 2) * 4;
534 bit_off = ((8 - trip) % 2);
555 struct thermal_trip trip;
562 if (thermal_zone_get_trip(tz, i, &trip))
586 struct thermal_trip trip;
593 if (thermal_zone_get_trip(tz, i, &trip))
618 struct thermal_trip trip;
625 if (thermal_zone_get_trip(tz, i, &trip))