Home
last modified time | relevance | path

Searched refs:thermal_cooling_device (Results 1 – 25 of 51) sorted by relevance

123

/Linux-v5.4/include/linux/
Dthermal.h58 struct thermal_cooling_device;
95 struct thermal_cooling_device *);
97 struct thermal_cooling_device *);
119 int (*get_max_state) (struct thermal_cooling_device *, unsigned long *);
120 int (*get_cur_state) (struct thermal_cooling_device *, unsigned long *);
121 int (*set_cur_state) (struct thermal_cooling_device *, unsigned long);
122 int (*get_requested_power)(struct thermal_cooling_device *,
124 int (*state2power)(struct thermal_cooling_device *,
126 int (*power2state)(struct thermal_cooling_device *,
130 struct thermal_cooling_device { struct
[all …]
Ddevfreq_cooling.h68 struct thermal_cooling_device *
71 struct thermal_cooling_device *
73 struct thermal_cooling_device *devfreq_cooling_register(struct devfreq *df);
74 void devfreq_cooling_unregister(struct thermal_cooling_device *dfc);
78 struct thermal_cooling_device *
85 static inline struct thermal_cooling_device *
91 static inline struct thermal_cooling_device *
98 devfreq_cooling_unregister(struct thermal_cooling_device *dfc) in devfreq_cooling_unregister()
Dclock_cooling.h28 struct thermal_cooling_device *
35 void clock_cooling_unregister(struct thermal_cooling_device *cdev);
37 unsigned long clock_cooling_get_level(struct thermal_cooling_device *cdev,
40 static inline struct thermal_cooling_device *
46 void clock_cooling_unregister(struct thermal_cooling_device *cdev) in clock_cooling_unregister()
50 unsigned long clock_cooling_get_level(struct thermal_cooling_device *cdev, in clock_cooling_get_level()
Dcpu_cooling.h27 struct thermal_cooling_device *
34 void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev);
37 static inline struct thermal_cooling_device *
44 void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev) in cpufreq_cooling_unregister()
55 struct thermal_cooling_device *
58 static inline struct thermal_cooling_device *
/Linux-v5.4/drivers/thermal/
Dthermal_core.h42 struct thermal_cooling_device *cdev;
61 container_of(_dev, struct thermal_cooling_device, device)
75 void thermal_cooling_device_setup_sysfs(struct thermal_cooling_device *);
76 void thermal_cooling_device_destroy_sysfs(struct thermal_cooling_device *cdev);
84 void thermal_cooling_device_stats_update(struct thermal_cooling_device *cdev,
88 thermal_cooling_device_stats_update(struct thermal_cooling_device *cdev, in thermal_cooling_device_stats_update()
Dclock_cooling.c50 struct thermal_cooling_device *cdev;
171 unsigned long clock_cooling_get_level(struct thermal_cooling_device *cdev, in clock_cooling_get_level()
299 static int clock_cooling_get_max_state(struct thermal_cooling_device *cdev, in clock_cooling_get_max_state()
323 static int clock_cooling_get_cur_state(struct thermal_cooling_device *cdev, in clock_cooling_get_cur_state()
343 static int clock_cooling_set_cur_state(struct thermal_cooling_device *cdev, in clock_cooling_set_cur_state()
374 struct thermal_cooling_device *
377 struct thermal_cooling_device *cdev; in clock_cooling_register()
429 void clock_cooling_unregister(struct thermal_cooling_device *cdev) in clock_cooling_unregister()
Ddevfreq_cooling.c59 struct thermal_cooling_device *cdev;
111 static int devfreq_cooling_get_max_state(struct thermal_cooling_device *cdev, in devfreq_cooling_get_max_state()
121 static int devfreq_cooling_get_cur_state(struct thermal_cooling_device *cdev, in devfreq_cooling_get_cur_state()
131 static int devfreq_cooling_set_cur_state(struct thermal_cooling_device *cdev, in devfreq_cooling_set_cur_state()
273 static int devfreq_cooling_get_requested_power(struct thermal_cooling_device *cdev, in devfreq_cooling_get_requested_power()
333 static int devfreq_cooling_state2power(struct thermal_cooling_device *cdev, in devfreq_cooling_state2power()
352 static int devfreq_cooling_power2state(struct thermal_cooling_device *cdev, in devfreq_cooling_power2state()
504 struct thermal_cooling_device *
508 struct thermal_cooling_device *cdev; in of_devfreq_cooling_register_power()
571 struct thermal_cooling_device *
[all …]
Dcpu_cooling.c280 static int cpufreq_get_max_state(struct thermal_cooling_device *cdev, in cpufreq_get_max_state()
299 static int cpufreq_get_cur_state(struct thermal_cooling_device *cdev, in cpufreq_get_cur_state()
319 static int cpufreq_set_cur_state(struct thermal_cooling_device *cdev, in cpufreq_set_cur_state()
361 static int cpufreq_get_requested_power(struct thermal_cooling_device *cdev, in cpufreq_get_requested_power()
424 static int cpufreq_state2power(struct thermal_cooling_device *cdev, in cpufreq_state2power()
463 static int cpufreq_power2state(struct thermal_cooling_device *cdev, in cpufreq_power2state()
528 static struct thermal_cooling_device *
532 struct thermal_cooling_device *cdev; in __cpufreq_cooling_register()
663 struct thermal_cooling_device *
689 struct thermal_cooling_device *
[all …]
Dthermal_core.c541 int power_actor_get_max_power(struct thermal_cooling_device *cdev, in power_actor_get_max_power()
562 int power_actor_get_min_power(struct thermal_cooling_device *cdev, in power_actor_get_min_power()
590 int power_actor_set_power(struct thermal_cooling_device *cdev, in power_actor_set_power()
615 struct thermal_cooling_device *cdev = NULL; in thermal_zone_device_rebind_exception()
635 struct thermal_cooling_device *cdev = NULL; in thermal_zone_device_unbind_exception()
683 struct thermal_cooling_device *cdev, in thermal_zone_bind_cooling_device()
690 struct thermal_cooling_device *pos2; in thermal_zone_bind_cooling_device()
808 struct thermal_cooling_device *cdev) in thermal_zone_unbind_cooling_device()
841 struct thermal_cooling_device *cdev; in thermal_release()
862 struct thermal_cooling_device *cdev, int ret) in print_bind_err_msg()
[all …]
Dthermal_sysfs.c670 struct thermal_cooling_device *cdev = to_cooling_device(dev); in cdev_type_show()
678 struct thermal_cooling_device *cdev = to_cooling_device(dev); in max_state_show()
691 struct thermal_cooling_device *cdev = to_cooling_device(dev); in cur_state_show()
705 struct thermal_cooling_device *cdev = to_cooling_device(dev); in cur_state_store()
768 void thermal_cooling_device_stats_update(struct thermal_cooling_device *cdev, in thermal_cooling_device_stats_update()
790 struct thermal_cooling_device *cdev = to_cooling_device(dev); in total_trans_show()
805 struct thermal_cooling_device *cdev = to_cooling_device(dev); in time_in_state_ms_show()
826 struct thermal_cooling_device *cdev = to_cooling_device(dev); in reset_store()
848 struct thermal_cooling_device *cdev = to_cooling_device(dev); in trans_table_show()
907 static void cooling_device_stats_setup(struct thermal_cooling_device *cdev) in cooling_device_stats_setup()
[all …]
Dfair_share.c50 struct thermal_cooling_device *cdev, int percentage, int level) in get_target_state()
95 struct thermal_cooling_device *cdev = instance->cdev; in fair_share_throttle()
/Linux-v5.4/drivers/net/wireless/ath/ath10k/
Dthermal.c16 ath10k_thermal_get_max_throttle_state(struct thermal_cooling_device *cdev, in ath10k_thermal_get_max_throttle_state()
25 ath10k_thermal_get_cur_throttle_state(struct thermal_cooling_device *cdev, in ath10k_thermal_get_cur_throttle_state()
38 ath10k_thermal_set_cur_throttle_state(struct thermal_cooling_device *cdev, in ath10k_thermal_set_cur_throttle_state()
156 struct thermal_cooling_device *cdev; in ath10k_thermal_register()
Dthermal.h16 struct thermal_cooling_device *cdev;
/Linux-v5.4/drivers/thermal/intel/int340x_thermal/
Dint3406_thermal.c24 struct thermal_cooling_device *cooling_dev;
41 int3406_thermal_get_max_state(struct thermal_cooling_device *cooling_dev, in int3406_thermal_get_max_state()
51 int3406_thermal_set_cur_state(struct thermal_cooling_device *cooling_dev, in int3406_thermal_set_cur_state()
68 int3406_thermal_get_cur_state(struct thermal_cooling_device *cooling_dev, in int3406_thermal_get_cur_state()
Dint3403_thermal.c40 struct thermal_cooling_device *cdev;
122 static int int3403_get_max_state(struct thermal_cooling_device *cdev, in int3403_get_max_state()
132 static int int3403_get_cur_state(struct thermal_cooling_device *cdev, in int3403_get_cur_state()
148 int3403_set_cur_state(struct thermal_cooling_device *cdev, unsigned long state) in int3403_set_cur_state()
/Linux-v5.4/drivers/platform/x86/
Dacerhdf.c82 static struct thermal_cooling_device *cl_dev;
366 struct thermal_cooling_device *cdev) in acerhdf_bind()
382 struct thermal_cooling_device *cdev) in acerhdf_unbind()
502 static int acerhdf_get_max_state(struct thermal_cooling_device *cdev, in acerhdf_get_max_state()
510 static int acerhdf_get_cur_state(struct thermal_cooling_device *cdev, in acerhdf_get_cur_state()
524 static int acerhdf_set_cur_state(struct thermal_cooling_device *cdev, in acerhdf_set_cur_state()
Dintel_menlow.c47 static int memory_get_max_bandwidth(struct thermal_cooling_device *cdev, in memory_get_max_bandwidth()
73 static int memory_get_cur_bandwidth(struct thermal_cooling_device *cdev, in memory_get_cur_bandwidth()
96 static int memory_set_cur_bandwidth(struct thermal_cooling_device *cdev, in memory_set_cur_bandwidth()
141 struct thermal_cooling_device *cdev; in intel_menlow_memory_add()
183 struct thermal_cooling_device *cdev; in intel_menlow_memory_remove()
/Linux-v5.4/drivers/acpi/
Dprocessor_thermal.c193 processor_get_max_state(struct thermal_cooling_device *cdev, in processor_get_max_state()
211 processor_get_cur_state(struct thermal_cooling_device *cdev, in processor_get_cur_state()
231 processor_set_cur_state(struct thermal_cooling_device *cdev, in processor_set_cur_state()
Dfan.c67 struct thermal_cooling_device *cdev;
81 static int fan_get_max_state(struct thermal_cooling_device *cdev, unsigned long in fan_get_max_state()
160 static int fan_get_cur_state(struct thermal_cooling_device *cdev, unsigned long in fan_get_cur_state()
200 fan_set_cur_state(struct thermal_cooling_device *cdev, unsigned long state) in fan_set_cur_state()
319 struct thermal_cooling_device *cdev; in acpi_fan_probe()
/Linux-v5.4/drivers/hwmon/
Dpwm-fan.c41 struct thermal_cooling_device *cdev;
171 static int pwm_fan_get_max_state(struct thermal_cooling_device *cdev, in pwm_fan_get_max_state()
184 static int pwm_fan_get_cur_state(struct thermal_cooling_device *cdev, in pwm_fan_get_cur_state()
198 pwm_fan_set_cur_state(struct thermal_cooling_device *cdev, unsigned long state) in pwm_fan_set_cur_state()
281 struct thermal_cooling_device *cdev; in pwm_fan_probe()
Dmlxreg-fan.c109 struct thermal_cooling_device *cdev;
262 static int mlxreg_fan_get_max_state(struct thermal_cooling_device *cdev, in mlxreg_fan_get_max_state()
269 static int mlxreg_fan_get_cur_state(struct thermal_cooling_device *cdev, in mlxreg_fan_get_cur_state()
288 static int mlxreg_fan_set_cur_state(struct thermal_cooling_device *cdev, in mlxreg_fan_set_cur_state()
/Linux-v5.4/drivers/net/ethernet/mellanox/mlxsw/
Dcore_thermal.c110 struct thermal_cooling_device *cdevs[MLXSW_MFCR_PWMS_MAX];
134 struct thermal_cooling_device *cdev) in mlxsw_get_cooling_device_idx()
232 struct thermal_cooling_device *cdev) in mlxsw_thermal_bind()
258 struct thermal_cooling_device *cdev) in mlxsw_thermal_unbind()
421 struct thermal_cooling_device *cdev) in mlxsw_thermal_module_bind()
450 struct thermal_cooling_device *cdev) in mlxsw_thermal_module_unbind()
648 static int mlxsw_thermal_get_max_state(struct thermal_cooling_device *cdev, in mlxsw_thermal_get_max_state()
655 static int mlxsw_thermal_get_cur_state(struct thermal_cooling_device *cdev, in mlxsw_thermal_get_cur_state()
681 static int mlxsw_thermal_set_cur_state(struct thermal_cooling_device *cdev, in mlxsw_thermal_set_cur_state()
1009 struct thermal_cooling_device *cdev; in mlxsw_thermal_init()
/Linux-v5.4/include/trace/events/
Dthermal.h51 TP_PROTO(struct thermal_cooling_device *cdev, unsigned long target),
154 TP_PROTO(struct thermal_cooling_device *cdev,
185 TP_PROTO(struct thermal_cooling_device *cdev, unsigned long freq,
/Linux-v5.4/Documentation/driver-api/thermal/
Dpower_allocator.rst186 int get_requested_power(struct thermal_cooling_device *cdev,
191 The `struct thermal_cooling_device` pointer
205 int state2power(struct thermal_cooling_device *cdev, struct
210 The `struct thermal_cooling_device` pointer
225 int power2state(struct thermal_cooling_device *cdev, u32 power,
229 The `struct thermal_cooling_device` pointer
Dcpu-cooling-api.rst26 struct thermal_cooling_device
38 struct thermal_cooling_device
52 void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev)

123