Lines Matching refs:speed_mode

80 static void (*g5_switch_volt)(int speed_mode);
81 static int (*g5_switch_freq)(int speed_mode);
99 static void g5_smu_switch_volt(int speed_mode) in g5_smu_switch_volt() argument
106 0xff, g5_fvt_cur+1, speed_mode); in g5_smu_switch_volt()
117 static void g5_vdnap_switch_volt(int speed_mode) in g5_vdnap_switch_volt() argument
123 slew = (speed_mode == CPUFREQ_LOW) ? 1 : 0; in g5_vdnap_switch_volt()
150 static int g5_scom_switch_freq(int speed_mode) in g5_scom_switch_freq() argument
156 if (speed_mode < g5_pmode_cur) in g5_scom_switch_freq()
157 g5_switch_volt(speed_mode); in g5_scom_switch_freq()
167 g5_pmode_data[speed_mode]); in g5_scom_switch_freq()
175 (g5_pmode_data[speed_mode] >> PCR_SPEED_SHIFT)) & 0x3) in g5_scom_switch_freq()
186 if (speed_mode > g5_pmode_cur) in g5_scom_switch_freq()
187 g5_switch_volt(speed_mode); in g5_scom_switch_freq()
189 g5_pmode_cur = speed_mode; in g5_scom_switch_freq()
190 ppc_proc_freq = g5_cpu_freqs[speed_mode].frequency * 1000ul; in g5_scom_switch_freq()
211 static void g5_dummy_switch_volt(int speed_mode) in g5_dummy_switch_volt() argument
226 static void g5_pfunc_switch_volt(int speed_mode) in g5_pfunc_switch_volt() argument
228 if (speed_mode == CPUFREQ_HIGH) { in g5_pfunc_switch_volt()
251 static int g5_pfunc_switch_freq(int speed_mode) in g5_pfunc_switch_freq() argument
258 DBG("g5_pfunc_switch_freq(%d)\n", speed_mode); in g5_pfunc_switch_freq()
261 if (speed_mode < g5_pmode_cur) in g5_pfunc_switch_freq()
262 g5_switch_volt(speed_mode); in g5_pfunc_switch_freq()
265 if (speed_mode == CPUFREQ_HIGH) in g5_pfunc_switch_freq()
290 if (speed_mode > g5_pmode_cur) in g5_pfunc_switch_freq()
291 g5_switch_volt(speed_mode); in g5_pfunc_switch_freq()
293 g5_pmode_cur = speed_mode; in g5_pfunc_switch_freq()
294 ppc_proc_freq = g5_cpu_freqs[speed_mode].frequency * 1000ul; in g5_pfunc_switch_freq()