Home
last modified time | relevance | path

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

/linux-6.3-rc2/drivers/thermal/
A Dthermal_trip.c108 if (!tz || trip_id < 0 || trip_id >= tz->num_trips || !trip) in __thermal_zone_get_trip()
112 *trip = tz->trips[trip_id]; in __thermal_zone_get_trip()
117 ret = tz->ops->get_trip_hyst(tz, trip_id, &trip->hysteresis); in __thermal_zone_get_trip()
124 ret = tz->ops->get_trip_temp(tz, trip_id, &trip->temperature); in __thermal_zone_get_trip()
128 return tz->ops->get_trip_type(tz, trip_id, &trip->type); in __thermal_zone_get_trip()
138 ret = __thermal_zone_get_trip(tz, trip_id, trip); in thermal_zone_get_trip()
154 ret = __thermal_zone_get_trip(tz, trip_id, &t); in thermal_zone_set_trip()
162 ret = tz->ops->set_trip_temp(tz, trip_id, trip->temperature); in thermal_zone_set_trip()
168 ret = tz->ops->set_trip_hyst(tz, trip_id, trip->hysteresis); in thermal_zone_set_trip()
174 tz->trips[trip_id] = *trip; in thermal_zone_set_trip()
[all …]
A 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()
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()
350 struct param p = { .tz_id = tz_id, .trip_id = trip_id, in thermal_notify_tz_trip_add()
357 int thermal_notify_tz_trip_delete(int tz_id, int trip_id) in thermal_notify_tz_trip_delete() argument
359 struct param p = { .tz_id = tz_id, .trip_id = trip_id }; in thermal_notify_tz_trip_delete()
[all …]
A Dgov_bang_bang.c16 static int thermal_zone_trip_update(struct thermal_zone_device *tz, int trip_id) in thermal_zone_trip_update() argument
22 ret = __thermal_zone_get_trip(tz, trip_id, &trip); in thermal_zone_trip_update()
24 pr_warn_once("Failed to retrieve trip point %d\n", trip_id); in thermal_zone_trip_update()
33 trip_id, trip.temperature, tz->temperature, in thermal_zone_trip_update()
37 if (instance->trip != trip_id) in thermal_zone_trip_update()
A Dgov_step_wise.c98 static void thermal_zone_trip_update(struct thermal_zone_device *tz, int trip_id) in thermal_zone_trip_update() argument
106 __thermal_zone_get_trip(tz, trip_id, &trip); in thermal_zone_trip_update()
108 trend = get_tz_trend(tz, trip_id); in thermal_zone_trip_update()
112 trace_thermal_zone_trip(tz, trip_id, trip.type); in thermal_zone_trip_update()
116 trip_id, trip.type, trip.temperature, trend, throttle); in thermal_zone_trip_update()
119 if (instance->trip != trip_id) in thermal_zone_trip_update()
A Dthermal_sysfs.c87 int trip_id, result; in trip_point_type_show() local
124 int trip_id, ret; in trip_point_temp_store() local
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
165 ret = __thermal_zone_get_trip(tz, trip_id, &trip); in trip_point_temp_show()
183 int trip_id, ret; in trip_point_hyst_store() local
198 ret = __thermal_zone_get_trip(tz, trip_id, &trip); in trip_point_hyst_store()
202 ret = thermal_zone_set_trip(tz, trip_id, &trip); in trip_point_hyst_store()
215 int trip_id, ret; in trip_point_hyst_show() local
[all …]
A Dthermal_of.c292 static int __thermal_of_unbind(struct device_node *map_np, int index, int trip_id, in __thermal_of_unbind() argument
316 ret = thermal_zone_unbind_cooling_device(tz, trip_id, cdev); in __thermal_of_unbind()
323 static int __thermal_of_bind(struct device_node *map_np, int index, int trip_id, in __thermal_of_bind() argument
349 ret = thermal_zone_bind_cooling_device(tz, trip_id, cdev, cooling_spec.args[1], in __thermal_of_bind()
364 int count, i, trip_id; in thermal_of_for_each_cooling_device() local
370 trip_id = of_find_trip_id(tz_np, tr_np); in thermal_of_for_each_cooling_device()
371 if (trip_id < 0) in thermal_of_for_each_cooling_device()
372 return trip_id; in thermal_of_for_each_cooling_device()
386 action(map_np, i, trip_id, tz, cdev); in thermal_of_for_each_cooling_device()
A Dthermal_core.c346 static void handle_thermal_trip(struct thermal_zone_device *tz, int trip_id) in handle_thermal_trip() argument
351 if (test_bit(trip_id, &tz->trips_disabled)) in handle_thermal_trip()
354 __thermal_zone_get_trip(tz, trip_id, &trip); in handle_thermal_trip()
359 thermal_notify_tz_trip_up(tz->id, trip_id, in handle_thermal_trip()
363 thermal_notify_tz_trip_down(tz->id, trip_id, in handle_thermal_trip()
368 handle_critical_trips(tz, trip_id, trip.temperature, trip.type); in handle_thermal_trip()
370 handle_non_critical_trips(tz, trip_id); in handle_thermal_trip()
A Dthermal_core.h121 int __thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id,
A Dgov_power_allocator.c695 static int power_allocator_throttle(struct thermal_zone_device *tz, int trip_id) in power_allocator_throttle() argument
708 if (trip_id != params->trip_max_desired_temperature) in power_allocator_throttle()
/linux-6.3-rc2/tools/thermal/thermal-engine/
A 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()
139 tz_id, trip_id, type, temp, hyst); in trip_add()
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()
160 tz->trip[trip_id].type = type; in trip_change()
161 tz->trip[trip_id].temp = temp; in trip_change()
[all …]
/linux-6.3-rc2/tools/lib/thermal/include/
A 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.3-rc2/include/linux/
A Dthermal.h337 int __thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id,
339 int thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id,
342 int thermal_zone_set_trip(struct thermal_zone_device *tz, int trip_id,
A Dscmi_protocol.h472 u32 sensor_id, u8 trip_id, u64 trip_value);
/linux-6.3-rc2/drivers/thermal/qcom/
A Dqcom-spmi-temp-alarm.c266 static int qpnp_tm_set_trip_temp(struct thermal_zone_device *tz, int trip_id, int temp) in qpnp_tm_set_trip_temp() argument
272 ret = __thermal_zone_get_trip(chip->tz_dev, trip_id, &trip); in qpnp_tm_set_trip_temp()
/linux-6.3-rc2/drivers/thermal/samsung/
A 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.3-rc2/drivers/thermal/tegra/
A 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.3-rc2/drivers/firmware/arm_scmi/
A 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()

Completed in 40 milliseconds