Lines Matching refs:trip
166 * @ntrip: number of supported trip points.
168 * @tmu_set_trip_temp: SoC specific method to set trip (rising threshold)
197 void (*tmu_set_trip_temp)(struct exynos_tmu_data *data, int trip,
199 void (*tmu_set_trip_hyst)(struct exynos_tmu_data *data, int trip,
270 "Cannot get trip points from device tree!\n");
278 "No CRITICAL trip point defined in device tree!\n");
284 "More trip points than supported by this TMU.\n");
286 "%d trip points should be configured in polling mode.\n",
363 int trip, u8 temp)
371 if (trip == 0) {
377 writeb(temp, data->base + EXYNOS4210_TMU_REG_TRIG_LEVEL0 + trip * 4);
382 int trip, u8 temp, u8 hyst)
394 int trip, u8 temp)
399 th &= ~(0xff << 8 * trip);
400 th |= temp_to_code(data, temp) << 8 * trip;
403 if (trip == 3) {
411 int trip, u8 temp, u8 hyst)
416 th &= ~(0xff << 8 * trip);
418 th |= temp_to_code(data, temp - hyst) << 8 * trip;
450 int trip, u8 temp)
455 if (trip > 3) {
457 j = trip - 4;
460 j = trip;
470 int trip, u8 temp, u8 hyst)
475 if (trip > 3) {
477 j = trip - 4;
480 j = trip;
523 int trip, u8 temp)
528 reg_off = ((7 - trip) / 2) * 4;
529 bit_off = ((8 - trip) % 2);
538 int trip, u8 temp, u8 hyst)
543 reg_off = ((7 - trip) / 2) * 4;
544 bit_off = ((8 - trip) % 2);