/linux-6.3-rc2/drivers/thermal/ |
A D | thermal_trip.c | 108 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 D | thermal_netlink.c | 59 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 D | gov_bang_bang.c | 16 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 D | gov_step_wise.c | 98 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 D | thermal_sysfs.c | 87 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 D | thermal_of.c | 292 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 D | thermal_core.c | 346 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 D | thermal_core.h | 121 int __thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id,
|
A D | gov_power_allocator.c | 695 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 D | thermal-engine.c | 114 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 D | thermal.h | 25 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 D | thermal.h | 337 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 D | scmi_protocol.h | 472 u32 sensor_id, u8 trip_id, u64 trip_value);
|
/linux-6.3-rc2/drivers/thermal/qcom/ |
A D | qcom-spmi-temp-alarm.c | 266 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 D | exynos_tmu.c | 351 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 D | soctherm.c | 585 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 D | sensors.c | 736 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()
|