Lines Matching refs:freq_data
490 struct powernv_smp_call_data *freq_data = arg; in powernv_read_cpu_freq() local
493 freq_data->pstate_id = extract_local_pstate(pmspr_val); in powernv_read_cpu_freq()
494 freq_data->freq = pstate_id_to_freq(freq_data->pstate_id); in powernv_read_cpu_freq()
497 raw_smp_processor_id(), pmspr_val, freq_data->pstate_id, in powernv_read_cpu_freq()
498 freq_data->freq); in powernv_read_cpu_freq()
508 struct powernv_smp_call_data freq_data; in powernv_cpufreq_get() local
511 &freq_data, 1); in powernv_cpufreq_get()
513 return freq_data.freq; in powernv_cpufreq_get()
528 struct powernv_smp_call_data *freq_data = data; in set_pstate() local
529 unsigned long pstate_ul = freq_data->pstate_id; in set_pstate()
530 unsigned long gpstate_ul = freq_data->gpstate_id; in set_pstate()
679 struct powernv_smp_call_data freq_data; in gpstate_timer_handler() local
700 freq_data.gpstate_id = extract_global_pstate(val); in gpstate_timer_handler()
701 freq_data.pstate_id = extract_local_pstate(val); in gpstate_timer_handler()
702 if (freq_data.gpstate_id == freq_data.pstate_id) { in gpstate_timer_handler()
712 gpstate_idx = pstate_to_idx(freq_data.pstate_id); in gpstate_timer_handler()
717 lpstate_idx = pstate_to_idx(freq_data.pstate_id); in gpstate_timer_handler()
722 freq_data.gpstate_id = idx_to_pstate(gpstate_idx); in gpstate_timer_handler()
732 set_pstate(&freq_data); in gpstate_timer_handler()
744 struct powernv_smp_call_data freq_data; in powernv_cpufreq_target_index() local
762 freq_data.pstate_id = idx_to_pstate(new_index); in powernv_cpufreq_target_index()
764 freq_data.gpstate_id = freq_data.pstate_id; in powernv_cpufreq_target_index()
811 freq_data.gpstate_id = idx_to_pstate(gpstate_idx); in powernv_cpufreq_target_index()
824 smp_call_function_any(policy->cpus, set_pstate, &freq_data, 1); in powernv_cpufreq_target_index()
879 struct powernv_smp_call_data freq_data; in powernv_cpufreq_cpu_exit() local
882 freq_data.pstate_id = idx_to_pstate(powernv_pstate_info.min); in powernv_cpufreq_cpu_exit()
883 freq_data.gpstate_id = idx_to_pstate(powernv_pstate_info.min); in powernv_cpufreq_cpu_exit()
884 smp_call_function_single(policy->cpu, set_pstate, &freq_data, 1); in powernv_cpufreq_cpu_exit()
1023 struct powernv_smp_call_data freq_data; in powernv_fast_switch() local
1026 freq_data.pstate_id = powernv_freqs[index].driver_data; in powernv_fast_switch()
1027 freq_data.gpstate_id = powernv_freqs[index].driver_data; in powernv_fast_switch()
1028 set_pstate(&freq_data); in powernv_fast_switch()