zonedev 126 drivers/thermal/intel/x86_pkg_temp_thermal.c struct zone_device *zonedev = tzd->devdata; zonedev 129 drivers/thermal/intel/x86_pkg_temp_thermal.c rdmsr_on_cpu(zonedev->cpu, MSR_IA32_PACKAGE_THERM_STATUS, zonedev 132 drivers/thermal/intel/x86_pkg_temp_thermal.c *temp = zonedev->tj_max - ((eax >> 16) & 0x7f) * 1000; zonedev 142 drivers/thermal/intel/x86_pkg_temp_thermal.c struct zone_device *zonedev = tzd->devdata; zonedev 158 drivers/thermal/intel/x86_pkg_temp_thermal.c ret = rdmsr_on_cpu(zonedev->cpu, MSR_IA32_PACKAGE_THERM_INTERRUPT, zonedev 165 drivers/thermal/intel/x86_pkg_temp_thermal.c *temp = zonedev->tj_max - thres_reg_value * 1000; zonedev 176 drivers/thermal/intel/x86_pkg_temp_thermal.c struct zone_device *zonedev = tzd->devdata; zonedev 180 drivers/thermal/intel/x86_pkg_temp_thermal.c if (trip >= MAX_NUMBER_OF_TRIPS || temp >= zonedev->tj_max) zonedev 183 drivers/thermal/intel/x86_pkg_temp_thermal.c ret = rdmsr_on_cpu(zonedev->cpu, MSR_IA32_PACKAGE_THERM_INTERRUPT, zonedev 205 drivers/thermal/intel/x86_pkg_temp_thermal.c l |= (zonedev->tj_max - temp)/1000 << shift; zonedev 209 drivers/thermal/intel/x86_pkg_temp_thermal.c return wrmsr_on_cpu(zonedev->cpu, MSR_IA32_PACKAGE_THERM_INTERRUPT, zonedev 265 drivers/thermal/intel/x86_pkg_temp_thermal.c struct zone_device *zonedev; zonedev 272 drivers/thermal/intel/x86_pkg_temp_thermal.c zonedev = pkg_temp_thermal_get_dev(cpu); zonedev 273 drivers/thermal/intel/x86_pkg_temp_thermal.c if (!zonedev) { zonedev 278 drivers/thermal/intel/x86_pkg_temp_thermal.c zonedev->work_scheduled = false; zonedev 284 drivers/thermal/intel/x86_pkg_temp_thermal.c tzone = zonedev->tzone; zonedev 310 drivers/thermal/intel/x86_pkg_temp_thermal.c struct zone_device *zonedev; zonedev 319 drivers/thermal/intel/x86_pkg_temp_thermal.c zonedev = pkg_temp_thermal_get_dev(cpu); zonedev 320 drivers/thermal/intel/x86_pkg_temp_thermal.c if (zonedev && !zonedev->work_scheduled) { zonedev 321 drivers/thermal/intel/x86_pkg_temp_thermal.c zonedev->work_scheduled = true; zonedev 322 drivers/thermal/intel/x86_pkg_temp_thermal.c pkg_thermal_schedule_work(zonedev->cpu, &zonedev->work); zonedev 333 drivers/thermal/intel/x86_pkg_temp_thermal.c struct zone_device *zonedev; zonedev 350 drivers/thermal/intel/x86_pkg_temp_thermal.c zonedev = kzalloc(sizeof(*zonedev), GFP_KERNEL); zonedev 351 drivers/thermal/intel/x86_pkg_temp_thermal.c if (!zonedev) zonedev 354 drivers/thermal/intel/x86_pkg_temp_thermal.c INIT_DELAYED_WORK(&zonedev->work, pkg_temp_thermal_threshold_work_fn); zonedev 355 drivers/thermal/intel/x86_pkg_temp_thermal.c zonedev->cpu = cpu; zonedev 356 drivers/thermal/intel/x86_pkg_temp_thermal.c zonedev->tj_max = tj_max; zonedev 357 drivers/thermal/intel/x86_pkg_temp_thermal.c zonedev->tzone = thermal_zone_device_register("x86_pkg_temp", zonedev 360 drivers/thermal/intel/x86_pkg_temp_thermal.c zonedev, &tzone_ops, &pkg_temp_tz_params, 0, 0); zonedev 361 drivers/thermal/intel/x86_pkg_temp_thermal.c if (IS_ERR(zonedev->tzone)) { zonedev 362 drivers/thermal/intel/x86_pkg_temp_thermal.c err = PTR_ERR(zonedev->tzone); zonedev 363 drivers/thermal/intel/x86_pkg_temp_thermal.c kfree(zonedev); zonedev 367 drivers/thermal/intel/x86_pkg_temp_thermal.c rdmsr(MSR_IA32_PACKAGE_THERM_INTERRUPT, zonedev->msr_pkg_therm_low, zonedev 368 drivers/thermal/intel/x86_pkg_temp_thermal.c zonedev->msr_pkg_therm_high); zonedev 370 drivers/thermal/intel/x86_pkg_temp_thermal.c cpumask_set_cpu(cpu, &zonedev->cpumask); zonedev 372 drivers/thermal/intel/x86_pkg_temp_thermal.c zones[id] = zonedev; zonedev 379 drivers/thermal/intel/x86_pkg_temp_thermal.c struct zone_device *zonedev = pkg_temp_thermal_get_dev(cpu); zonedev 383 drivers/thermal/intel/x86_pkg_temp_thermal.c if (!zonedev) zonedev 386 drivers/thermal/intel/x86_pkg_temp_thermal.c target = cpumask_any_but(&zonedev->cpumask, cpu); zonedev 387 drivers/thermal/intel/x86_pkg_temp_thermal.c cpumask_clear_cpu(cpu, &zonedev->cpumask); zonedev 394 drivers/thermal/intel/x86_pkg_temp_thermal.c struct thermal_zone_device *tzone = zonedev->tzone; zonedev 403 drivers/thermal/intel/x86_pkg_temp_thermal.c zonedev->tzone = NULL; zonedev 417 drivers/thermal/intel/x86_pkg_temp_thermal.c was_target = zonedev->cpu == cpu; zonedev 418 drivers/thermal/intel/x86_pkg_temp_thermal.c zonedev->cpu = target; zonedev 430 drivers/thermal/intel/x86_pkg_temp_thermal.c zonedev->msr_pkg_therm_low, zonedev->msr_pkg_therm_high); zonedev 437 drivers/thermal/intel/x86_pkg_temp_thermal.c if (zonedev->work_scheduled && was_target) { zonedev 443 drivers/thermal/intel/x86_pkg_temp_thermal.c cancel_delayed_work_sync(&zonedev->work); zonedev 451 drivers/thermal/intel/x86_pkg_temp_thermal.c if (!lastcpu && zonedev->work_scheduled) zonedev 452 drivers/thermal/intel/x86_pkg_temp_thermal.c pkg_thermal_schedule_work(target, &zonedev->work); zonedev 459 drivers/thermal/intel/x86_pkg_temp_thermal.c kfree(zonedev); zonedev 465 drivers/thermal/intel/x86_pkg_temp_thermal.c struct zone_device *zonedev = pkg_temp_thermal_get_dev(cpu); zonedev 473 drivers/thermal/intel/x86_pkg_temp_thermal.c if (zonedev) { zonedev 474 drivers/thermal/intel/x86_pkg_temp_thermal.c cpumask_set_cpu(cpu, &zonedev->cpumask);