Home
last modified time | relevance | path

Searched refs:cooling_dev (Results 1 – 17 of 17) sorted by relevance

/linux/drivers/thermal/intel/int340x_thermal/
H A Dint3406_thermal.c24 struct thermal_cooling_device *cooling_dev; member
41 int3406_thermal_get_max_state(struct thermal_cooling_device *cooling_dev, in int3406_thermal_get_max_state() argument
44 struct int3406_thermal_data *d = cooling_dev->devdata; in int3406_thermal_get_max_state()
51 int3406_thermal_set_cur_state(struct thermal_cooling_device *cooling_dev, in int3406_thermal_set_cur_state() argument
54 struct int3406_thermal_data *d = cooling_dev->devdata; in int3406_thermal_set_cur_state()
68 int3406_thermal_get_cur_state(struct thermal_cooling_device *cooling_dev, in int3406_thermal_get_cur_state() argument
71 struct int3406_thermal_data *d = cooling_dev->devdata; in int3406_thermal_get_cur_state()
160 d->cooling_dev = thermal_cooling_device_register(acpi_device_bid(adev), in int3406_thermal_probe()
162 if (IS_ERR(d->cooling_dev)) in int3406_thermal_probe()
175 thermal_cooling_device_unregister(d->cooling_dev); in int3406_thermal_probe()
[all …]
/linux/drivers/net/wireless/intel/iwlwifi/mld/
H A Dthermal.c308 mld->cooling_dev.cur_state = state; in iwl_mld_config_ctdp()
326 *state = mld->cooling_dev.cur_state; in iwl_mld_tcool_get_cur_state()
368 mld->cooling_dev.cdev = in iwl_mld_cooling_device_register()
373 if (IS_ERR(mld->cooling_dev.cdev)) { in iwl_mld_cooling_device_register()
376 PTR_ERR(mld->cooling_dev.cdev)); in iwl_mld_cooling_device_register()
377 mld->cooling_dev.cdev = NULL; in iwl_mld_cooling_device_register()
396 if (!mld->cooling_dev.cdev) in iwl_mld_cooling_device_unregister()
400 if (mld->cooling_dev.cdev) { in iwl_mld_cooling_device_unregister()
401 thermal_cooling_device_unregister(mld->cooling_dev.cdev); in iwl_mld_cooling_device_unregister()
402 mld->cooling_dev.cdev = NULL; in iwl_mld_cooling_device_unregister()
H A Dmld.h309 struct iwl_mld_cooling_device cooling_dev; member
H A Dfw.c474 ret = iwl_mld_config_ctdp(mld, mld->cooling_dev.cur_state, in iwl_mld_config_fw()
H A Ddebugfs.c512 return iwl_mld_config_ctdp(mld, mld->cooling_dev.cur_state, in iwl_dbgfs_stop_ctdp_write()
524 return iwl_mld_config_ctdp(mld, mld->cooling_dev.cur_state, in iwl_dbgfs_start_ctdp_write()
/linux/drivers/net/wireless/intel/iwlwifi/mvm/
H A Dtt.c520 mvm->cooling_dev.cur_state = state; in iwl_mvm_ctdp_command()
708 *state = mvm->cooling_dev.cur_state; in iwl_mvm_tcool_get_cur_state()
746 mvm->cooling_dev.cdev = in iwl_mvm_cooling_device_register()
751 if (IS_ERR(mvm->cooling_dev.cdev)) { in iwl_mvm_cooling_device_register()
754 PTR_ERR(mvm->cooling_dev.cdev)); in iwl_mvm_cooling_device_register()
755 mvm->cooling_dev.cdev = NULL; in iwl_mvm_cooling_device_register()
774 if (!iwl_mvm_is_ctdp_supported(mvm) || !mvm->cooling_dev.cdev) in iwl_mvm_cooling_device_unregister()
778 if (mvm->cooling_dev.cdev) { in iwl_mvm_cooling_device_unregister()
779 thermal_cooling_device_unregister(mvm->cooling_dev.cdev); in iwl_mvm_cooling_device_unregister()
780 mvm->cooling_dev.cdev = NULL; in iwl_mvm_cooling_device_unregister()
H A Dmvm.h1129 struct iwl_mvm_cooling_device cooling_dev; member
/linux/drivers/thermal/
H A Dthermal_helpers.c62 guard(cooling_dev)(cdev); in thermal_trip_is_bound_to_cdev() local
193 guard(cooling_dev)(cdev); in thermal_cdev_update() local
207 guard(cooling_dev)(cdev); in thermal_cdev_update_nocheck() local
H A Dthermal_sysfs.c550 guard(cooling_dev)(cdev); in cur_state_store() local
634 guard(cooling_dev)(cdev); in total_trans_show() local
656 guard(cooling_dev)(cdev); in time_in_state_ms_show() local
683 guard(cooling_dev)(cdev); in reset_store() local
714 guard(cooling_dev)(cdev); in trans_table_show() local
H A Dgov_step_wise.c111 scoped_guard(cooling_dev, instance->cdev) { in thermal_zone_trip_update()
H A Dthermal_core.c806 guard(cooling_dev)(cdev); in thermal_instance_add() local
918 guard(cooling_dev)(instance->cdev); in thermal_instance_delete()
1283 guard(cooling_dev)(cdev); in thermal_cooling_device_update() local
H A Dgov_power_allocator.c560 scoped_guard(cooling_dev, cdev) { in allow_maximum_power()
H A Dthermal_debugfs.c523 guard(cooling_dev)(cdev); in thermal_debug_cdev_clear() local
/linux/drivers/acpi/
H A Dacpi_video.c203 struct thermal_cooling_device *cooling_dev; member
252 static int video_get_max_state(struct thermal_cooling_device *cooling_dev, in video_get_max_state() argument
255 struct acpi_video_device *video = cooling_dev->devdata; in video_get_max_state()
261 static int video_get_cur_state(struct thermal_cooling_device *cooling_dev, in video_get_cur_state() argument
264 struct acpi_video_device *video = cooling_dev->devdata; in video_get_cur_state()
281 video_set_cur_state(struct thermal_cooling_device *cooling_dev, unsigned long state) in video_set_cur_state() argument
283 struct acpi_video_device *video = cooling_dev->devdata; in video_set_cur_state()
1753 device->cooling_dev = thermal_cooling_device_register("LCD", device, in acpi_video_dev_register_backlight()
1755 if (IS_ERR(device->cooling_dev)) { in acpi_video_dev_register_backlight()
1762 device->cooling_dev = NULL; in acpi_video_dev_register_backlight()
[all …]
/linux/drivers/thermal/intel/
H A Dintel_powerclamp.c72 static struct thermal_cooling_device *cooling_dev; variable
782 cooling_dev = thermal_cooling_device_register("intel_powerclamp", NULL, in powerclamp_init()
784 if (IS_ERR(cooling_dev)) in powerclamp_init()
802 thermal_cooling_device_unregister(cooling_dev); in powerclamp_exit()
/linux/drivers/hwmon/
H A Dmax6650.c764 struct thermal_cooling_device *cooling_dev; in max6650_probe() local
796 cooling_dev = devm_thermal_of_cooling_device_register(dev, in max6650_probe()
799 if (IS_ERR(cooling_dev)) { in max6650_probe()
801 PTR_ERR(cooling_dev)); in max6650_probe()
/linux/include/linux/
H A Dthermal.h141 DEFINE_GUARD(cooling_dev, struct thermal_cooling_device *, mutex_lock(&_T->lock),