Home
last modified time | relevance | path

Searched refs:tz (Results 1 - 21 of 21) sorted by relevance

/device/soc/rockchip/common/sdk_linux/drivers/thermal/
H A Dthermal_core.c72 * @tz: a valid pointer to a struct thermal_zone_device
78 static void bind_previous_governor(struct thermal_zone_device *tz, const char *failed_gov_name) in bind_previous_governor() argument
80 if (tz->governor && tz->governor->bind_to_tz) { in bind_previous_governor()
81 if (tz->governor->bind_to_tz(tz)) { in bind_previous_governor()
82 dev_err(&tz->device, in bind_previous_governor()
85 failed_gov_name, tz->governor->name, tz->type); in bind_previous_governor()
86 tz in bind_previous_governor()
100 thermal_set_governor(struct thermal_zone_device *tz, struct thermal_governor *new_gov) thermal_set_governor() argument
206 thermal_zone_device_set_policy(struct thermal_zone_device *tz, char *policy) thermal_zone_device_set_policy() argument
297 thermal_zone_device_set_polling(struct thermal_zone_device *tz, int delay) thermal_zone_device_set_polling() argument
308 should_stop_polling(struct thermal_zone_device *tz) should_stop_polling() argument
313 monitor_thermal_zone(struct thermal_zone_device *tz) monitor_thermal_zone() argument
332 handle_non_critical_trips(struct thermal_zone_device *tz, int trip) handle_non_critical_trips() argument
384 handle_critical_trips(struct thermal_zone_device *tz, int trip, enum thermal_trip_type trip_type) handle_critical_trips() argument
418 handle_thermal_trip(struct thermal_zone_device *tz, int trip) handle_thermal_trip() argument
455 update_temperature(struct thermal_zone_device *tz) update_temperature() argument
477 thermal_zone_device_init(struct thermal_zone_device *tz) thermal_zone_device_init() argument
486 thermal_zone_device_reset(struct thermal_zone_device *tz) thermal_zone_device_reset() argument
492 thermal_zone_device_set_mode(struct thermal_zone_device *tz, enum thermal_device_mode mode) thermal_zone_device_set_mode() argument
526 thermal_zone_device_enable(struct thermal_zone_device *tz) thermal_zone_device_enable() argument
532 thermal_zone_device_disable(struct thermal_zone_device *tz) thermal_zone_device_disable() argument
538 thermal_zone_device_is_enabled(struct thermal_zone_device *tz) thermal_zone_device_is_enabled() argument
552 thermal_zone_device_update(struct thermal_zone_device *tz, enum thermal_notify_event event) thermal_zone_device_update() argument
592 thermal_notify_framework(struct thermal_zone_device *tz, int trip) thermal_notify_framework() argument
600 struct thermal_zone_device *tz = container_of(work, struct thermal_zone_device, poll_queue.work); thermal_zone_device_check() local
694 thermal_zone_device_rebind_exception(struct thermal_zone_device *tz, const char *cdev_type, size_t size) thermal_zone_device_rebind_exception() argument
751 struct thermal_zone_device *tz; for_each_thermal_zone() local
769 struct thermal_zone_device *tz, *match = NULL; thermal_zone_get_by_id() local
784 thermal_zone_device_unbind_exception(struct thermal_zone_device *tz, const char *cdev_type, size_t size) thermal_zone_device_unbind_exception() argument
833 thermal_zone_bind_cooling_device(struct thermal_zone_device *tz, int trip, struct thermal_cooling_device *cdev, unsigned long upper, unsigned long lower, unsigned int weight) thermal_zone_bind_cooling_device() argument
965 thermal_zone_unbind_cooling_device(struct thermal_zone_device *tz, int trip, struct thermal_cooling_device *cdev) thermal_zone_unbind_cooling_device() argument
998 struct thermal_zone_device *tz; thermal_release() local
1016 print_bind_err_msg(struct thermal_zone_device *tz, struct thermal_cooling_device *cdev, int ret) print_bind_err_msg() argument
1021 __bind(struct thermal_zone_device *tz, int mask, struct thermal_cooling_device *cdev, unsigned long *limits, unsigned int weight) __bind() argument
1257 __unbind(struct thermal_zone_device *tz, int mask, struct thermal_cooling_device *cdev) __unbind() argument
1279 struct thermal_zone_device *tz; thermal_cooling_device_unregister() local
1326 bind_tz(struct thermal_zone_device *tz) bind_tz() argument
1400 struct thermal_zone_device *tz; thermal_zone_device_register() local
1545 thermal_zone_device_unregister(struct thermal_zone_device *tz) thermal_zone_device_unregister() argument
1645 struct thermal_zone_device *tz; thermal_pm_notify() local
[all...]
H A Dthermal_core.h78 int get_tz_trend(struct thermal_zone_device *tz, int trip);
80 struct thermal_instance *get_thermal_instance(struct thermal_zone_device *tz, struct thermal_cooling_device *cdev,
91 struct thermal_zone_device *tz; member
102 struct list_head tz_node; /* node in tz->thermal_instances */
113 void thermal_zone_device_rebind_exception(struct thermal_zone_device *tz, const char *cdev_type, size_t size);
114 void thermal_zone_device_unbind_exception(struct thermal_zone_device *tz, const char *cdev_type, size_t size);
115 int thermal_zone_device_set_policy(struct thermal_zone_device *tz, char *policy);
119 void thermal_zone_set_trips(struct thermal_zone_device *tz);
150 static inline int of_thermal_get_ntrips(struct thermal_zone_device *tz) in of_thermal_get_ntrips() argument
154 static inline bool of_thermal_is_trip_valid(struct thermal_zone_device *tz, in in of_thermal_get_ntrips() argument
158 of_thermal_get_trip_points(struct thermal_zone_device *tz) of_thermal_get_trip_points() argument
[all...]
H A Drockchip_thermal.c1407 struct thermal_zone_device *tz = sensor->tzd; in rockchip_dump_temperature() local
1409 if (tz->temperature != THERMAL_TEMP_INVALID) { in rockchip_dump_temperature()
1410 dev_warn(&pdev->dev, "channal %d: temperature(%d C)\n", i, tz->temperature / ROCKCHIP_THERMAL_ONETHOUSAND); in rockchip_dump_temperature()
/device/soc/rockchip/common/sdk_linux/include/linux/
H A Dthermal.h192 int (*bind_to_tz)(struct thermal_zone_device *tz);
193 void (*unbind_from_tz)(struct thermal_zone_device *tz);
194 int (*throttle)(struct thermal_zone_device *tz, int trip);
229 int (*match)(struct thermal_zone_device *tz, struct thermal_cooling_device *cdev);
314 void thermal_zone_of_sensor_unregister(struct device *dev, struct thermal_zone_device *tz);
317 void devm_thermal_zone_of_sensor_unregister(struct device *dev, struct thermal_zone_device *tz);
330 static inline void thermal_zone_of_sensor_unregister(struct device *dev, struct thermal_zone_device *tz) in thermal_zone_of_sensor_unregister() argument
341 static inline void devm_thermal_zone_of_sensor_unregister(struct device *dev, struct thermal_zone_device *tz) in devm_thermal_zone_of_sensor_unregister() argument
367 int thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp);
368 int thermal_zone_get_slope(struct thermal_zone_device *tz);
383 thermal_zone_device_unregister(struct thermal_zone_device *tz) thermal_zone_device_unregister() argument
410 thermal_zone_get_temp(struct thermal_zone_device *tz, int *temp) thermal_zone_get_temp() argument
414 thermal_zone_get_slope(struct thermal_zone_device *tz) thermal_zone_get_slope() argument
418 thermal_zone_get_offset(struct thermal_zone_device *tz) thermal_zone_get_offset() argument
426 thermal_notify_framework(struct thermal_zone_device *tz, int trip) thermal_notify_framework() argument
430 thermal_zone_device_enable(struct thermal_zone_device *tz) thermal_zone_device_enable() argument
435 thermal_zone_device_disable(struct thermal_zone_device *tz) thermal_zone_device_disable() argument
440 thermal_zone_device_is_enabled(struct thermal_zone_device *tz) thermal_zone_device_is_enabled() argument
[all...]
/device/soc/rockchip/common/vendor/drivers/gpu/arm/bifrost/ipa/
H A Dmali_kbase_ipa_simple.c43 static int kbase_simple_power_model_get_dummy_temp(struct thermal_zone_device *tz, unsigned long *temp) in kbase_simple_power_model_get_dummy_temp() argument
52 static int kbase_simple_power_model_get_dummy_temp(struct thermal_zone_device *tz, int *temp) in kbase_simple_power_model_get_dummy_temp() argument
63 #define thermal_zone_get_temp(tz, temp) kbase_simple_power_model_get_dummy_temp(tz, temp)
141 * because we don't know if tz->lock is held in the same thread. So poll it in
155 struct thermal_zone_device *tz = READ_ONCE(model_data->gpu_tz); in poll_temperature() local
157 if (tz) { in poll_temperature()
160 ret = thermal_zone_get_temp(tz, &temp); in poll_temperature()
279 struct thermal_zone_device *tz; in kbase_simple_power_model_recalculate() local
293 * ipa.lock --> thermal_list_lock --> tz in kbase_simple_power_model_recalculate()
[all...]
/device/soc/rockchip/rk3588/kernel/drivers/soc/rockchip/
H A Dthermal_core.h88 int get_tz_trend(struct thermal_zone_device *tz, int trip);
91 get_thermal_instance(struct thermal_zone_device *tz,
103 struct thermal_zone_device *tz; member
114 struct list_head tz_node; /* node in tz->thermal_instances */
135 void thermal_zone_set_trips(struct thermal_zone_device *tz);
166 static inline int of_thermal_get_ntrips(struct thermal_zone_device *tz) in of_thermal_get_ntrips() argument
170 static inline bool of_thermal_is_trip_valid(struct thermal_zone_device *tz, in of_thermal_is_trip_valid() argument
176 of_thermal_get_trip_points(struct thermal_zone_device *tz) in of_thermal_get_trip_points() argument
182 int thermal_zone_device_is_enabled(struct thermal_zone_device *tz);
H A Drockchip_ipa.c81 model_data->tz = thermal_zone_get_zone_by_name(tz_name); in rockchip_ipa_power_model_init()
82 if (IS_ERR_OR_NULL(model_data->tz)) { in rockchip_ipa_power_model_init()
84 model_data->tz = NULL; in rockchip_ipa_power_model_init()
203 ret = data->tz->ops->get_temp(data->tz, &temp); in rockchip_ipa_get_static_power()
206 __func__, data->tz->type); in rockchip_ipa_get_static_power()
H A Drockchip_pvtm.c77 struct thermal_zone_device *tz; member
99 if (pvtm->tz && pvtm->tz->ops && pvtm->tz->ops->get_temp) { in pvtm_value_show()
100 ret = pvtm->tz->ops->get_temp(pvtm->tz, &cur_temp); in pvtm_value_show()
877 pvtm->tz = thermal_zone_get_zone_by_name(tz_name); in rockchip_pvtm_init()
878 if (IS_ERR(pvtm->tz)) { in rockchip_pvtm_init()
880 pvtm->tz = NULL; in rockchip_pvtm_init()
H A Drockchip_system_monitor.c72 struct thermal_zone_device *tz; member
952 ret = thermal_zone_get_temp(system_monitor->tz, &temp); in rockchip_system_monitor_wide_temp_init()
1301 static int notify_dummy(struct thermal_zone_device *tz, int trip) in notify_dummy() argument
1323 monitor->tz = thermal_zone_get_zone_by_name(tz_name); in rockchip_system_monitor_parse_dt()
1324 if (IS_ERR(monitor->tz)) { in rockchip_system_monitor_parse_dt()
1325 monitor->tz = NULL; in rockchip_system_monitor_parse_dt()
1345 if (monitor->tz->governor->unbind_from_tz) in rockchip_system_monitor_parse_dt()
1346 monitor->tz->governor->unbind_from_tz(monitor->tz); in rockchip_system_monitor_parse_dt()
1347 monitor->tz in rockchip_system_monitor_parse_dt()
[all...]
H A Drockchip_opp_select.c58 struct thermal_zone_device *tz; member
325 pvtm->tz = thermal_zone_get_zone_by_name(pvtm->tz_name); in rockchip_parse_pvtm_config()
326 if (IS_ERR(pvtm->tz)) in rockchip_parse_pvtm_config()
328 if (!pvtm->tz->ops->get_temp) in rockchip_parse_pvtm_config()
408 pvtm->tz->ops->get_temp(pvtm->tz, &cur_temp); in rockchip_get_pvtm_specific_value()
/device/soc/rockchip/common/kernel/drivers/gpu/arm/bifrost/ipa/
H A Dmali_kbase_ipa_simple.c52 struct thermal_zone_device *tz, in kbase_simple_power_model_get_dummy_temp()
63 #define thermal_zone_get_temp(tz, temp) \
64 kbase_simple_power_model_get_dummy_temp(tz, temp)
142 * because we don't know if tz->lock is held in the same thread. So poll it in
154 struct thermal_zone_device *tz = READ_ONCE(model_data->gpu_tz); in poll_temperature() local
156 if (tz) { in poll_temperature()
159 ret = thermal_zone_get_temp(tz, &temp); in poll_temperature()
302 struct thermal_zone_device *tz; in kbase_simple_power_model_recalculate() local
316 * ipa.lock --> thermal_list_lock --> tz->lock gets formed in kbase_simple_power_model_recalculate()
321 tz in kbase_simple_power_model_recalculate()
51 kbase_simple_power_model_get_dummy_temp( struct thermal_zone_device *tz, int *temp) kbase_simple_power_model_get_dummy_temp() argument
[all...]
/device/soc/rockchip/common/vendor/drivers/rockchip/
H A Drockchip_ipa.c83 model_data->tz = thermal_zone_get_zone_by_name(tz_name); in rockchip_ipa_power_model_init()
84 if (IS_ERR_OR_NULL(model_data->tz)) { in rockchip_ipa_power_model_init()
86 model_data->tz = NULL; in rockchip_ipa_power_model_init()
195 ret = data->tz->ops->get_temp(data->tz, &temp); in rockchip_ipa_get_static_power()
197 pr_err("%s:failed to read %s temp\n", __func__, data->tz->type); in rockchip_ipa_get_static_power()
H A Drockchip_pvtm.c72 struct thermal_zone_device *tz; member
94 if (pvtm->tz && pvtm->tz->ops && pvtm->tz->ops->get_temp) { in pvtm_value_show()
95 ret = pvtm->tz->ops->get_temp(pvtm->tz, &cur_temp); in pvtm_value_show()
876 pvtm->tz = thermal_zone_get_zone_by_name(tz_name); in rockchip_pvtm_init()
877 if (IS_ERR(pvtm->tz)) { in rockchip_pvtm_init()
879 pvtm->tz = NULL; in rockchip_pvtm_init()
H A Drockchip_system_monitor.c70 struct thermal_zone_device *tz; member
947 ret = thermal_zone_get_temp(system_monitor->tz, &temp); in rockchip_system_monitor_wide_temp_init()
1284 static int notify_dummy(struct thermal_zone_device *tz, int trip) in notify_dummy() argument
1308 monitor->tz = thermal_zone_get_zone_by_name(tz_name); in rockchip_system_monitor_parse_dt()
1309 if (IS_ERR(monitor->tz)) { in rockchip_system_monitor_parse_dt()
1310 monitor->tz = NULL; in rockchip_system_monitor_parse_dt()
1329 if (monitor->tz->governor->unbind_from_tz) { in rockchip_system_monitor_parse_dt()
1330 monitor->tz->governor->unbind_from_tz(monitor->tz); in rockchip_system_monitor_parse_dt()
1332 monitor->tz in rockchip_system_monitor_parse_dt()
[all...]
H A Drockchip_opp_select.c57 struct thermal_zone_device *tz; member
295 pvtm->tz = thermal_zone_get_zone_by_name(pvtm->tz_name); in rockchip_parse_pvtm_config()
296 if (IS_ERR(pvtm->tz)) { in rockchip_parse_pvtm_config()
299 if (!pvtm->tz->ops->get_temp) { in rockchip_parse_pvtm_config()
380 pvtm->tz->ops->get_temp(pvtm->tz, &cur_temp); in rockchip_get_pvtm_specific_value()
/device/soc/rockchip/rk3588/kernel/include/trace/hooks/
H A Dthermal.h19 TP_PROTO(struct thermal_zone_device *tz, int *irq_wakeable),
20 TP_ARGS(tz, irq_wakeable));
/device/soc/rockchip/common/sdk_linux/include/soc/rockchip/
H A Drockchip_ipa.h12 struct thermal_zone_device *tz; member
/device/soc/rockchip/rk3588/kernel/include/soc/rockchip/
H A Drockchip_ipa.h12 struct thermal_zone_device *tz; member
/device/soc/hisilicon/hi3861v100/sdk_liteos/platform/os/Huawei_LiteOS/components/lib/libc/musl/include/sys/
H A Dtime.h36 int gettimeofday(struct timeval* tv, struct timezone* tz);
/device/soc/rockchip/common/vendor/drivers/video/rockchip/mpp/
H A Dmpp_rkvdec.c406 struct thermal_zone_device *tz = dec->thermal_zone; in model_static_power() local
413 if (!IS_ERR_OR_NULL(tz) && tz->ops->get_temp) { in model_static_power()
416 ret = tz->ops->get_temp(tz, &temperature); in model_static_power()
/device/soc/rockchip/rk3588/kernel/drivers/video/rockchip/mpp/
H A Dmpp_rkvdec.c428 struct thermal_zone_device *tz = dec->thermal_zone; in model_static_power() local
435 if (!IS_ERR_OR_NULL(tz) && tz->ops->get_temp) { in model_static_power()
438 ret = tz->ops->get_temp(tz, &temperature); in model_static_power()

Completed in 22 milliseconds