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

/linux-4.1.27/drivers/thermal/
H A Dx86_pkg_temp_thermal.c60 struct phy_dev_entry { struct
119 static struct phy_dev_entry pkg_temp_thermal_get_phy_entry()
123 struct phy_dev_entry *phy_ptr; pkg_temp_thermal_get_phy_entry()
170 struct phy_dev_entry *phy_dev_entry; sys_get_curr_temp() local
172 phy_dev_entry = tzd->devdata; sys_get_curr_temp()
173 rdmsr_on_cpu(phy_dev_entry->first_cpu, MSR_IA32_PACKAGE_THERM_STATUS, sys_get_curr_temp()
176 *temp = phy_dev_entry->tj_max - sys_get_curr_temp()
189 struct phy_dev_entry *phy_dev_entry; sys_get_trip_temp() local
197 phy_dev_entry = tzd->devdata; sys_get_trip_temp()
207 ret = rdmsr_on_cpu(phy_dev_entry->first_cpu, sys_get_trip_temp()
214 *temp = phy_dev_entry->tj_max - thres_reg_value * 1000; sys_get_trip_temp()
226 struct phy_dev_entry *phy_dev_entry; sys_set_trip_temp() local
230 phy_dev_entry = tzd->devdata; sys_set_trip_temp()
232 if (trip >= MAX_NUMBER_OF_TRIPS || temp >= phy_dev_entry->tj_max) sys_set_trip_temp()
235 ret = rdmsr_on_cpu(phy_dev_entry->first_cpu, sys_set_trip_temp()
258 l |= (phy_dev_entry->tj_max - temp)/1000 << shift; sys_set_trip_temp()
262 return wrmsr_on_cpu(phy_dev_entry->first_cpu, sys_set_trip_temp()
321 struct phy_dev_entry *phdev = pkg_temp_thermal_get_phy_entry(cpu); pkg_temp_thermal_threshold_work_fn()
400 struct phy_dev_entry *phy_dev_entry; pkg_temp_thermal_device_add() local
422 phy_dev_entry = kzalloc(sizeof(*phy_dev_entry), GFP_KERNEL); pkg_temp_thermal_device_add()
423 if (!phy_dev_entry) { pkg_temp_thermal_device_add()
442 phy_dev_entry->phys_proc_id = topology_physical_package_id(cpu); pkg_temp_thermal_device_add()
443 phy_dev_entry->first_cpu = cpu; pkg_temp_thermal_device_add()
444 phy_dev_entry->tj_max = tj_max; pkg_temp_thermal_device_add()
445 phy_dev_entry->ref_cnt = 1; pkg_temp_thermal_device_add()
446 phy_dev_entry->tzone = thermal_zone_device_register("x86_pkg_temp", pkg_temp_thermal_device_add()
450 phy_dev_entry, &tzone_ops, &pkg_temp_tz_params, 0, 0); pkg_temp_thermal_device_add()
451 if (IS_ERR(phy_dev_entry->tzone)) { pkg_temp_thermal_device_add()
452 err = PTR_ERR(phy_dev_entry->tzone); pkg_temp_thermal_device_add()
457 &phy_dev_entry->start_pkg_therm_low, pkg_temp_thermal_device_add()
458 &phy_dev_entry->start_pkg_therm_high); pkg_temp_thermal_device_add()
460 list_add_tail(&phy_dev_entry->list, &phy_dev_list); pkg_temp_thermal_device_add()
462 phy_dev_entry->phys_proc_id, cpu); pkg_temp_thermal_device_add()
469 kfree(phy_dev_entry); pkg_temp_thermal_device_add()
479 struct phy_dev_entry *n; pkg_temp_thermal_device_remove()
481 struct phy_dev_entry *phdev = pkg_temp_thermal_device_remove()
520 struct phy_dev_entry *phdev = pkg_temp_thermal_get_phy_entry(cpu); get_core_online()
617 struct phy_dev_entry *phdev, *n; pkg_temp_thermal_exit()

Completed in 65 milliseconds