Lines Matching defs:pstate_id
95 * @pstate_id: pstate id for this entry.
99 * corresponding to pstate_id.
105 u8 pstate_id;
173 /* Use following functions for conversions between pstate_id and index */
208 if (revmap_data->pstate_id == pstate)
329 revmap_data->pstate_id = id & 0xFF;
331 key = (revmap_data->pstate_id) % POWERNV_MAX_PSTATES;
359 /* Returns the CPU frequency corresponding to the pstate_id. */
360 static unsigned int pstate_id_to_freq(u8 pstate_id)
364 i = pstate_to_idx(pstate_id);
367 pstate_id, idx_to_pstate(powernv_pstate_info.nominal));
472 u8 pstate_id;
493 freq_data->pstate_id = extract_local_pstate(pmspr_val);
494 freq_data->freq = pstate_id_to_freq(freq_data->pstate_id);
496 pr_debug("cpu %d pmsr %016lX pstate_id 0x%x frequency %d kHz\n",
497 raw_smp_processor_id(), pmspr_val, freq_data->pstate_id,
522 * (struct powernv_smp_call_data *) and the pstate_id which needs to be set
523 * on this CPU should be present in freq_data->pstate_id.
529 unsigned long pstate_ul = freq_data->pstate_id;
701 freq_data.pstate_id = extract_local_pstate(val);
702 if (freq_data.gpstate_id == freq_data.pstate_id) {
712 gpstate_idx = pstate_to_idx(freq_data.pstate_id);
717 lpstate_idx = pstate_to_idx(freq_data.pstate_id);
762 freq_data.pstate_id = idx_to_pstate(new_index);
764 freq_data.gpstate_id = freq_data.pstate_id;
882 freq_data.pstate_id = idx_to_pstate(powernv_pstate_info.min);
1026 freq_data.pstate_id = powernv_freqs[index].driver_data;