Searched refs:trip_id (Results 1 - 14 of 14) sorted by relevance

/linux-master/drivers/thermal/
H A Dthermal_debugfs.c559 int trip_id = thermal_zone_trip_id(tz, trip); local
611 * Each time a trip point is crossed the way up, the trip_id
623 tz_dbg->trips_crossed[tz_dbg->nr_trips++] = trip_id;
626 tze->trip_stats[trip_id].timestamp = now;
627 tze->trip_stats[trip_id].max = max(tze->trip_stats[trip_id].max, temperature);
628 tze->trip_stats[trip_id].min = min(tze->trip_stats[trip_id].min, temperature);
629 tze->trip_stats[trip_id].count++;
630 tze->trip_stats[trip_id]
645 int trip_id = thermal_zone_trip_id(tz, trip); local
701 int trip_id, i; local
759 int trip_id; local
[all...]
H A Dthermal_trip.c107 int __thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id, argument
110 if (!tz || trip_id < 0 || trip_id >= tz->num_trips || !trip)
113 *trip = tz->trips[trip_id];
118 int thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id, argument
124 ret = __thermal_zone_get_trip(tz, trip_id, trip);
H A Dgov_step_wise.c74 int trip_id = thermal_zone_trip_id(tz, trip); local
84 trace_thermal_zone_trip(tz, trip_id, trip->type);
88 trip_id, trip->type, trip->temperature, trend, throttle);
H A Dthermal_of.c293 static int __thermal_of_unbind(struct device_node *map_np, int index, int trip_id, argument
317 ret = thermal_zone_unbind_cooling_device(tz, trip_id, cdev);
324 static int __thermal_of_bind(struct device_node *map_np, int index, int trip_id, argument
350 ret = thermal_zone_bind_cooling_device(tz, trip_id, cdev, cooling_spec.args[1],
365 int count, i, trip_id; local
371 trip_id = of_find_trip_id(tz_np, tr_np);
372 if (trip_id < 0)
373 return trip_id;
387 action(map_np, i, trip_id, tz, cdev);
H A Dthermal_sysfs.c86 int trip_id; local
88 if (sscanf(attr->attr.name, "trip_point_%d_type", &trip_id) != 1)
91 switch (tz->trips[trip_id].type) {
111 int trip_id, ret; local
118 if (sscanf(attr->attr.name, "trip_point_%d_temp", &trip_id) != 1)
123 trip = &tz->trips[trip_id];
127 ret = tz->ops.set_trip_temp(tz, trip_id, temp);
148 int trip_id; local
150 if (sscanf(attr->attr.name, "trip_point_%d_temp", &trip_id) != 1)
153 return sprintf(buf, "%d\n", tz->trips[trip_id]
162 int trip_id, ret; local
192 int trip_id; local
[all...]
H A Dthermal_netlink.c64 int trip_id; member in struct:param
144 nla_put_u32(p->msg, THERMAL_GENL_ATTR_TZ_TRIP_ID, p->trip_id) ||
154 nla_put_u32(p->msg, THERMAL_GENL_ATTR_TZ_TRIP_ID, p->trip_id) ||
339 .trip_id = thermal_zone_trip_id(tz, trip),
349 .trip_id = thermal_zone_trip_id(tz, trip),
359 .trip_id = thermal_zone_trip_id(tz, trip),
H A Dimx_thermal.c334 static int imx_set_trip_temp(struct thermal_zone_device *tz, int trip_id, argument
345 ret = __thermal_zone_get_trip(tz, trip_id, &trip);
/linux-master/tools/thermal/thermal-engine/
H A Dthermal-engine.c114 static int trip_high(int tz_id, int trip_id, int temp, void *arg) argument
120 tz_id, tz->name, trip_id, temp);
125 static int trip_low(int tz_id, int trip_id, int temp, void *arg) argument
131 tz_id, tz->name, trip_id, temp);
136 static int trip_add(int tz_id, int trip_id, int type, int temp, int hyst, __maybe_unused void *arg) argument
139 tz_id, trip_id, type, temp, hyst);
144 static int trip_delete(int tz_id, int trip_id, __maybe_unused void *arg) argument
146 INFO("Trip point deleted %d: id=%d\n", tz_id, trip_id);
151 static int trip_change(int tz_id, int trip_id, int type, int temp, argument
158 tz_id, trip_id, typ
[all...]
/linux-master/tools/lib/thermal/include/
H 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-master/include/linux/
H A Dthermal.h306 int __thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id,
308 int thermal_zone_get_trip(struct thermal_zone_device *tz, int trip_id,
H A Dscmi_protocol.h515 u32 sensor_id, u8 trip_id, u64 trip_value);
/linux-master/drivers/thermal/qcom/
H A Dqcom-spmi-temp-alarm.c265 static int qpnp_tm_set_trip_temp(struct thermal_zone_device *tz, int trip_id, int temp) argument
271 ret = __thermal_zone_get_trip(chip->tz_dev, trip_id, &trip);
/linux-master/drivers/thermal/tegra/
H A Dsoctherm.c585 static int tegra_thermctl_set_trip_temp(struct thermal_zone_device *tz, int trip_id, int temp) argument
597 ret = __thermal_zone_get_trip(tz, trip_id, &trip);
623 if (get_thermal_instance(tz, cdev, trip_id))
690 static int get_hot_temp(struct thermal_zone_device *tz, int *trip_id, int *temp) argument
702 *trip_id = i;
/linux-master/drivers/firmware/arm_scmi/
H A Dsensors.c754 u32 sensor_id, u8 trip_id, u64 trip_value)
768 trip->event_control = cpu_to_le32(evt_cntl | SENSOR_TP_ID(trip_id));
753 scmi_sensor_trip_point_config(const struct scmi_protocol_handle *ph, u32 sensor_id, u8 trip_id, u64 trip_value) argument

Completed in 507 milliseconds