Lines Matching refs:phdev
321 struct phy_dev_entry *phdev = pkg_temp_thermal_get_phy_entry(cpu); in pkg_temp_thermal_threshold_work_fn() local
325 if (!phdev) in pkg_temp_thermal_threshold_work_fn()
351 thermal_zone_device_update(phdev->tzone); in pkg_temp_thermal_threshold_work_fn()
481 struct phy_dev_entry *phdev = in pkg_temp_thermal_device_remove() local
484 if (!phdev) in pkg_temp_thermal_device_remove()
489 if (phdev->first_cpu == cpu) { in pkg_temp_thermal_device_remove()
490 phdev->first_cpu = find_siblings_cpu(cpu); in pkg_temp_thermal_device_remove()
492 phdev->first_cpu); in pkg_temp_thermal_device_remove()
500 --phdev->ref_cnt; in pkg_temp_thermal_device_remove()
502 phys_proc_id, cpu, phdev->ref_cnt); in pkg_temp_thermal_device_remove()
503 if (!phdev->ref_cnt) in pkg_temp_thermal_device_remove()
504 list_for_each_entry_safe(phdev, n, &phy_dev_list, list) { in pkg_temp_thermal_device_remove()
505 if (phdev->phys_proc_id == phys_proc_id) { in pkg_temp_thermal_device_remove()
506 thermal_zone_device_unregister(phdev->tzone); in pkg_temp_thermal_device_remove()
507 list_del(&phdev->list); in pkg_temp_thermal_device_remove()
508 kfree(phdev); in pkg_temp_thermal_device_remove()
520 struct phy_dev_entry *phdev = pkg_temp_thermal_get_phy_entry(cpu); in get_core_online() local
523 if (!phdev) { in get_core_online()
531 ++phdev->ref_cnt; in get_core_online()
533 cpu, phdev->ref_cnt); in get_core_online()
617 struct phy_dev_entry *phdev, *n; in pkg_temp_thermal_exit() local
623 list_for_each_entry_safe(phdev, n, &phy_dev_list, list) { in pkg_temp_thermal_exit()
625 wrmsr_on_cpu(phdev->first_cpu, in pkg_temp_thermal_exit()
627 phdev->start_pkg_therm_low, in pkg_temp_thermal_exit()
628 phdev->start_pkg_therm_high); in pkg_temp_thermal_exit()
629 thermal_zone_device_unregister(phdev->tzone); in pkg_temp_thermal_exit()
630 list_del(&phdev->list); in pkg_temp_thermal_exit()
631 kfree(phdev); in pkg_temp_thermal_exit()