Lines Matching refs:hwpstate_set

115 static int	hwpstate_set(device_t dev, const struct cf_setting *cf);
148 DEVMETHOD(cpufreq_drv_set, hwpstate_set),
242 hwpstate_set(device_t dev, const struct cf_setting *cf) in hwpstate_set() function
429 struct hwpstate_setting *hwpstate_set; in hwpstate_get_info_from_msr() local
438 hwpstate_set = sc->hwpstate_settings; in hwpstate_get_info_from_msr()
448 hwpstate_set[i].volts = CPUFREQ_VAL_UNKNOWN; in hwpstate_get_info_from_msr()
449 hwpstate_set[i].power = CPUFREQ_VAL_UNKNOWN; in hwpstate_get_info_from_msr()
450 hwpstate_set[i].lat = CPUFREQ_VAL_UNKNOWN; in hwpstate_get_info_from_msr()
454 hwpstate_set[i].freq = (100 * (fid + 0x08)) >> did; in hwpstate_get_info_from_msr()
460 hwpstate_set[i].freq = (100 * (fid + 0x10)) >> did; in hwpstate_get_info_from_msr()
470 hwpstate_set[i].freq = (200 * fid) / did; in hwpstate_get_info_from_msr()
472 hwpstate_set[i].volts = in hwpstate_get_info_from_msr()
480 hwpstate_set[i].power = AMD_17H_CUR_IDD(msr) * 1000; in hwpstate_get_info_from_msr()
483 hwpstate_set[i].power /= 10; in hwpstate_get_info_from_msr()
485 hwpstate_set[i].power /= 10; in hwpstate_get_info_from_msr()
487 hwpstate_set[i].power /= 10; in hwpstate_get_info_from_msr()
491 hwpstate_set[i].power *= hwpstate_set[i].volts; in hwpstate_get_info_from_msr()
493 hwpstate_set[i].power /= 1000; in hwpstate_get_info_from_msr()
502 hwpstate_set[i].pstate_id = i; in hwpstate_get_info_from_msr()
512 struct hwpstate_setting *hwpstate_set; in hwpstate_get_info_from_acpi_perf() local
532 hwpstate_set = sc->hwpstate_settings; in hwpstate_get_info_from_acpi_perf()
535 hwpstate_set[i].pstate_id = i; in hwpstate_get_info_from_acpi_perf()
536 hwpstate_set[i].freq = perf_set[i].freq; in hwpstate_get_info_from_acpi_perf()
537 hwpstate_set[i].volts = perf_set[i].volts; in hwpstate_get_info_from_acpi_perf()
538 hwpstate_set[i].power = perf_set[i].power; in hwpstate_get_info_from_acpi_perf()
539 hwpstate_set[i].lat = perf_set[i].lat; in hwpstate_get_info_from_acpi_perf()