Home
last modified time | relevance | path

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

123

/openbmc/linux/include/linux/
H A Ddevfreq_cooling.h44 struct thermal_cooling_device *
47 struct thermal_cooling_device *
49 struct thermal_cooling_device *devfreq_cooling_register(struct devfreq *df);
50 void devfreq_cooling_unregister(struct thermal_cooling_device *dfc);
51 struct thermal_cooling_device *
57 static inline struct thermal_cooling_device *
64 static inline struct thermal_cooling_device *
70 static inline struct thermal_cooling_device *
76 static inline struct thermal_cooling_device *
84 devfreq_cooling_unregister(struct thermal_cooling_device *dfc) in devfreq_cooling_unregister()
H A Dthermal.h33 struct thermal_cooling_device;
72 struct thermal_cooling_device *);
74 struct thermal_cooling_device *);
90 int (*get_max_state) (struct thermal_cooling_device *, unsigned long *);
91 int (*get_cur_state) (struct thermal_cooling_device *, unsigned long *);
92 int (*set_cur_state) (struct thermal_cooling_device *, unsigned long);
93 int (*get_requested_power)(struct thermal_cooling_device *, u32 *);
94 int (*state2power)(struct thermal_cooling_device *, unsigned long, u32 *);
95 int (*power2state)(struct thermal_cooling_device *, u32, unsigned long *);
98 struct thermal_cooling_device { struct
[all …]
H A Dcpu_cooling.h27 struct thermal_cooling_device *
34 void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev);
40 struct thermal_cooling_device *
44 static inline struct thermal_cooling_device *
51 void cpufreq_cooling_unregister(struct thermal_cooling_device *cdev) in cpufreq_cooling_unregister()
56 static inline struct thermal_cooling_device *
/openbmc/linux/drivers/thermal/
H A Dthermal_core.h51 int for_each_thermal_cooling_device(int (*cb)(struct thermal_cooling_device *,
64 static inline bool cdev_is_power_actor(struct thermal_cooling_device *cdev) in cdev_is_power_actor()
70 void thermal_cdev_update(struct thermal_cooling_device *);
71 void __thermal_cdev_update(struct thermal_cooling_device *cdev);
77 struct thermal_cooling_device *cdev,
89 struct thermal_cooling_device *cdev;
109 container_of(_dev, struct thermal_cooling_device, device)
129 void thermal_cooling_device_setup_sysfs(struct thermal_cooling_device *);
130 void thermal_cooling_device_destroy_sysfs(struct thermal_cooling_device *cdev);
131 void thermal_cooling_device_stats_reinit(struct thermal_cooling_device *cdev);
[all …]
H A Ddevfreq_cooling.c51 struct thermal_cooling_device *cdev;
64 static int devfreq_cooling_get_max_state(struct thermal_cooling_device *cdev, in devfreq_cooling_get_max_state()
74 static int devfreq_cooling_get_cur_state(struct thermal_cooling_device *cdev, in devfreq_cooling_get_cur_state()
84 static int devfreq_cooling_set_cur_state(struct thermal_cooling_device *cdev, in devfreq_cooling_set_cur_state()
178 static int devfreq_cooling_get_requested_power(struct thermal_cooling_device *cdev, in devfreq_cooling_get_requested_power()
244 static int devfreq_cooling_state2power(struct thermal_cooling_device *cdev, in devfreq_cooling_state2power()
260 static int devfreq_cooling_power2state(struct thermal_cooling_device *cdev, in devfreq_cooling_power2state()
361 struct thermal_cooling_device *
365 struct thermal_cooling_device *cdev; in of_devfreq_cooling_register_power()
458 struct thermal_cooling_device *
[all …]
H A Dcpufreq_cooling.c196 * @cdev: &thermal_cooling_device pointer
216 static int cpufreq_get_requested_power(struct thermal_cooling_device *cdev,
249 * @cdev: &thermal_cooling_device pointer
260 static int cpufreq_state2power(struct thermal_cooling_device *cdev,
281 * @cdev: &thermal_cooling_device pointer
294 static int cpufreq_power2state(struct thermal_cooling_device *cdev,
406 static int cpufreq_get_max_state(struct thermal_cooling_device *cdev,
425 static int cpufreq_get_cur_state(struct thermal_cooling_device *cdev,
445 static int cpufreq_set_cur_state(struct thermal_cooling_device *cdev,
486 * Return: a valid struct thermal_cooling_device pointe
[all...]
H A Dkhadas_mcu_fan.c22 struct thermal_cooling_device *cdev;
40 static int khadas_mcu_fan_get_max_state(struct thermal_cooling_device *cdev, in khadas_mcu_fan_get_max_state()
48 static int khadas_mcu_fan_get_cur_state(struct thermal_cooling_device *cdev, in khadas_mcu_fan_get_cur_state()
59 khadas_mcu_fan_set_cur_state(struct thermal_cooling_device *cdev, in khadas_mcu_fan_set_cur_state()
82 struct thermal_cooling_device *cdev; in khadas_mcu_fan_probe()
H A Dcpuidle_cooling.c73 static int cpuidle_cooling_get_max_state(struct thermal_cooling_device *cdev, in cpuidle_cooling_get_max_state()
102 static int cpuidle_cooling_get_cur_state(struct thermal_cooling_device *cdev, in cpuidle_cooling_get_cur_state()
124 static int cpuidle_cooling_set_cur_state(struct thermal_cooling_device *cdev, in cpuidle_cooling_set_cur_state()
175 struct thermal_cooling_device *cdev; in __cpuidle_cooling_register()
H A Dthermal_core.c549 int for_each_thermal_cooling_device(int (*cb)(struct thermal_cooling_device *, in for_each_thermal_cooling_device() argument
552 struct thermal_cooling_device *cdev; in for_each_thermal_cooling_device()
633 struct thermal_cooling_device *cdev, in thermal_zone_bind_cooling_device()
640 struct thermal_cooling_device *pos2; in thermal_zone_bind_cooling_device()
766 struct thermal_cooling_device *cdev) in thermal_zone_unbind_cooling_device()
801 struct thermal_cooling_device *cdev; in thermal_release()
823 struct thermal_cooling_device *cdev, int ret) in print_bind_err_msg()
829 static void bind_cdev(struct thermal_cooling_device *cdev) in bind_cdev()
859 static struct thermal_cooling_device *
864 struct thermal_cooling_device *cdev; in __thermal_cooling_device_register()
[all …]
H A Dthermal_sysfs.c588 struct thermal_cooling_device *cdev = to_cooling_device(dev); in cdev_type_show()
596 struct thermal_cooling_device *cdev = to_cooling_device(dev); in max_state_show()
604 struct thermal_cooling_device *cdev = to_cooling_device(dev); in cur_state_show()
618 struct thermal_cooling_device *cdev = to_cooling_device(dev); in cur_state_store()
684 void thermal_cooling_device_stats_update(struct thermal_cooling_device *cdev, in thermal_cooling_device_stats_update()
711 struct thermal_cooling_device *cdev = to_cooling_device(dev); in total_trans_show()
735 struct thermal_cooling_device *cdev = to_cooling_device(dev); in time_in_state_ms_show()
766 struct thermal_cooling_device *cdev = to_cooling_device(dev); in reset_store()
799 struct thermal_cooling_device *cdev = to_cooling_device(dev); in trans_table_show()
872 static void cooling_device_stats_setup(struct thermal_cooling_device *cdev) in cooling_device_stats_setup()
[all …]
H A Dthermal_of.c290 struct thermal_zone_device *tz, struct thermal_cooling_device *cdev) in __thermal_of_unbind()
321 struct thermal_zone_device *tz, struct thermal_cooling_device *cdev) in __thermal_of_bind()
356 struct thermal_zone_device *tz, struct thermal_cooling_device *cdev, in thermal_of_for_each_cooling_device() argument
358 struct thermal_zone_device *, struct thermal_cooling_device *)) in thermal_of_for_each_cooling_device()
389 struct thermal_cooling_device *cdev, in thermal_of_for_each_cooling_maps() argument
391 struct thermal_zone_device *, struct thermal_cooling_device *)) in thermal_of_for_each_cooling_maps()
422 struct thermal_cooling_device *cdev) in thermal_of_bind()
428 struct thermal_cooling_device *cdev) in thermal_of_unbind()
H A Dthermal_helpers.c45 struct thermal_cooling_device *cdev, int trip_index) in get_thermal_instance()
155 static void thermal_cdev_set_cur_state(struct thermal_cooling_device *cdev, in thermal_cdev_set_cur_state()
165 void __thermal_cdev_update(struct thermal_cooling_device *cdev) in __thermal_cdev_update()
192 void thermal_cdev_update(struct thermal_cooling_device *cdev) in thermal_cdev_update()
H A Dgov_fair_share.c44 struct thermal_cooling_device *cdev, int percentage, int level) in get_target_state()
88 struct thermal_cooling_device *cdev = instance->cdev; in fair_share_throttle()
H A Dthermal_trace.h51 TP_PROTO(struct thermal_cooling_device *cdev, unsigned long target),
142 TP_PROTO(struct thermal_cooling_device *cdev,
172 TP_PROTO(struct thermal_cooling_device *cdev, unsigned long freq,
/openbmc/linux/drivers/thermal/intel/
H A Dintel_tcc_cooling.c18 static struct thermal_cooling_device *tcc_cdev;
20 static int tcc_get_max_state(struct thermal_cooling_device *cdev, unsigned long in tcc_get_max_state()
27 static int tcc_get_cur_state(struct thermal_cooling_device *cdev, unsigned long in tcc_get_cur_state()
39 static int tcc_set_cur_state(struct thermal_cooling_device *cdev, unsigned long in tcc_set_cur_state()
/openbmc/linux/drivers/thermal/intel/int340x_thermal/
H A 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()
H A 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()
/openbmc/linux/drivers/net/wireless/ath/ath10k/
H A Dthermal.c17 ath10k_thermal_get_max_throttle_state(struct thermal_cooling_device *cdev, in ath10k_thermal_get_max_throttle_state()
26 ath10k_thermal_get_cur_throttle_state(struct thermal_cooling_device *cdev, in ath10k_thermal_get_cur_throttle_state()
39 ath10k_thermal_set_cur_throttle_state(struct thermal_cooling_device *cdev, in ath10k_thermal_set_cur_throttle_state()
157 struct thermal_cooling_device *cdev; in ath10k_thermal_register()
/openbmc/linux/drivers/net/wireless/ath/ath11k/
H A Dthermal.c16 ath11k_thermal_get_max_throttle_state(struct thermal_cooling_device *cdev, in ath11k_thermal_get_max_throttle_state()
25 ath11k_thermal_get_cur_throttle_state(struct thermal_cooling_device *cdev, in ath11k_thermal_get_cur_throttle_state()
38 ath11k_thermal_set_cur_throttle_state(struct thermal_cooling_device *cdev, in ath11k_thermal_set_cur_throttle_state()
160 struct thermal_cooling_device *cdev; in ath11k_thermal_register()
/openbmc/linux/drivers/gpu/drm/lima/
H A Dlima_devfreq.h12 struct thermal_cooling_device;
18 struct thermal_cooling_device *cooling;
/openbmc/linux/drivers/gpu/drm/panfrost/
H A Dpanfrost_devfreq.h12 struct thermal_cooling_device;
18 struct thermal_cooling_device *cooling;
/openbmc/linux/drivers/platform/x86/
H A Dacerhdf.c83 static struct thermal_cooling_device *cl_dev;
382 struct thermal_cooling_device *cdev) in acerhdf_bind()
398 struct thermal_cooling_device *cdev) in acerhdf_unbind()
461 static int acerhdf_get_max_state(struct thermal_cooling_device *cdev, in acerhdf_get_max_state()
469 static int acerhdf_get_cur_state(struct thermal_cooling_device *cdev, in acerhdf_get_cur_state()
483 static int acerhdf_set_cur_state(struct thermal_cooling_device *cdev, in acerhdf_set_cur_state()
/openbmc/linux/drivers/net/ethernet/mellanox/mlxsw/
H A Dcore_thermal.c122 struct thermal_cooling_device *cdevs[MLXSW_MFCR_PWMS_MAX];
141 struct thermal_cooling_device *cdev) in mlxsw_get_cooling_device_idx()
159 struct thermal_cooling_device *cdev) in mlxsw_thermal_bind()
185 struct thermal_cooling_device *cdev) in mlxsw_thermal_unbind()
239 struct thermal_cooling_device *cdev) in mlxsw_thermal_module_bind()
268 struct thermal_cooling_device *cdev) in mlxsw_thermal_module_unbind()
340 static int mlxsw_thermal_get_max_state(struct thermal_cooling_device *cdev, in mlxsw_thermal_get_max_state()
347 static int mlxsw_thermal_get_cur_state(struct thermal_cooling_device *cdev, in mlxsw_thermal_get_cur_state()
373 static int mlxsw_thermal_set_cur_state(struct thermal_cooling_device *cdev, in mlxsw_thermal_set_cur_state()
754 struct thermal_cooling_device *cdev; in mlxsw_thermal_init()
/openbmc/linux/drivers/acpi/
H A Dprocessor_thermal.c202 processor_get_max_state(struct thermal_cooling_device *cdev, in processor_get_max_state()
220 processor_get_cur_state(struct thermal_cooling_device *cdev, in processor_get_cur_state()
240 processor_set_cur_state(struct thermal_cooling_device *cdev, in processor_set_cur_state()
/openbmc/linux/drivers/hwmon/
H A Demc2305.c83 struct thermal_cooling_device *cdev;
125 static int emc2305_get_cdev_idx(struct thermal_cooling_device *cdev) in emc2305_get_cdev_idx()
156 static int emc2305_get_cur_state(struct thermal_cooling_device *cdev, unsigned long *state) in emc2305_get_cur_state()
169 static int emc2305_get_max_state(struct thermal_cooling_device *cdev, unsigned long *state) in emc2305_get_max_state()
206 static int emc2305_set_cur_state(struct thermal_cooling_device *cdev, unsigned long state) in emc2305_set_cur_state()

123