• Home
  • Raw
  • Download

Lines Matching refs:perf

198 	struct acpi_processor_performance *perf;  in extract_io()  local
201 perf = to_perf_data(data); in extract_io()
203 for (i = 0; i < perf->state_count; i++) { in extract_io()
204 if (value == perf->states[i].status) in extract_io()
214 struct acpi_processor_performance *perf; in extract_msr() local
223 perf = to_perf_data(data); in extract_msr()
226 if (msr == perf->states[pos->driver_data].status) in extract_msr()
308 struct acpi_processor_performance *perf = to_perf_data(data); in drv_read() local
310 .reg = &perf->control_register, in drv_read()
331 struct acpi_processor_performance *perf = to_perf_data(data); in drv_write() local
333 .reg = &perf->control_register, in drv_write()
413 struct acpi_processor_performance *perf; in acpi_cpufreq_target() local
422 perf = to_perf_data(data); in acpi_cpufreq_target()
424 if (perf->state == next_perf_state) { in acpi_cpufreq_target()
443 drv_write(data, mask, perf->states[next_perf_state].control); in acpi_cpufreq_target()
454 perf->state = next_perf_state; in acpi_cpufreq_target()
463 struct acpi_processor_performance *perf; in acpi_cpufreq_fast_switch() local
479 perf = to_perf_data(data); in acpi_cpufreq_fast_switch()
480 if (perf->state == next_perf_state) { in acpi_cpufreq_fast_switch()
487 data->cpu_freq_write(&perf->control_register, in acpi_cpufreq_fast_switch()
488 perf->states[next_perf_state].control); in acpi_cpufreq_fast_switch()
489 perf->state = next_perf_state; in acpi_cpufreq_fast_switch()
496 struct acpi_processor_performance *perf; in acpi_cpufreq_guess_freq() local
498 perf = to_perf_data(data); in acpi_cpufreq_guess_freq()
503 unsigned long freqn = perf->states[0].core_frequency * 1000; in acpi_cpufreq_guess_freq()
505 for (i = 0; i < (perf->state_count-1); i++) { in acpi_cpufreq_guess_freq()
507 freqn = perf->states[i+1].core_frequency * 1000; in acpi_cpufreq_guess_freq()
509 perf->state = i; in acpi_cpufreq_guess_freq()
513 perf->state = perf->state_count-1; in acpi_cpufreq_guess_freq()
517 perf->state = 0; in acpi_cpufreq_guess_freq()
518 return perf->states[0].core_frequency * 1000; in acpi_cpufreq_guess_freq()
671 struct acpi_processor_performance *perf; in acpi_cpufreq_cpu_init() local
702 perf = per_cpu_ptr(acpi_perf_data, cpu); in acpi_cpufreq_cpu_init()
709 result = acpi_processor_register_performance(perf, cpu); in acpi_cpufreq_cpu_init()
713 policy->shared_type = perf->shared_type; in acpi_cpufreq_cpu_init()
721 cpumask_copy(policy->cpus, perf->shared_cpu_map); in acpi_cpufreq_cpu_init()
723 cpumask_copy(data->freqdomain_cpus, perf->shared_cpu_map); in acpi_cpufreq_cpu_init()
744 if (perf->state_count <= 1) { in acpi_cpufreq_cpu_init()
750 if (perf->control_register.space_id != perf->status_register.space_id) { in acpi_cpufreq_cpu_init()
755 switch (perf->control_register.space_id) { in acpi_cpufreq_cpu_init()
786 (u32) (perf->control_register.space_id)); in acpi_cpufreq_cpu_init()
791 freq_table = kcalloc(perf->state_count + 1, sizeof(*freq_table), in acpi_cpufreq_cpu_init()
800 for (i = 0; i < perf->state_count; i++) { in acpi_cpufreq_cpu_init()
801 if ((perf->states[i].transition_latency * 1000) > in acpi_cpufreq_cpu_init()
804 perf->states[i].transition_latency * 1000; in acpi_cpufreq_cpu_init()
808 if (perf->control_register.space_id == ACPI_ADR_SPACE_FIXED_HARDWARE && in acpi_cpufreq_cpu_init()
815 for (i = 0; i < perf->state_count; i++) { in acpi_cpufreq_cpu_init()
816 if (i > 0 && perf->states[i].core_frequency >= in acpi_cpufreq_cpu_init()
822 perf->states[i].core_frequency * 1000; in acpi_cpufreq_cpu_init()
849 perf->state = 0; in acpi_cpufreq_cpu_init()
851 switch (perf->control_register.space_id) { in acpi_cpufreq_cpu_init()
872 for (i = 0; i < perf->state_count; i++) in acpi_cpufreq_cpu_init()
874 (i == perf->state ? '*' : ' '), i, in acpi_cpufreq_cpu_init()
875 (u32) perf->states[i].core_frequency, in acpi_cpufreq_cpu_init()
876 (u32) perf->states[i].power, in acpi_cpufreq_cpu_init()
877 (u32) perf->states[i].transition_latency); in acpi_cpufreq_cpu_init()
919 struct acpi_processor_performance *perf = per_cpu_ptr(acpi_perf_data, in acpi_cpufreq_cpu_ready() local
923 if (perf->states[0].core_frequency * 1000 != freq) in acpi_cpufreq_cpu_ready()