thermal           237 drivers/acpi/processor_throttling.c 		if (p_limit->thermal.tx > target_state)
thermal           238 drivers/acpi/processor_throttling.c 			target_state = p_limit->thermal.tx;
thermal           333 drivers/acpi/processor_throttling.c 		if (limit->thermal.tx > target_state)
thermal           334 drivers/acpi/processor_throttling.c 			target_state = limit->thermal.tx;
thermal           510 drivers/acpi/thermal.c static int thermal_get_temp(struct thermal_zone_device *thermal, int *temp)
thermal           512 drivers/acpi/thermal.c 	struct acpi_thermal *tz = thermal->devdata;
thermal           527 drivers/acpi/thermal.c static int thermal_get_mode(struct thermal_zone_device *thermal,
thermal           530 drivers/acpi/thermal.c 	struct acpi_thermal *tz = thermal->devdata;
thermal           541 drivers/acpi/thermal.c static int thermal_set_mode(struct thermal_zone_device *thermal,
thermal           544 drivers/acpi/thermal.c 	struct acpi_thermal *tz = thermal->devdata;
thermal           571 drivers/acpi/thermal.c static int thermal_get_trip_type(struct thermal_zone_device *thermal,
thermal           574 drivers/acpi/thermal.c 	struct acpi_thermal *tz = thermal->devdata;
thermal           616 drivers/acpi/thermal.c static int thermal_get_trip_temp(struct thermal_zone_device *thermal,
thermal           619 drivers/acpi/thermal.c 	struct acpi_thermal *tz = thermal->devdata;
thermal           669 drivers/acpi/thermal.c static int thermal_get_crit_temp(struct thermal_zone_device *thermal,
thermal           672 drivers/acpi/thermal.c 	struct acpi_thermal *tz = thermal->devdata;
thermal           683 drivers/acpi/thermal.c static int thermal_get_trend(struct thermal_zone_device *thermal,
thermal           686 drivers/acpi/thermal.c 	struct acpi_thermal *tz = thermal->devdata;
thermal           690 drivers/acpi/thermal.c 	if (thermal_get_trip_type(thermal, trip, &type))
thermal           697 drivers/acpi/thermal.c 		if (thermal_get_trip_temp(thermal, trip, &trip_temp))
thermal           727 drivers/acpi/thermal.c static int thermal_notify(struct thermal_zone_device *thermal, int trip,
thermal           731 drivers/acpi/thermal.c 	struct acpi_thermal *tz = thermal->devdata;
thermal           749 drivers/acpi/thermal.c static int acpi_thermal_cooling_device_cb(struct thermal_zone_device *thermal,
thermal           754 drivers/acpi/thermal.c 	struct acpi_thermal *tz = thermal->devdata;
thermal           780 drivers/acpi/thermal.c 					(thermal, trip, cdev,
thermal           786 drivers/acpi/thermal.c 					(thermal, trip, cdev);
thermal           805 drivers/acpi/thermal.c 					(thermal, trip, cdev,
thermal           810 drivers/acpi/thermal.c 					(thermal, trip, cdev);
thermal           822 drivers/acpi/thermal.c 						(thermal, THERMAL_TRIPS_NONE,
thermal           828 drivers/acpi/thermal.c 						(thermal, THERMAL_TRIPS_NONE,
thermal           840 drivers/acpi/thermal.c acpi_thermal_bind_cooling_device(struct thermal_zone_device *thermal,
thermal           843 drivers/acpi/thermal.c 	return acpi_thermal_cooling_device_cb(thermal, cdev, true);
thermal           847 drivers/acpi/thermal.c acpi_thermal_unbind_cooling_device(struct thermal_zone_device *thermal,
thermal           850 drivers/acpi/thermal.c 	return acpi_thermal_cooling_device_cb(thermal, cdev, false);
thermal           426 drivers/gpu/drm/amd/amdgpu/amdgpu_dpm.h 	struct amdgpu_dpm_thermal thermal;
thermal          1519 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		temp = adev->pm.dpm.thermal.min_temp;
thermal          1521 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		temp = adev->pm.dpm.thermal.max_temp;
thermal          1535 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		temp = adev->pm.dpm.thermal.min_hotspot_temp;
thermal          1537 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		temp = adev->pm.dpm.thermal.max_hotspot_crit_temp;
thermal          1551 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		temp = adev->pm.dpm.thermal.min_mem_temp;
thermal          1553 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		temp = adev->pm.dpm.thermal.max_mem_crit_temp;
thermal          1583 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		temp = adev->pm.dpm.thermal.max_hotspot_emergency_temp;
thermal          1586 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		temp = adev->pm.dpm.thermal.max_edge_emergency_temp;
thermal          1589 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		temp = adev->pm.dpm.thermal.max_mem_emergency_temp;
thermal          2430 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 			     pm.dpm.thermal.work);
thermal          2440 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		if (temp < adev->pm.dpm.thermal.min_temp)
thermal          2444 drivers/gpu/drm/amd/amdgpu/amdgpu_pm.c 		if (adev->pm.dpm.thermal.high_to_low)
thermal          1361 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 		amdgpu_irq_get(adev, &adev->pm.dpm.thermal.irq,
thermal          1363 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 		amdgpu_irq_get(adev, &adev->pm.dpm.thermal.irq,
thermal          1374 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 	amdgpu_irq_put(adev, &adev->pm.dpm.thermal.irq,
thermal          1376 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 	amdgpu_irq_put(adev, &adev->pm.dpm.thermal.irq,
thermal          2543 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 	adev->pm.dpm.thermal.min_temp = low_temp;
thermal          2544 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 	adev->pm.dpm.thermal.max_temp = high_temp;
thermal          2998 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 				&adev->pm.dpm.thermal.irq);
thermal          3003 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 				&adev->pm.dpm.thermal.irq);
thermal          3020 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 	INIT_WORK(&adev->pm.dpm.thermal.work, amdgpu_dpm_thermal_work_handler);
thermal          3044 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 	flush_work(&adev->pm.dpm.thermal.work);
thermal          3198 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 		adev->pm.dpm.thermal.high_to_low = false;
thermal          3203 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 		adev->pm.dpm.thermal.high_to_low = true;
thermal          3211 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 		schedule_work(&adev->pm.dpm.thermal.work);
thermal          3380 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 	adev->pm.dpm.thermal.irq.num_types = AMDGPU_THERMAL_IRQ_LAST;
thermal          3381 drivers/gpu/drm/amd/amdgpu/kv_dpm.c 	adev->pm.dpm.thermal.irq.funcs = &kv_dpm_irq_funcs;
thermal          6437 drivers/gpu/drm/amd/amdgpu/si_dpm.c 	adev->pm.dpm.thermal.min_temp = low_temp;
thermal          6438 drivers/gpu/drm/amd/amdgpu/si_dpm.c 	adev->pm.dpm.thermal.max_temp = high_temp;
thermal          7564 drivers/gpu/drm/amd/amdgpu/si_dpm.c 		adev->pm.dpm.thermal.high_to_low = false;
thermal          7569 drivers/gpu/drm/amd/amdgpu/si_dpm.c 		adev->pm.dpm.thermal.high_to_low = true;
thermal          7577 drivers/gpu/drm/amd/amdgpu/si_dpm.c 		schedule_work(&adev->pm.dpm.thermal.work);
thermal          7693 drivers/gpu/drm/amd/amdgpu/si_dpm.c 	ret = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 230, &adev->pm.dpm.thermal.irq);
thermal          7697 drivers/gpu/drm/amd/amdgpu/si_dpm.c 	ret = amdgpu_irq_add_id(adev, AMDGPU_IRQ_CLIENTID_LEGACY, 231, &adev->pm.dpm.thermal.irq);
thermal          7718 drivers/gpu/drm/amd/amdgpu/si_dpm.c 	INIT_WORK(&adev->pm.dpm.thermal.work, amdgpu_dpm_thermal_work_handler);
thermal          7742 drivers/gpu/drm/amd/amdgpu/si_dpm.c 	flush_work(&adev->pm.dpm.thermal.work);
thermal          8078 drivers/gpu/drm/amd/amdgpu/si_dpm.c 	adev->pm.dpm.thermal.irq.num_types = AMDGPU_THERMAL_IRQ_LAST;
thermal          8079 drivers/gpu/drm/amd/amdgpu/si_dpm.c 	adev->pm.dpm.thermal.irq.funcs = &si_dpm_irq_funcs;
thermal           249 drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c 	adev->pm.dpm.thermal.min_temp = range.min;
thermal           250 drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c 	adev->pm.dpm.thermal.max_temp = range.max;
thermal           251 drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c 	adev->pm.dpm.thermal.max_edge_emergency_temp = range.edge_emergency_max;
thermal           252 drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c 	adev->pm.dpm.thermal.min_hotspot_temp = range.hotspot_min;
thermal           253 drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c 	adev->pm.dpm.thermal.max_hotspot_crit_temp = range.hotspot_crit_max;
thermal           254 drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c 	adev->pm.dpm.thermal.max_hotspot_emergency_temp = range.hotspot_emergency_max;
thermal           255 drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c 	adev->pm.dpm.thermal.min_mem_temp = range.mem_min;
thermal           256 drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c 	adev->pm.dpm.thermal.max_mem_crit_temp = range.mem_crit_max;
thermal           257 drivers/gpu/drm/amd/powerplay/hwmgr/hardwaremanager.c 	adev->pm.dpm.thermal.max_mem_emergency_temp = range.mem_emergency_max;
thermal          1206 drivers/gpu/drm/amd/powerplay/smu_v11_0.c 	adev->pm.dpm.thermal.min_temp = range.min;
thermal          1207 drivers/gpu/drm/amd/powerplay/smu_v11_0.c 	adev->pm.dpm.thermal.max_temp = range.max;
thermal          1208 drivers/gpu/drm/amd/powerplay/smu_v11_0.c 	adev->pm.dpm.thermal.max_edge_emergency_temp = range.edge_emergency_max;
thermal          1209 drivers/gpu/drm/amd/powerplay/smu_v11_0.c 	adev->pm.dpm.thermal.min_hotspot_temp = range.hotspot_min;
thermal          1210 drivers/gpu/drm/amd/powerplay/smu_v11_0.c 	adev->pm.dpm.thermal.max_hotspot_crit_temp = range.hotspot_crit_max;
thermal          1211 drivers/gpu/drm/amd/powerplay/smu_v11_0.c 	adev->pm.dpm.thermal.max_hotspot_emergency_temp = range.hotspot_emergency_max;
thermal          1212 drivers/gpu/drm/amd/powerplay/smu_v11_0.c 	adev->pm.dpm.thermal.min_mem_temp = range.mem_min;
thermal          1213 drivers/gpu/drm/amd/powerplay/smu_v11_0.c 	adev->pm.dpm.thermal.max_mem_crit_temp = range.mem_crit_max;
thermal          1214 drivers/gpu/drm/amd/powerplay/smu_v11_0.c 	adev->pm.dpm.thermal.max_mem_emergency_temp = range.mem_emergency_max;
thermal           900 drivers/gpu/drm/radeon/ci_dpm.c 	rdev->pm.dpm.thermal.min_temp = low_temp;
thermal           901 drivers/gpu/drm/radeon/ci_dpm.c 	rdev->pm.dpm.thermal.max_temp = high_temp;
thermal          8044 drivers/gpu/drm/radeon/cik.c 			rdev->pm.dpm.thermal.high_to_low = false;
thermal          8049 drivers/gpu/drm/radeon/cik.c 			rdev->pm.dpm.thermal.high_to_low = true;
thermal          8113 drivers/gpu/drm/radeon/cik.c 		schedule_work(&rdev->pm.dpm.thermal.work);
thermal          4886 drivers/gpu/drm/radeon/evergreen.c 			rdev->pm.dpm.thermal.high_to_low = false;
thermal          4891 drivers/gpu/drm/radeon/evergreen.c 			rdev->pm.dpm.thermal.high_to_low = true;
thermal          4920 drivers/gpu/drm/radeon/evergreen.c 		schedule_work(&rdev->pm.dpm.thermal.work);
thermal          2475 drivers/gpu/drm/radeon/kv_dpm.c 	rdev->pm.dpm.thermal.min_temp = low_temp;
thermal          2476 drivers/gpu/drm/radeon/kv_dpm.c 	rdev->pm.dpm.thermal.max_temp = high_temp;
thermal          4306 drivers/gpu/drm/radeon/r600.c 			rdev->pm.dpm.thermal.high_to_low = false;
thermal          4311 drivers/gpu/drm/radeon/r600.c 			rdev->pm.dpm.thermal.high_to_low = true;
thermal          4332 drivers/gpu/drm/radeon/r600.c 		schedule_work(&rdev->pm.dpm.thermal.work);
thermal           758 drivers/gpu/drm/radeon/r600_dpm.c 	rdev->pm.dpm.thermal.min_temp = low_temp;
thermal           759 drivers/gpu/drm/radeon/r600_dpm.c 	rdev->pm.dpm.thermal.max_temp = high_temp;
thermal          1577 drivers/gpu/drm/radeon/radeon.h 	struct radeon_dpm_thermal thermal;
thermal           700 drivers/gpu/drm/radeon/radeon_pm.c 		temp = rdev->pm.dpm.thermal.min_temp;
thermal           702 drivers/gpu/drm/radeon/radeon_pm.c 		temp = rdev->pm.dpm.thermal.max_temp;
thermal           826 drivers/gpu/drm/radeon/radeon_pm.c 			     pm.dpm.thermal.work);
thermal           836 drivers/gpu/drm/radeon/radeon_pm.c 		if (temp < rdev->pm.dpm.thermal.min_temp)
thermal           840 drivers/gpu/drm/radeon/radeon_pm.c 		if (rdev->pm.dpm.thermal.high_to_low)
thermal          1391 drivers/gpu/drm/radeon/radeon_pm.c 	INIT_WORK(&rdev->pm.dpm.thermal.work, radeon_dpm_thermal_work_handler);
thermal          1887 drivers/gpu/drm/radeon/rv770_dpm.c 	rdev->pm.dpm.thermal.min_temp = low_temp;
thermal          1888 drivers/gpu/drm/radeon/rv770_dpm.c 	rdev->pm.dpm.thermal.max_temp = high_temp;
thermal          6414 drivers/gpu/drm/radeon/si.c 			rdev->pm.dpm.thermal.high_to_low = false;
thermal          6419 drivers/gpu/drm/radeon/si.c 			rdev->pm.dpm.thermal.high_to_low = true;
thermal          6444 drivers/gpu/drm/radeon/si.c 		schedule_work(&rdev->pm.dpm.thermal.work);
thermal          6002 drivers/gpu/drm/radeon/si_dpm.c 	rdev->pm.dpm.thermal.min_temp = low_temp;
thermal          6003 drivers/gpu/drm/radeon/si_dpm.c 	rdev->pm.dpm.thermal.max_temp = high_temp;
thermal          1174 drivers/gpu/drm/radeon/sumo_dpm.c 	rdev->pm.dpm.thermal.min_temp = low_temp;
thermal          1175 drivers/gpu/drm/radeon/sumo_dpm.c 	rdev->pm.dpm.thermal.max_temp = high_temp;
thermal          1062 drivers/gpu/drm/radeon/trinity_dpm.c 	rdev->pm.dpm.thermal.min_temp = low_temp;
thermal          1063 drivers/gpu/drm/radeon/trinity_dpm.c 	rdev->pm.dpm.thermal.max_temp = high_temp;
thermal            75 drivers/gpu/drm/tiny/repaper.c 	struct thermal_zone_device *thermal;
thermal           480 drivers/gpu/drm/tiny/repaper.c 	if (!epd->thermal)
thermal           483 drivers/gpu/drm/tiny/repaper.c 	ret = thermal_zone_get_temp(epd->thermal, &temperature);
thermal          1075 drivers/gpu/drm/tiny/repaper.c 		epd->thermal = thermal_zone_get_zone_by_name(thermal_zone);
thermal          1076 drivers/gpu/drm/tiny/repaper.c 		if (IS_ERR(epd->thermal)) {
thermal          1078 drivers/gpu/drm/tiny/repaper.c 			return PTR_ERR(epd->thermal);
thermal           240 drivers/input/touchscreen/sun4i-ts.c 	struct thermal_zone_device *thermal;
thermal           359 drivers/input/touchscreen/sun4i-ts.c 	thermal = devm_thermal_zone_of_sensor_register(ts->dev, 0, ts,
thermal           361 drivers/input/touchscreen/sun4i-ts.c 	if (IS_ERR(thermal))
thermal           362 drivers/input/touchscreen/sun4i-ts.c 		return PTR_ERR(thermal);
thermal            80 drivers/net/ethernet/mellanox/mlxsw/core.c 	struct mlxsw_thermal *thermal;
thermal          1185 drivers/net/ethernet/mellanox/mlxsw/core.c 				 &mlxsw_core->thermal);
thermal          1269 drivers/net/ethernet/mellanox/mlxsw/core.c 	mlxsw_thermal_fini(mlxsw_core->thermal);
thermal           425 drivers/net/ethernet/mellanox/mlxsw/core.h void mlxsw_thermal_fini(struct mlxsw_thermal *thermal);
thermal           436 drivers/net/ethernet/mellanox/mlxsw/core.h static inline void mlxsw_thermal_fini(struct mlxsw_thermal *thermal)
thermal           133 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c static int mlxsw_get_cooling_device_idx(struct mlxsw_thermal *thermal,
thermal           139 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		if (thermal->cdevs[i] == cdev)
thermal           203 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c static void mlxsw_thermal_tz_score_update(struct mlxsw_thermal *thermal,
thermal           225 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (score > thermal->tz_highest_score) {
thermal           226 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		thermal->tz_highest_score = score;
thermal           227 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		thermal->tz_highest_dev = tzdev;
thermal           234 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct mlxsw_thermal *thermal = tzdev->devdata;
thermal           235 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct device *dev = thermal->bus_info->dev;
thermal           239 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (mlxsw_get_cooling_device_idx(thermal, cdev) < 0)
thermal           243 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		const struct mlxsw_thermal_trip *trip = &thermal->trips[i];
thermal           260 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct mlxsw_thermal *thermal = tzdev->devdata;
thermal           261 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct device *dev = thermal->bus_info->dev;
thermal           266 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (mlxsw_get_cooling_device_idx(thermal, cdev) < 0)
thermal           282 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct mlxsw_thermal *thermal = tzdev->devdata;
thermal           284 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	*mode = thermal->mode;
thermal           292 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct mlxsw_thermal *thermal = tzdev->devdata;
thermal           297 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		tzdev->polling_delay = thermal->polling_delay;
thermal           303 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	thermal->mode = mode;
thermal           312 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct mlxsw_thermal *thermal = tzdev->devdata;
thermal           313 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct device *dev = thermal->bus_info->dev;
thermal           320 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	err = mlxsw_reg_query(thermal->core, MLXSW_REG(mtmp), mtmp_pl);
thermal           327 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		mlxsw_thermal_tz_score_update(thermal, tzdev, thermal->trips,
thermal           338 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct mlxsw_thermal *thermal = tzdev->devdata;
thermal           343 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	*p_type = thermal->trips[trip].type;
thermal           350 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct mlxsw_thermal *thermal = tzdev->devdata;
thermal           355 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	*p_temp = thermal->trips[trip].temp;
thermal           362 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct mlxsw_thermal *thermal = tzdev->devdata;
thermal           368 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	thermal->trips[trip].temp = temp;
thermal           375 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct mlxsw_thermal *thermal = tzdev->devdata;
thermal           377 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	*p_hyst = thermal->trips[trip].hyst;
thermal           384 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct mlxsw_thermal *thermal = tzdev->devdata;
thermal           386 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	thermal->trips[trip].hyst = hyst;
thermal           393 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct mlxsw_thermal *thermal = tzdev->devdata;
thermal           398 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (tzdev == thermal->tz_highest_dev)
thermal           423 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct mlxsw_thermal *thermal = tz->parent;
thermal           427 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (mlxsw_get_cooling_device_idx(thermal, cdev) < 0)
thermal           452 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct mlxsw_thermal *thermal = tz->parent;
thermal           457 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (mlxsw_get_cooling_device_idx(thermal, cdev) < 0)
thermal           481 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct mlxsw_thermal *thermal = tz->parent;
thermal           486 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		tzdev->polling_delay = thermal->polling_delay;
thermal           502 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct mlxsw_thermal *thermal = tz->parent;
thermal           503 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct device *dev = thermal->bus_info->dev;
thermal           511 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	err = mlxsw_reg_query(thermal->core, MLXSW_REG(mtmp), mtmp_pl);
thermal           527 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	err = mlxsw_thermal_module_trips_update(dev, thermal->core, tz);
thermal           529 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		mlxsw_thermal_tz_score_update(thermal, tzdev, tz->trips, temp);
thermal           598 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct mlxsw_thermal *thermal = tz->parent;
thermal           603 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (tzdev == thermal->tz_highest_dev)
thermal           628 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct mlxsw_thermal *thermal = tz->parent;
thermal           637 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	err = mlxsw_reg_query(thermal->core, MLXSW_REG(mtmp), mtmp_pl);
thermal           643 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		mlxsw_thermal_tz_score_update(thermal, tzdev, tz->trips, temp);
thermal           674 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct mlxsw_thermal *thermal = cdev->devdata;
thermal           675 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct device *dev = thermal->bus_info->dev;
thermal           680 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	idx = mlxsw_get_cooling_device_idx(thermal, cdev);
thermal           685 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	err = mlxsw_reg_query(thermal->core, MLXSW_REG(mfsc), mfsc_pl);
thermal           700 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct mlxsw_thermal *thermal = cdev->devdata;
thermal           701 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct device *dev = thermal->bus_info->dev;
thermal           708 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	idx = mlxsw_get_cooling_device_idx(thermal, cdev);
thermal           724 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 			thermal->cooling_levels[i] = max(state, i);
thermal           727 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		err = mlxsw_reg_query(thermal->core, MLXSW_REG(mfsc), mfsc_pl);
thermal           747 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	state = thermal->cooling_levels[state];
thermal           749 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	err = mlxsw_reg_write(thermal->core, MLXSW_REG(mfsc), mfsc_pl);
thermal           793 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 			  struct mlxsw_thermal *thermal, u8 local_port)
thermal           810 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	module_tz = &thermal->tz_module_arr[module];
thermal           815 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	module_tz->parent = thermal;
thermal           817 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	       sizeof(thermal->trips));
thermal           835 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 			   struct mlxsw_thermal *thermal)
thermal           844 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	thermal->tz_module_arr = kcalloc(module_count,
thermal           845 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 					 sizeof(*thermal->tz_module_arr),
thermal           847 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (!thermal->tz_module_arr)
thermal           851 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		err = mlxsw_thermal_module_init(dev, core, thermal, i);
thermal           857 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		module_tz = &thermal->tz_module_arr[i];
thermal           869 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		mlxsw_thermal_module_fini(&thermal->tz_module_arr[i]);
thermal           870 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	kfree(thermal->tz_module_arr);
thermal           875 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c mlxsw_thermal_modules_fini(struct mlxsw_thermal *thermal)
thermal           877 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	unsigned int module_count = mlxsw_core_max_ports(thermal->core);
thermal           880 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (!mlxsw_core_res_query_enabled(thermal->core))
thermal           884 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		mlxsw_thermal_module_fini(&thermal->tz_module_arr[i]);
thermal           885 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	kfree(thermal->tz_module_arr);
thermal           916 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 			     struct mlxsw_thermal *thermal)
thermal           931 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	mlxsw_reg_mgpir_unpack(mgpir_pl, &thermal->tz_gearbox_num, NULL, NULL);
thermal           932 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (!thermal->tz_gearbox_num)
thermal           935 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	thermal->tz_gearbox_arr = kcalloc(thermal->tz_gearbox_num,
thermal           936 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 					  sizeof(*thermal->tz_gearbox_arr),
thermal           938 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (!thermal->tz_gearbox_arr)
thermal           941 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	for (i = 0; i < thermal->tz_gearbox_num; i++) {
thermal           942 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		gearbox_tz = &thermal->tz_gearbox_arr[i];
thermal           944 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		       sizeof(thermal->trips));
thermal           946 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		gearbox_tz->parent = thermal;
thermal           956 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		mlxsw_thermal_gearbox_tz_fini(&thermal->tz_gearbox_arr[i]);
thermal           957 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	kfree(thermal->tz_gearbox_arr);
thermal           962 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c mlxsw_thermal_gearboxes_fini(struct mlxsw_thermal *thermal)
thermal           966 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (!mlxsw_core_res_query_enabled(thermal->core))
thermal           969 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	for (i = thermal->tz_gearbox_num - 1; i >= 0; i--)
thermal           970 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		mlxsw_thermal_gearbox_tz_fini(&thermal->tz_gearbox_arr[i]);
thermal           971 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	kfree(thermal->tz_gearbox_arr);
thermal           981 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	struct mlxsw_thermal *thermal;
thermal           986 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	thermal = devm_kzalloc(dev, sizeof(*thermal),
thermal           988 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (!thermal)
thermal           991 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	thermal->core = core;
thermal           992 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	thermal->bus_info = bus_info;
thermal           993 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	memcpy(thermal->trips, default_thermal_trips, sizeof(thermal->trips));
thermal           995 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	err = mlxsw_reg_query(thermal->core, MLXSW_REG(mfcr), mfcr_pl);
thermal          1009 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 			err = mlxsw_reg_query(thermal->core, MLXSW_REG(mfsl),
thermal          1016 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 			err = mlxsw_reg_write(thermal->core, MLXSW_REG(mfsl),
thermal          1027 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 							       thermal,
thermal          1034 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 			thermal->cdevs[i] = cdev;
thermal          1040 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		thermal->cooling_levels[i] = max(MLXSW_THERMAL_SPEED_MIN_LEVEL,
thermal          1043 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	thermal->polling_delay = bus_info->low_frequency ?
thermal          1047 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	thermal->tzdev = thermal_zone_device_register("mlxsw",
thermal          1050 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 						      thermal,
thermal          1053 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 						      thermal->polling_delay);
thermal          1054 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (IS_ERR(thermal->tzdev)) {
thermal          1055 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		err = PTR_ERR(thermal->tzdev);
thermal          1060 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	err = mlxsw_thermal_modules_init(dev, core, thermal);
thermal          1064 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	err = mlxsw_thermal_gearboxes_init(dev, core, thermal);
thermal          1068 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	thermal->mode = THERMAL_DEVICE_ENABLED;
thermal          1069 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	*p_thermal = thermal;
thermal          1073 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	mlxsw_thermal_modules_fini(thermal);
thermal          1075 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (thermal->tzdev) {
thermal          1076 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		thermal_zone_device_unregister(thermal->tzdev);
thermal          1077 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		thermal->tzdev = NULL;
thermal          1081 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		if (thermal->cdevs[i])
thermal          1082 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 			thermal_cooling_device_unregister(thermal->cdevs[i]);
thermal          1084 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	devm_kfree(dev, thermal);
thermal          1088 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c void mlxsw_thermal_fini(struct mlxsw_thermal *thermal)
thermal          1092 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	mlxsw_thermal_gearboxes_fini(thermal);
thermal          1093 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	mlxsw_thermal_modules_fini(thermal);
thermal          1094 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	if (thermal->tzdev) {
thermal          1095 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		thermal_zone_device_unregister(thermal->tzdev);
thermal          1096 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		thermal->tzdev = NULL;
thermal          1100 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 		if (thermal->cdevs[i]) {
thermal          1101 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 			thermal_cooling_device_unregister(thermal->cdevs[i]);
thermal          1102 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 			thermal->cdevs[i] = NULL;
thermal          1106 drivers/net/ethernet/mellanox/mlxsw/core_thermal.c 	devm_kfree(thermal->bus_info->dev, thermal);
thermal          2207 drivers/net/wireless/ath/ath10k/core.c 	complete(&ar->thermal.wmi_sync);
thermal          3180 drivers/net/wireless/ath/ath10k/core.c 	init_completion(&ar->thermal.wmi_sync);
thermal          1179 drivers/net/wireless/ath/ath10k/core.h 	struct ath10k_thermal thermal;
thermal          1931 drivers/net/wireless/ath/ath10k/debug.c 	ar->thermal.quiet_period = period;
thermal          1947 drivers/net/wireless/ath/ath10k/debug.c 			ar->thermal.quiet_period);
thermal            31 drivers/net/wireless/ath/ath10k/thermal.c 	*state = ar->thermal.throttle_state;
thermal            49 drivers/net/wireless/ath/ath10k/thermal.c 	ar->thermal.throttle_state = throttle_state;
thermal            77 drivers/net/wireless/ath/ath10k/thermal.c 	reinit_completion(&ar->thermal.wmi_sync);
thermal            89 drivers/net/wireless/ath/ath10k/thermal.c 	time_left = wait_for_completion_timeout(&ar->thermal.wmi_sync,
thermal            98 drivers/net/wireless/ath/ath10k/thermal.c 	temperature = ar->thermal.temperature;
thermal           111 drivers/net/wireless/ath/ath10k/thermal.c 	ar->thermal.temperature = temperature;
thermal           113 drivers/net/wireless/ath/ath10k/thermal.c 	complete(&ar->thermal.wmi_sync);
thermal           141 drivers/net/wireless/ath/ath10k/thermal.c 	period = ar->thermal.quiet_period;
thermal           142 drivers/net/wireless/ath/ath10k/thermal.c 	duration = (period * ar->thermal.throttle_state) / 100;
thermal           179 drivers/net/wireless/ath/ath10k/thermal.c 	ar->thermal.cdev = cdev;
thermal           180 drivers/net/wireless/ath/ath10k/thermal.c 	ar->thermal.quiet_period = ATH10K_QUIET_PERIOD_DEFAULT;
thermal           218 drivers/net/wireless/ath/ath10k/thermal.c 	thermal_cooling_device_unregister(ar->thermal.cdev);
thermal          1088 drivers/net/wireless/realtek/rtw88/main.h DECLARE_EWMA(thermal, 10, 4);
thermal           279 drivers/net/wireless/ti/wl18xx/acx.h 	struct wl18xx_acx_thermal_stats		thermal;
thermal           163 drivers/net/wireless/ti/wl18xx/debugfs.c WL18XX_DEBUGFS_FWSTATS_FILE(thermal, irq_thr_low, "%u");
thermal           164 drivers/net/wireless/ti/wl18xx/debugfs.c WL18XX_DEBUGFS_FWSTATS_FILE(thermal, irq_thr_high, "%u");
thermal           165 drivers/net/wireless/ti/wl18xx/debugfs.c WL18XX_DEBUGFS_FWSTATS_FILE(thermal, tx_stop, "%u");
thermal           166 drivers/net/wireless/ti/wl18xx/debugfs.c WL18XX_DEBUGFS_FWSTATS_FILE(thermal, tx_resume, "%u");
thermal           167 drivers/net/wireless/ti/wl18xx/debugfs.c WL18XX_DEBUGFS_FWSTATS_FILE(thermal, false_irq, "%u");
thermal           168 drivers/net/wireless/ti/wl18xx/debugfs.c WL18XX_DEBUGFS_FWSTATS_FILE(thermal, adc_source_unexpected, "%u");
thermal           546 drivers/net/wireless/ti/wl18xx/debugfs.c 	DEBUGFS_FWSTATS_ADD(thermal, irq_thr_low);
thermal           547 drivers/net/wireless/ti/wl18xx/debugfs.c 	DEBUGFS_FWSTATS_ADD(thermal, irq_thr_high);
thermal           548 drivers/net/wireless/ti/wl18xx/debugfs.c 	DEBUGFS_FWSTATS_ADD(thermal, tx_stop);
thermal           549 drivers/net/wireless/ti/wl18xx/debugfs.c 	DEBUGFS_FWSTATS_ADD(thermal, tx_resume);
thermal           550 drivers/net/wireless/ti/wl18xx/debugfs.c 	DEBUGFS_FWSTATS_ADD(thermal, false_irq);
thermal           551 drivers/net/wireless/ti/wl18xx/debugfs.c 	DEBUGFS_FWSTATS_ADD(thermal, adc_source_unexpected);
thermal           321 drivers/platform/x86/acerhdf.c static void acerhdf_check_param(struct thermal_zone_device *thermal)
thermal           337 drivers/platform/x86/acerhdf.c 		thermal->polling_delay = interval*1000;
thermal           348 drivers/platform/x86/acerhdf.c static int acerhdf_get_ec_temp(struct thermal_zone_device *thermal, int *t)
thermal           352 drivers/platform/x86/acerhdf.c 	acerhdf_check_param(thermal);
thermal           365 drivers/platform/x86/acerhdf.c static int acerhdf_bind(struct thermal_zone_device *thermal,
thermal           372 drivers/platform/x86/acerhdf.c 	if (thermal_zone_bind_cooling_device(thermal, 0, cdev,
thermal           381 drivers/platform/x86/acerhdf.c static int acerhdf_unbind(struct thermal_zone_device *thermal,
thermal           387 drivers/platform/x86/acerhdf.c 	if (thermal_zone_unbind_cooling_device(thermal, 0, cdev)) {
thermal           411 drivers/platform/x86/acerhdf.c static int acerhdf_get_mode(struct thermal_zone_device *thermal,
thermal           429 drivers/platform/x86/acerhdf.c static int acerhdf_set_mode(struct thermal_zone_device *thermal,
thermal           440 drivers/platform/x86/acerhdf.c static int acerhdf_get_trip_type(struct thermal_zone_device *thermal, int trip,
thermal           453 drivers/platform/x86/acerhdf.c static int acerhdf_get_trip_hyst(struct thermal_zone_device *thermal, int trip,
thermal           464 drivers/platform/x86/acerhdf.c static int acerhdf_get_trip_temp(struct thermal_zone_device *thermal, int trip,
thermal           477 drivers/platform/x86/acerhdf.c static int acerhdf_get_crit_temp(struct thermal_zone_device *thermal,
thermal           406 drivers/platform/x86/intel_menlow.c 	struct thermal_zone_device *thermal;
thermal           409 drivers/platform/x86/intel_menlow.c 	result = acpi_bus_get_private_data(handle, (void **)&thermal);
thermal           424 drivers/platform/x86/intel_menlow.c 						&thermal->device, handle);
thermal           438 drivers/platform/x86/intel_menlow.c 						&thermal->device, handle);
thermal           451 drivers/platform/x86/intel_menlow.c 						&thermal->device, handle);
thermal           399 drivers/thermal/armada_thermal.c static int armada_get_temp_legacy(struct thermal_zone_device *thermal,
thermal           402 drivers/thermal/armada_thermal.c 	struct armada_thermal_priv *priv = thermal->devdata;
thermal           108 drivers/thermal/broadcom/brcmstb_thermal.c 	struct thermal_zone_device *thermal;
thermal           157 drivers/thermal/broadcom/brcmstb_thermal.c 	t = avs_tmon_code_to_temp(priv->thermal, val);
thermal           191 drivers/thermal/broadcom/brcmstb_thermal.c 	return avs_tmon_code_to_temp(priv->thermal, val);
thermal           204 drivers/thermal/broadcom/brcmstb_thermal.c 	val = avs_tmon_temp_to_code(priv->thermal, temp,
thermal           221 drivers/thermal/broadcom/brcmstb_thermal.c 	return avs_tmon_code_to_temp(priv->thermal, val);
thermal           247 drivers/thermal/broadcom/brcmstb_thermal.c 	thermal_zone_device_update(priv->thermal, intr);
thermal           293 drivers/thermal/broadcom/brcmstb_thermal.c 	struct thermal_zone_device *thermal;
thermal           310 drivers/thermal/broadcom/brcmstb_thermal.c 	thermal = devm_thermal_zone_of_sensor_register(&pdev->dev, 0, priv,
thermal           312 drivers/thermal/broadcom/brcmstb_thermal.c 	if (IS_ERR(thermal)) {
thermal           313 drivers/thermal/broadcom/brcmstb_thermal.c 		ret = PTR_ERR(thermal);
thermal           318 drivers/thermal/broadcom/brcmstb_thermal.c 	priv->thermal = thermal;
thermal            62 drivers/thermal/da9062-thermal.c 	struct da9062_thermal *thermal = container_of(work,
thermal            70 drivers/thermal/da9062-thermal.c 	ret = regmap_write(thermal->hw->regmap,
thermal            74 drivers/thermal/da9062-thermal.c 		dev_err(thermal->dev,
thermal            83 drivers/thermal/da9062-thermal.c 	ret = regmap_read(thermal->hw->regmap,
thermal            87 drivers/thermal/da9062-thermal.c 		dev_err(thermal->dev,
thermal            93 drivers/thermal/da9062-thermal.c 		mutex_lock(&thermal->lock);
thermal            94 drivers/thermal/da9062-thermal.c 		thermal->temperature = DA9062_MILLI_CELSIUS(125);
thermal            95 drivers/thermal/da9062-thermal.c 		mutex_unlock(&thermal->lock);
thermal            96 drivers/thermal/da9062-thermal.c 		thermal_zone_device_update(thermal->zone,
thermal            99 drivers/thermal/da9062-thermal.c 		delay = msecs_to_jiffies(thermal->zone->passive_delay);
thermal           100 drivers/thermal/da9062-thermal.c 		queue_delayed_work(system_freezable_wq, &thermal->work, delay);
thermal           104 drivers/thermal/da9062-thermal.c 	mutex_lock(&thermal->lock);
thermal           105 drivers/thermal/da9062-thermal.c 	thermal->temperature = DA9062_MILLI_CELSIUS(0);
thermal           106 drivers/thermal/da9062-thermal.c 	mutex_unlock(&thermal->lock);
thermal           107 drivers/thermal/da9062-thermal.c 	thermal_zone_device_update(thermal->zone,
thermal           111 drivers/thermal/da9062-thermal.c 	enable_irq(thermal->irq);
thermal           116 drivers/thermal/da9062-thermal.c 	struct da9062_thermal *thermal = data;
thermal           118 drivers/thermal/da9062-thermal.c 	disable_irq_nosync(thermal->irq);
thermal           119 drivers/thermal/da9062-thermal.c 	queue_delayed_work(system_freezable_wq, &thermal->work, 0);
thermal           127 drivers/thermal/da9062-thermal.c 	struct da9062_thermal *thermal = z->devdata;
thermal           128 drivers/thermal/da9062-thermal.c 	*mode = thermal->mode;
thermal           136 drivers/thermal/da9062-thermal.c 	struct da9062_thermal *thermal = z->devdata;
thermal           143 drivers/thermal/da9062-thermal.c 		dev_err(thermal->dev,
thermal           155 drivers/thermal/da9062-thermal.c 	struct da9062_thermal *thermal = z->devdata;
thermal           162 drivers/thermal/da9062-thermal.c 		dev_err(thermal->dev,
thermal           173 drivers/thermal/da9062-thermal.c 	struct da9062_thermal *thermal = z->devdata;
thermal           175 drivers/thermal/da9062-thermal.c 	mutex_lock(&thermal->lock);
thermal           176 drivers/thermal/da9062-thermal.c 	*temp = thermal->temperature;
thermal           177 drivers/thermal/da9062-thermal.c 	mutex_unlock(&thermal->lock);
thermal           203 drivers/thermal/da9062-thermal.c 	struct da9062_thermal *thermal;
thermal           227 drivers/thermal/da9062-thermal.c 	thermal = devm_kzalloc(&pdev->dev, sizeof(struct da9062_thermal),
thermal           229 drivers/thermal/da9062-thermal.c 	if (!thermal) {
thermal           234 drivers/thermal/da9062-thermal.c 	thermal->config = match->data;
thermal           235 drivers/thermal/da9062-thermal.c 	thermal->hw = chip;
thermal           236 drivers/thermal/da9062-thermal.c 	thermal->mode = THERMAL_DEVICE_ENABLED;
thermal           237 drivers/thermal/da9062-thermal.c 	thermal->dev = &pdev->dev;
thermal           239 drivers/thermal/da9062-thermal.c 	INIT_DELAYED_WORK(&thermal->work, da9062_thermal_poll_on);
thermal           240 drivers/thermal/da9062-thermal.c 	mutex_init(&thermal->lock);
thermal           242 drivers/thermal/da9062-thermal.c 	thermal->zone = thermal_zone_device_register(thermal->config->name,
thermal           243 drivers/thermal/da9062-thermal.c 					1, 0, thermal,
thermal           246 drivers/thermal/da9062-thermal.c 	if (IS_ERR(thermal->zone)) {
thermal           248 drivers/thermal/da9062-thermal.c 		ret = PTR_ERR(thermal->zone);
thermal           254 drivers/thermal/da9062-thermal.c 		thermal->zone->passive_delay);
thermal           261 drivers/thermal/da9062-thermal.c 	thermal->irq = ret;
thermal           263 drivers/thermal/da9062-thermal.c 	ret = request_threaded_irq(thermal->irq, NULL,
thermal           266 drivers/thermal/da9062-thermal.c 				   "THERMAL", thermal);
thermal           273 drivers/thermal/da9062-thermal.c 	platform_set_drvdata(pdev, thermal);
thermal           277 drivers/thermal/da9062-thermal.c 	thermal_zone_device_unregister(thermal->zone);
thermal           284 drivers/thermal/da9062-thermal.c 	struct	da9062_thermal *thermal = platform_get_drvdata(pdev);
thermal           286 drivers/thermal/da9062-thermal.c 	free_irq(thermal->irq, thermal);
thermal           287 drivers/thermal/da9062-thermal.c 	cancel_delayed_work_sync(&thermal->work);
thermal           288 drivers/thermal/da9062-thermal.c 	thermal_zone_device_unregister(thermal->zone);
thermal            86 drivers/thermal/dove_thermal.c static int dove_get_temp(struct thermal_zone_device *thermal,
thermal            90 drivers/thermal/dove_thermal.c 	struct dove_thermal_priv *priv = thermal->devdata;
thermal            95 drivers/thermal/dove_thermal.c 		dev_err(&thermal->device,
thermal           123 drivers/thermal/dove_thermal.c 	struct thermal_zone_device *thermal = NULL;
thermal           148 drivers/thermal/dove_thermal.c 	thermal = thermal_zone_device_register("dove_thermal", 0, 0,
thermal           150 drivers/thermal/dove_thermal.c 	if (IS_ERR(thermal)) {
thermal           153 drivers/thermal/dove_thermal.c 		return PTR_ERR(thermal);
thermal           156 drivers/thermal/dove_thermal.c 	platform_set_drvdata(pdev, thermal);
thermal            46 drivers/thermal/intel/int340x_thermal/int3400_thermal.c 	struct thermal_zone_device *thermal;
thermal           210 drivers/thermal/intel/int340x_thermal/int3400_thermal.c 				priv->thermal->type);
thermal           212 drivers/thermal/intel/int340x_thermal/int3400_thermal.c 				priv->thermal->temperature);
thermal           217 drivers/thermal/intel/int340x_thermal/int3400_thermal.c 		kobject_uevent_env(&priv->thermal->device.kobj, KOBJ_CHANGE,
thermal           226 drivers/thermal/intel/int340x_thermal/int3400_thermal.c static int int3400_thermal_get_temp(struct thermal_zone_device *thermal,
thermal           233 drivers/thermal/intel/int340x_thermal/int3400_thermal.c static int int3400_thermal_get_mode(struct thermal_zone_device *thermal,
thermal           236 drivers/thermal/intel/int340x_thermal/int3400_thermal.c 	struct int3400_thermal_priv *priv = thermal->devdata;
thermal           246 drivers/thermal/intel/int340x_thermal/int3400_thermal.c static int int3400_thermal_set_mode(struct thermal_zone_device *thermal,
thermal           249 drivers/thermal/intel/int340x_thermal/int3400_thermal.c 	struct int3400_thermal_priv *priv = thermal->devdata;
thermal           315 drivers/thermal/intel/int340x_thermal/int3400_thermal.c 	priv->thermal = thermal_zone_device_register("INT3400 Thermal", 0, 0,
thermal           318 drivers/thermal/intel/int340x_thermal/int3400_thermal.c 	if (IS_ERR(priv->thermal)) {
thermal           319 drivers/thermal/intel/int340x_thermal/int3400_thermal.c 		result = PTR_ERR(priv->thermal);
thermal           343 drivers/thermal/intel/int340x_thermal/int3400_thermal.c 	thermal_zone_device_unregister(priv->thermal);
thermal           364 drivers/thermal/intel/int340x_thermal/int3400_thermal.c 	thermal_zone_device_unregister(priv->thermal);
thermal           279 drivers/thermal/intel/intel_quark_dts_thermal.c static int sys_get_trip_type(struct thermal_zone_device *thermal,
thermal           213 drivers/thermal/intel/x86_pkg_temp_thermal.c static int sys_get_trip_type(struct thermal_zone_device *thermal, int trip,
thermal            26 drivers/thermal/kirkwood_thermal.c static int kirkwood_get_temp(struct thermal_zone_device *thermal,
thermal            30 drivers/thermal/kirkwood_thermal.c 	struct kirkwood_thermal_priv *priv = thermal->devdata;
thermal            37 drivers/thermal/kirkwood_thermal.c 		dev_err(&thermal->device,
thermal            65 drivers/thermal/kirkwood_thermal.c 	struct thermal_zone_device *thermal = NULL;
thermal            78 drivers/thermal/kirkwood_thermal.c 	thermal = thermal_zone_device_register("kirkwood_thermal", 0, 0,
thermal            80 drivers/thermal/kirkwood_thermal.c 	if (IS_ERR(thermal)) {
thermal            83 drivers/thermal/kirkwood_thermal.c 		return PTR_ERR(thermal);
thermal            86 drivers/thermal/kirkwood_thermal.c 	platform_set_drvdata(pdev, thermal);
thermal           205 drivers/thermal/of-thermal.c static int of_thermal_bind(struct thermal_zone_device *thermal,
thermal           208 drivers/thermal/of-thermal.c 	struct __thermal_zone *data = thermal->devdata;
thermal           226 drivers/thermal/of-thermal.c 				ret = thermal_zone_bind_cooling_device(thermal,
thermal           240 drivers/thermal/of-thermal.c static int of_thermal_unbind(struct thermal_zone_device *thermal,
thermal           243 drivers/thermal/of-thermal.c 	struct __thermal_zone *data = thermal->devdata;
thermal           261 drivers/thermal/of-thermal.c 				ret = thermal_zone_unbind_cooling_device(thermal,
thermal           132 drivers/thermal/rockchip_thermal.c 	struct rockchip_thermal_data *thermal;
thermal          1066 drivers/thermal/rockchip_thermal.c 	struct rockchip_thermal_data *thermal = dev;
thermal          1069 drivers/thermal/rockchip_thermal.c 	dev_dbg(&thermal->pdev->dev, "thermal alarm\n");
thermal          1071 drivers/thermal/rockchip_thermal.c 	thermal->chip->irq_ack(thermal->regs);
thermal          1073 drivers/thermal/rockchip_thermal.c 	for (i = 0; i < thermal->chip->chn_num; i++)
thermal          1074 drivers/thermal/rockchip_thermal.c 		thermal_zone_device_update(thermal->sensors[i].tzd,
thermal          1083 drivers/thermal/rockchip_thermal.c 	struct rockchip_thermal_data *thermal = sensor->thermal;
thermal          1084 drivers/thermal/rockchip_thermal.c 	const struct rockchip_tsadc_chip *tsadc = thermal->chip;
thermal          1086 drivers/thermal/rockchip_thermal.c 	dev_dbg(&thermal->pdev->dev, "%s: sensor %d: low: %d, high %d\n",
thermal          1090 drivers/thermal/rockchip_thermal.c 				     sensor->id, thermal->regs, high);
thermal          1096 drivers/thermal/rockchip_thermal.c 	struct rockchip_thermal_data *thermal = sensor->thermal;
thermal          1097 drivers/thermal/rockchip_thermal.c 	const struct rockchip_tsadc_chip *tsadc = sensor->thermal->chip;
thermal          1101 drivers/thermal/rockchip_thermal.c 				 sensor->id, thermal->regs, out_temp);
thermal          1102 drivers/thermal/rockchip_thermal.c 	dev_dbg(&thermal->pdev->dev, "sensor %d - temp: %d, retval: %d\n",
thermal          1115 drivers/thermal/rockchip_thermal.c 				      struct rockchip_thermal_data *thermal)
thermal          1122 drivers/thermal/rockchip_thermal.c 			 thermal->chip->tshut_temp);
thermal          1123 drivers/thermal/rockchip_thermal.c 		thermal->tshut_temp = thermal->chip->tshut_temp;
thermal          1130 drivers/thermal/rockchip_thermal.c 		thermal->tshut_temp = shut_temp;
thermal          1136 drivers/thermal/rockchip_thermal.c 			 thermal->chip->tshut_mode == TSHUT_MODE_GPIO ?
thermal          1138 drivers/thermal/rockchip_thermal.c 		thermal->tshut_mode = thermal->chip->tshut_mode;
thermal          1140 drivers/thermal/rockchip_thermal.c 		thermal->tshut_mode = tshut_mode;
thermal          1143 drivers/thermal/rockchip_thermal.c 	if (thermal->tshut_mode > 1) {
thermal          1145 drivers/thermal/rockchip_thermal.c 			thermal->tshut_mode);
thermal          1153 drivers/thermal/rockchip_thermal.c 			 thermal->chip->tshut_polarity == TSHUT_LOW_ACTIVE ?
thermal          1155 drivers/thermal/rockchip_thermal.c 		thermal->tshut_polarity = thermal->chip->tshut_polarity;
thermal          1157 drivers/thermal/rockchip_thermal.c 		thermal->tshut_polarity = tshut_polarity;
thermal          1160 drivers/thermal/rockchip_thermal.c 	if (thermal->tshut_polarity > 1) {
thermal          1162 drivers/thermal/rockchip_thermal.c 			thermal->tshut_polarity);
thermal          1169 drivers/thermal/rockchip_thermal.c 	thermal->grf = syscon_regmap_lookup_by_phandle(np, "rockchip,grf");
thermal          1170 drivers/thermal/rockchip_thermal.c 	if (IS_ERR(thermal->grf))
thermal          1178 drivers/thermal/rockchip_thermal.c 				 struct rockchip_thermal_data *thermal,
thermal          1182 drivers/thermal/rockchip_thermal.c 	const struct rockchip_tsadc_chip *tsadc = thermal->chip;
thermal          1185 drivers/thermal/rockchip_thermal.c 	tsadc->set_tshut_mode(id, thermal->regs, thermal->tshut_mode);
thermal          1187 drivers/thermal/rockchip_thermal.c 	error = tsadc->set_tshut_temp(&tsadc->table, id, thermal->regs,
thermal          1188 drivers/thermal/rockchip_thermal.c 			      thermal->tshut_temp);
thermal          1191 drivers/thermal/rockchip_thermal.c 			__func__, thermal->tshut_temp, error);
thermal          1193 drivers/thermal/rockchip_thermal.c 	sensor->thermal = thermal;
thermal          1220 drivers/thermal/rockchip_thermal.c 	struct rockchip_thermal_data *thermal;
thermal          1237 drivers/thermal/rockchip_thermal.c 	thermal = devm_kzalloc(&pdev->dev, sizeof(struct rockchip_thermal_data),
thermal          1239 drivers/thermal/rockchip_thermal.c 	if (!thermal)
thermal          1242 drivers/thermal/rockchip_thermal.c 	thermal->pdev = pdev;
thermal          1244 drivers/thermal/rockchip_thermal.c 	thermal->chip = (const struct rockchip_tsadc_chip *)match->data;
thermal          1245 drivers/thermal/rockchip_thermal.c 	if (!thermal->chip)
thermal          1249 drivers/thermal/rockchip_thermal.c 	thermal->regs = devm_ioremap_resource(&pdev->dev, res);
thermal          1250 drivers/thermal/rockchip_thermal.c 	if (IS_ERR(thermal->regs))
thermal          1251 drivers/thermal/rockchip_thermal.c 		return PTR_ERR(thermal->regs);
thermal          1253 drivers/thermal/rockchip_thermal.c 	thermal->reset = devm_reset_control_get(&pdev->dev, "tsadc-apb");
thermal          1254 drivers/thermal/rockchip_thermal.c 	if (IS_ERR(thermal->reset)) {
thermal          1255 drivers/thermal/rockchip_thermal.c 		error = PTR_ERR(thermal->reset);
thermal          1260 drivers/thermal/rockchip_thermal.c 	thermal->clk = devm_clk_get(&pdev->dev, "tsadc");
thermal          1261 drivers/thermal/rockchip_thermal.c 	if (IS_ERR(thermal->clk)) {
thermal          1262 drivers/thermal/rockchip_thermal.c 		error = PTR_ERR(thermal->clk);
thermal          1267 drivers/thermal/rockchip_thermal.c 	thermal->pclk = devm_clk_get(&pdev->dev, "apb_pclk");
thermal          1268 drivers/thermal/rockchip_thermal.c 	if (IS_ERR(thermal->pclk)) {
thermal          1269 drivers/thermal/rockchip_thermal.c 		error = PTR_ERR(thermal->pclk);
thermal          1275 drivers/thermal/rockchip_thermal.c 	error = clk_prepare_enable(thermal->clk);
thermal          1282 drivers/thermal/rockchip_thermal.c 	error = clk_prepare_enable(thermal->pclk);
thermal          1288 drivers/thermal/rockchip_thermal.c 	rockchip_thermal_reset_controller(thermal->reset);
thermal          1290 drivers/thermal/rockchip_thermal.c 	error = rockchip_configure_from_dt(&pdev->dev, np, thermal);
thermal          1297 drivers/thermal/rockchip_thermal.c 	thermal->chip->initialize(thermal->grf, thermal->regs,
thermal          1298 drivers/thermal/rockchip_thermal.c 				  thermal->tshut_polarity);
thermal          1300 drivers/thermal/rockchip_thermal.c 	for (i = 0; i < thermal->chip->chn_num; i++) {
thermal          1301 drivers/thermal/rockchip_thermal.c 		error = rockchip_thermal_register_sensor(pdev, thermal,
thermal          1302 drivers/thermal/rockchip_thermal.c 						&thermal->sensors[i],
thermal          1303 drivers/thermal/rockchip_thermal.c 						thermal->chip->chn_id[i]);
thermal          1315 drivers/thermal/rockchip_thermal.c 					  "rockchip_thermal", thermal);
thermal          1322 drivers/thermal/rockchip_thermal.c 	thermal->chip->control(thermal->regs, true);
thermal          1324 drivers/thermal/rockchip_thermal.c 	for (i = 0; i < thermal->chip->chn_num; i++)
thermal          1325 drivers/thermal/rockchip_thermal.c 		rockchip_thermal_toggle_sensor(&thermal->sensors[i], true);
thermal          1327 drivers/thermal/rockchip_thermal.c 	platform_set_drvdata(pdev, thermal);
thermal          1332 drivers/thermal/rockchip_thermal.c 	clk_disable_unprepare(thermal->pclk);
thermal          1334 drivers/thermal/rockchip_thermal.c 	clk_disable_unprepare(thermal->clk);
thermal          1341 drivers/thermal/rockchip_thermal.c 	struct rockchip_thermal_data *thermal = platform_get_drvdata(pdev);
thermal          1344 drivers/thermal/rockchip_thermal.c 	for (i = 0; i < thermal->chip->chn_num; i++) {
thermal          1345 drivers/thermal/rockchip_thermal.c 		struct rockchip_thermal_sensor *sensor = &thermal->sensors[i];
thermal          1350 drivers/thermal/rockchip_thermal.c 	thermal->chip->control(thermal->regs, false);
thermal          1352 drivers/thermal/rockchip_thermal.c 	clk_disable_unprepare(thermal->pclk);
thermal          1353 drivers/thermal/rockchip_thermal.c 	clk_disable_unprepare(thermal->clk);
thermal          1360 drivers/thermal/rockchip_thermal.c 	struct rockchip_thermal_data *thermal = dev_get_drvdata(dev);
thermal          1363 drivers/thermal/rockchip_thermal.c 	for (i = 0; i < thermal->chip->chn_num; i++)
thermal          1364 drivers/thermal/rockchip_thermal.c 		rockchip_thermal_toggle_sensor(&thermal->sensors[i], false);
thermal          1366 drivers/thermal/rockchip_thermal.c 	thermal->chip->control(thermal->regs, false);
thermal          1368 drivers/thermal/rockchip_thermal.c 	clk_disable(thermal->pclk);
thermal          1369 drivers/thermal/rockchip_thermal.c 	clk_disable(thermal->clk);
thermal          1378 drivers/thermal/rockchip_thermal.c 	struct rockchip_thermal_data *thermal = dev_get_drvdata(dev);
thermal          1382 drivers/thermal/rockchip_thermal.c 	error = clk_enable(thermal->clk);
thermal          1386 drivers/thermal/rockchip_thermal.c 	error = clk_enable(thermal->pclk);
thermal          1388 drivers/thermal/rockchip_thermal.c 		clk_disable(thermal->clk);
thermal          1392 drivers/thermal/rockchip_thermal.c 	rockchip_thermal_reset_controller(thermal->reset);
thermal          1394 drivers/thermal/rockchip_thermal.c 	thermal->chip->initialize(thermal->grf, thermal->regs,
thermal          1395 drivers/thermal/rockchip_thermal.c 				  thermal->tshut_polarity);
thermal          1397 drivers/thermal/rockchip_thermal.c 	for (i = 0; i < thermal->chip->chn_num; i++) {
thermal          1398 drivers/thermal/rockchip_thermal.c 		int id = thermal->sensors[i].id;
thermal          1400 drivers/thermal/rockchip_thermal.c 		thermal->chip->set_tshut_mode(id, thermal->regs,
thermal          1401 drivers/thermal/rockchip_thermal.c 					      thermal->tshut_mode);
thermal          1403 drivers/thermal/rockchip_thermal.c 		error = thermal->chip->set_tshut_temp(&thermal->chip->table,
thermal          1404 drivers/thermal/rockchip_thermal.c 					      id, thermal->regs,
thermal          1405 drivers/thermal/rockchip_thermal.c 					      thermal->tshut_temp);
thermal          1408 drivers/thermal/rockchip_thermal.c 				__func__, thermal->tshut_temp, error);
thermal          1411 drivers/thermal/rockchip_thermal.c 	thermal->chip->control(thermal->regs, true);
thermal          1413 drivers/thermal/rockchip_thermal.c 	for (i = 0; i < thermal->chip->chn_num; i++)
thermal          1414 drivers/thermal/rockchip_thermal.c 		rockchip_thermal_toggle_sensor(&thermal->sensors[i], true);
thermal            31 drivers/thermal/spear_thermal.c static inline int thermal_get_temp(struct thermal_zone_device *thermal,
thermal            34 drivers/thermal/spear_thermal.c 	struct spear_thermal_dev *stdev = thermal->devdata;
thermal           109 drivers/thermal/ti-soc-thermal/ti-thermal-common.c static inline int ti_thermal_get_temp(struct thermal_zone_device *thermal,
thermal           112 drivers/thermal/ti-soc-thermal/ti-thermal-common.c 	struct ti_thermal_data *data = thermal->devdata;
thermal           200 include/acpi/processor.h 	struct acpi_processor_lx thermal;	/* thermal limit */
thermal             3 include/trace/events/thermal.h #define TRACE_SYSTEM thermal
thermal           879 sound/soc/codecs/sta32x.c 	int i, ret = 0, thermal = 0;
thermal           907 sound/soc/codecs/sta32x.c 		thermal |= STA32X_CONFA_TWAB;
thermal           909 sound/soc/codecs/sta32x.c 		thermal |= STA32X_CONFA_TWRB;
thermal           911 sound/soc/codecs/sta32x.c 		thermal |= STA32X_CONFA_FDRB;
thermal           915 sound/soc/codecs/sta32x.c 			   thermal);
thermal           914 sound/soc/codecs/sta350.c 	int i, ret = 0, thermal = 0;
thermal           931 sound/soc/codecs/sta350.c 		thermal |= STA350_CONFA_TWAB;
thermal           933 sound/soc/codecs/sta350.c 		thermal |= STA350_CONFA_TWRB;
thermal           935 sound/soc/codecs/sta350.c 		thermal |= STA350_CONFA_FDRB;
thermal           939 sound/soc/codecs/sta350.c 			   thermal);