• Home
  • Raw
  • Download

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()
482 struct phy_dev_entry *phdev = in pkg_temp_thermal_device_remove() local
485 if (!phdev) in pkg_temp_thermal_device_remove()
490 if (phdev->first_cpu == cpu) { in pkg_temp_thermal_device_remove()
491 phdev->first_cpu = find_siblings_cpu(cpu); in pkg_temp_thermal_device_remove()
493 phdev->first_cpu); in pkg_temp_thermal_device_remove()
501 --phdev->ref_cnt; in pkg_temp_thermal_device_remove()
503 phys_proc_id, cpu, phdev->ref_cnt); in pkg_temp_thermal_device_remove()
504 if (!phdev->ref_cnt) in pkg_temp_thermal_device_remove()
505 list_for_each_entry_safe(phdev, n, &phy_dev_list, list) { in pkg_temp_thermal_device_remove()
506 if (phdev->phys_proc_id == phys_proc_id) { in pkg_temp_thermal_device_remove()
507 thermal_zone_device_unregister(phdev->tzone); in pkg_temp_thermal_device_remove()
508 list_del(&phdev->list); in pkg_temp_thermal_device_remove()
509 kfree(phdev); in pkg_temp_thermal_device_remove()
521 struct phy_dev_entry *phdev = pkg_temp_thermal_get_phy_entry(cpu); in get_core_online() local
524 if (!phdev) { in get_core_online()
532 ++phdev->ref_cnt; in get_core_online()
534 cpu, phdev->ref_cnt); in get_core_online()
618 struct phy_dev_entry *phdev, *n; in pkg_temp_thermal_exit() local
624 list_for_each_entry_safe(phdev, n, &phy_dev_list, list) { in pkg_temp_thermal_exit()
626 wrmsr_on_cpu(phdev->first_cpu, in pkg_temp_thermal_exit()
628 phdev->start_pkg_therm_low, in pkg_temp_thermal_exit()
629 phdev->start_pkg_therm_high); in pkg_temp_thermal_exit()
630 thermal_zone_device_unregister(phdev->tzone); in pkg_temp_thermal_exit()
631 list_del(&phdev->list); in pkg_temp_thermal_exit()
632 kfree(phdev); in pkg_temp_thermal_exit()