Lines Matching refs:acpi_data
33 struct acpi_processor_performance acpi_data; member
97 for (i = 0; i < data->acpi_data.state_count; i++) { in extract_clock()
98 if (value == data->acpi_data.states[i].status) in extract_clock()
99 return data->acpi_data.states[i].core_frequency; in extract_clock()
101 return data->acpi_data.states[i-1].core_frequency; in extract_clock()
143 if (state == data->acpi_data.state) { in processor_set_freq()
154 data->acpi_data.state, state); in processor_set_freq()
160 value = (u32) data->acpi_data.states[state].control; in processor_set_freq()
170 data->acpi_data.state = state; in processor_set_freq()
220 result = acpi_processor_register_performance(&data->acpi_data, cpu); in acpi_cpufreq_cpu_init()
226 if (data->acpi_data.state_count <= 1) { in acpi_cpufreq_cpu_init()
232 if ((data->acpi_data.control_register.space_id != in acpi_cpufreq_cpu_init()
234 (data->acpi_data.status_register.space_id != in acpi_cpufreq_cpu_init()
237 (u32) (data->acpi_data.control_register.space_id), in acpi_cpufreq_cpu_init()
238 (u32) (data->acpi_data.status_register.space_id)); in acpi_cpufreq_cpu_init()
244 freq_table = kcalloc(data->acpi_data.state_count + 1, in acpi_cpufreq_cpu_init()
254 for (i=0; i<data->acpi_data.state_count; i++) { in acpi_cpufreq_cpu_init()
255 if ((data->acpi_data.states[i].transition_latency * 1000) > in acpi_cpufreq_cpu_init()
258 data->acpi_data.states[i].transition_latency * 1000; in acpi_cpufreq_cpu_init()
263 for (i = 0; i <= data->acpi_data.state_count; i++) in acpi_cpufreq_cpu_init()
265 if (i < data->acpi_data.state_count) { in acpi_cpufreq_cpu_init()
267 data->acpi_data.states[i].core_frequency * 1000; in acpi_cpufreq_cpu_init()
280 for (i = 0; i < data->acpi_data.state_count; i++) in acpi_cpufreq_cpu_init()
282 (i == data->acpi_data.state?'*':' '), i, in acpi_cpufreq_cpu_init()
283 (u32) data->acpi_data.states[i].core_frequency, in acpi_cpufreq_cpu_init()
284 (u32) data->acpi_data.states[i].power, in acpi_cpufreq_cpu_init()
285 (u32) data->acpi_data.states[i].transition_latency, in acpi_cpufreq_cpu_init()
286 (u32) data->acpi_data.states[i].bus_master_latency, in acpi_cpufreq_cpu_init()
287 (u32) data->acpi_data.states[i].status, in acpi_cpufreq_cpu_init()
288 (u32) data->acpi_data.states[i].control); in acpi_cpufreq_cpu_init()