Home
last modified time | relevance | path

Searched refs:zonedev (Results 1 - 2 of 2) sorted by relevance

/kernel/linux/linux-5.10/drivers/thermal/intel/
H A Dx86_pkg_temp_thermal.c126 struct zone_device *zonedev = tzd->devdata; in sys_get_curr_temp() local
129 rdmsr_on_cpu(zonedev->cpu, MSR_IA32_PACKAGE_THERM_STATUS, in sys_get_curr_temp()
132 *temp = zonedev->tj_max - ((eax >> 16) & 0x7f) * 1000; in sys_get_curr_temp()
142 struct zone_device *zonedev = tzd->devdata; in sys_get_trip_temp() local
158 ret = rdmsr_on_cpu(zonedev->cpu, MSR_IA32_PACKAGE_THERM_INTERRUPT, in sys_get_trip_temp()
165 *temp = zonedev->tj_max - thres_reg_value * 1000; in sys_get_trip_temp()
176 struct zone_device *zonedev = tzd->devdata; in sys_set_trip_temp() local
180 if (trip >= MAX_NUMBER_OF_TRIPS || temp >= zonedev->tj_max) in sys_set_trip_temp()
183 ret = rdmsr_on_cpu(zonedev->cpu, MSR_IA32_PACKAGE_THERM_INTERRUPT, in sys_set_trip_temp()
205 l |= (zonedev in sys_set_trip_temp()
265 struct zone_device *zonedev; pkg_temp_thermal_threshold_work_fn() local
310 struct zone_device *zonedev; pkg_thermal_notify() local
333 struct zone_device *zonedev; pkg_temp_thermal_device_add() local
385 struct zone_device *zonedev = pkg_temp_thermal_get_dev(cpu); pkg_thermal_cpu_offline() local
471 struct zone_device *zonedev = pkg_temp_thermal_get_dev(cpu); pkg_thermal_cpu_online() local
[all...]
/kernel/linux/linux-6.6/drivers/thermal/intel/
H A Dx86_pkg_temp_thermal.c110 struct zone_device *zonedev = thermal_zone_device_priv(tzd); in sys_get_curr_temp() local
113 ret = intel_tcc_get_temp(zonedev->cpu, &val, true); in sys_get_curr_temp()
125 struct zone_device *zonedev = thermal_zone_device_priv(tzd); in sys_set_trip_temp() local
129 tj_max = intel_tcc_get_tjmax(zonedev->cpu); in sys_set_trip_temp()
139 ret = rdmsr_on_cpu(zonedev->cpu, MSR_IA32_PACKAGE_THERM_INTERRUPT, in sys_set_trip_temp()
165 return wrmsr_on_cpu(zonedev->cpu, MSR_IA32_PACKAGE_THERM_INTERRUPT, in sys_set_trip_temp()
212 struct zone_device *zonedev; in pkg_temp_thermal_threshold_work_fn() local
218 zonedev = pkg_temp_thermal_get_dev(cpu); in pkg_temp_thermal_threshold_work_fn()
219 if (!zonedev) { in pkg_temp_thermal_threshold_work_fn()
224 zonedev in pkg_temp_thermal_threshold_work_fn()
252 struct zone_device *zonedev; pkg_thermal_notify() local
317 struct zone_device *zonedev; pkg_temp_thermal_device_add() local
381 struct zone_device *zonedev = pkg_temp_thermal_get_dev(cpu); pkg_thermal_cpu_offline() local
469 struct zone_device *zonedev = pkg_temp_thermal_get_dev(cpu); pkg_thermal_cpu_online() local
[all...]

Completed in 2 milliseconds