Home
last modified time | relevance | path

Searched refs:trip_id (Results 1 – 17 of 17) sorted by relevance

/linux-6.6.21/drivers/thermal/
Dthermal_trip.c113 int __thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id, in __thermal_zone_get_trip() argument
116 if (!tz || !tz->trips || trip_id < 0 || trip_id >= tz->num_trips || !trip) in __thermal_zone_get_trip()
119 *trip = tz->trips[trip_id]; in __thermal_zone_get_trip()
124 int thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id, in thermal_zone_get_trip() argument
130 ret = __thermal_zone_get_trip(tz, trip_id, trip); in thermal_zone_get_trip()
137 int thermal_zone_set_trip(struct thermal_zone_device *tz, int trip_id, in thermal_zone_set_trip() argument
146 ret = __thermal_zone_get_trip(tz, trip_id, &t); in thermal_zone_set_trip()
154 ret = tz->ops->set_trip_temp(tz, trip_id, trip->temperature); in thermal_zone_set_trip()
160 ret = tz->ops->set_trip_hyst(tz, trip_id, trip->hysteresis); in thermal_zone_set_trip()
166 tz->trips[trip_id] = *trip; in thermal_zone_set_trip()
[all …]
Dthermal_netlink.c59 int trip_id; member
131 nla_put_u32(p->msg, THERMAL_GENL_ATTR_TZ_TRIP_ID, p->trip_id) || in thermal_genl_event_tz_trip_up()
141 nla_put_u32(p->msg, THERMAL_GENL_ATTR_TZ_TRIP_ID, p->trip_id) || in thermal_genl_event_tz_trip_add()
153 nla_put_u32(p->msg, THERMAL_GENL_ATTR_TZ_TRIP_ID, p->trip_id)) in thermal_genl_event_tz_trip_delete()
333 int thermal_notify_tz_trip_down(int tz_id, int trip_id, int temp) in thermal_notify_tz_trip_down() argument
335 struct param p = { .tz_id = tz_id, .trip_id = trip_id, .temp = temp }; in thermal_notify_tz_trip_down()
340 int thermal_notify_tz_trip_up(int tz_id, int trip_id, int temp) in thermal_notify_tz_trip_up() argument
342 struct param p = { .tz_id = tz_id, .trip_id = trip_id, .temp = temp }; in thermal_notify_tz_trip_up()
347 int thermal_notify_tz_trip_add(int tz_id, int trip_id, int trip_type, in thermal_notify_tz_trip_add() argument
350 struct param p = { .tz_id = tz_id, .trip_id = trip_id, in thermal_notify_tz_trip_add()
[all …]
Dgov_step_wise.c82 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip_id) in thermal_zone_trip_update() argument
84 const struct thermal_trip *trip = &tz->trips[trip_id]; in thermal_zone_trip_update()
90 trend = get_tz_trend(tz, trip_id); in thermal_zone_trip_update()
94 trace_thermal_zone_trip(tz, trip_id, trip->type); in thermal_zone_trip_update()
98 trip_id, trip->type, trip->temperature, trend, throttle); in thermal_zone_trip_update()
Dthermal_sysfs.c87 int trip_id, result; in trip_point_type_show() local
89 if (sscanf(attr->attr.name, "trip_point_%d_type", &trip_id) != 1) in trip_point_type_show()
95 result = __thermal_zone_get_trip(tz, trip_id, &trip); in trip_point_type_show()
124 int trip_id, ret; in trip_point_temp_store() local
126 if (sscanf(attr->attr.name, "trip_point_%d_temp", &trip_id) != 1) in trip_point_temp_store()
136 ret = __thermal_zone_get_trip(tz, trip_id, &trip); in trip_point_temp_store()
144 ret = thermal_zone_set_trip(tz, trip_id, &trip); in trip_point_temp_store()
157 int trip_id, ret; in trip_point_temp_show() local
159 if (sscanf(attr->attr.name, "trip_point_%d_temp", &trip_id) != 1) in trip_point_temp_show()
165 ret = __thermal_zone_get_trip(tz, trip_id, &trip); in trip_point_temp_show()
[all …]
Dthermal_of.c287 static int __thermal_of_unbind(struct device_node *map_np, int index, int trip_id, in __thermal_of_unbind() argument
311 ret = thermal_zone_unbind_cooling_device(tz, trip_id, cdev); in __thermal_of_unbind()
318 static int __thermal_of_bind(struct device_node *map_np, int index, int trip_id, in __thermal_of_bind() argument
344 ret = thermal_zone_bind_cooling_device(tz, trip_id, cdev, cooling_spec.args[1], in __thermal_of_bind()
359 int count, i, trip_id; in thermal_of_for_each_cooling_device() local
365 trip_id = of_find_trip_id(tz_np, tr_np); in thermal_of_for_each_cooling_device()
366 if (trip_id < 0) in thermal_of_for_each_cooling_device()
367 return trip_id; in thermal_of_for_each_cooling_device()
381 action(map_np, i, trip_id, tz, cdev); in thermal_of_for_each_cooling_device()
Dthermal_core.c344 static void handle_thermal_trip(struct thermal_zone_device *tz, int trip_id) in handle_thermal_trip() argument
349 if (test_bit(trip_id, &tz->trips_disabled)) in handle_thermal_trip()
352 __thermal_zone_get_trip(tz, trip_id, &trip); in handle_thermal_trip()
360 thermal_notify_tz_trip_up(tz->id, trip_id, in handle_thermal_trip()
364 thermal_notify_tz_trip_down(tz->id, trip_id, in handle_thermal_trip()
369 handle_critical_trips(tz, trip_id, trip.temperature, trip.type); in handle_thermal_trip()
371 handle_non_critical_trips(tz, trip_id); in handle_thermal_trip()
Dthermal_core.h120 int __thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id,
Dgov_power_allocator.c700 static int power_allocator_throttle(struct thermal_zone_device *tz, int trip_id) in power_allocator_throttle() argument
713 if (trip_id != params->trip_max_desired_temperature) in power_allocator_throttle()
Dimx_thermal.c333 static int imx_set_trip_temp(struct thermal_zone_device *tz, int trip_id, in imx_set_trip_temp() argument
344 ret = __thermal_zone_get_trip(tz, trip_id, &trip); in imx_set_trip_temp()
/linux-6.6.21/tools/thermal/thermal-engine/
Dthermal-engine.c114 static int trip_high(int tz_id, int trip_id, int temp, void *arg) in trip_high() argument
120 tz_id, tz->name, trip_id, temp); in trip_high()
125 static int trip_low(int tz_id, int trip_id, int temp, void *arg) in trip_low() argument
131 tz_id, tz->name, trip_id, temp); in trip_low()
136 static int trip_add(int tz_id, int trip_id, int type, int temp, int hyst, __maybe_unused void *arg) in trip_add() argument
139 tz_id, trip_id, type, temp, hyst); in trip_add()
144 static int trip_delete(int tz_id, int trip_id, __maybe_unused void *arg) in trip_delete() argument
146 INFO("Trip point deleted %d: id=%d\n", tz_id, trip_id); in trip_delete()
151 static int trip_change(int tz_id, int trip_id, int type, int temp, in trip_change() argument
158 tz_id, trip_id, type, temp, hyst); in trip_change()
[all …]
/linux-6.6.21/tools/lib/thermal/include/
Dthermal.h25 int (*trip_high)(int tz_id, int trip_id, int temp, void *arg);
26 int (*trip_low)(int tz_id, int trip_id, int temp, void *arg);
27 int (*trip_add)(int tz_id, int trip_id, int type, int temp, int hyst, void *arg);
28 int (*trip_change)(int tz_id, int trip_id, int type, int temp, int hyst, void *arg);
29 int (*trip_delete)(int tz_id, int trip_id, void *arg);
/linux-6.6.21/include/linux/
Dthermal.h282 int __thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id,
284 int thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id,
287 int thermal_zone_set_trip(struct thermal_zone_device *tz, int trip_id,
Dscmi_protocol.h482 u32 sensor_id, u8 trip_id, u64 trip_value);
/linux-6.6.21/drivers/thermal/qcom/
Dqcom-spmi-temp-alarm.c265 static int qpnp_tm_set_trip_temp(struct thermal_zone_device *tz, int trip_id, int temp) in qpnp_tm_set_trip_temp() argument
271 ret = __thermal_zone_get_trip(chip->tz_dev, trip_id, &trip); in qpnp_tm_set_trip_temp()
/linux-6.6.21/drivers/thermal/samsung/
Dexynos_tmu.c351 int trip_id, u8 temp) in exynos4210_tmu_set_trip_temp() argument
361 if (trip_id == 0) { in exynos4210_tmu_set_trip_temp()
367 writeb(temp, data->base + EXYNOS4210_TMU_REG_TRIG_LEVEL0 + trip_id * 4); in exynos4210_tmu_set_trip_temp()
/linux-6.6.21/drivers/thermal/tegra/
Dsoctherm.c585 static int tegra_thermctl_set_trip_temp(struct thermal_zone_device *tz, int trip_id, int temp) in tegra_thermctl_set_trip_temp() argument
597 ret = __thermal_zone_get_trip(tz, trip_id, &trip); in tegra_thermctl_set_trip_temp()
623 if (get_thermal_instance(tz, cdev, trip_id)) in tegra_thermctl_set_trip_temp()
690 static int get_hot_temp(struct thermal_zone_device *tz, int *trip_id, int *temp) in get_hot_temp() argument
702 *trip_id = i; in get_hot_temp()
/linux-6.6.21/drivers/firmware/arm_scmi/
Dsensors.c736 u32 sensor_id, u8 trip_id, u64 trip_value) in scmi_sensor_trip_point_config() argument
750 trip->event_control = cpu_to_le32(evt_cntl | SENSOR_TP_ID(trip_id)); in scmi_sensor_trip_point_config()