Lines Matching refs:speed_mode

77 static void (*g5_switch_volt)(int speed_mode);
78 static int (*g5_switch_freq)(int speed_mode);
96 static void g5_smu_switch_volt(int speed_mode) in g5_smu_switch_volt() argument
103 0xff, g5_fvt_cur+1, speed_mode); in g5_smu_switch_volt()
114 static void g5_vdnap_switch_volt(int speed_mode) in g5_vdnap_switch_volt() argument
120 slew = (speed_mode == CPUFREQ_LOW) ? 1 : 0; in g5_vdnap_switch_volt()
147 static int g5_scom_switch_freq(int speed_mode) in g5_scom_switch_freq() argument
153 if (speed_mode < g5_pmode_cur) in g5_scom_switch_freq()
154 g5_switch_volt(speed_mode); in g5_scom_switch_freq()
164 g5_pmode_data[speed_mode]); in g5_scom_switch_freq()
172 (g5_pmode_data[speed_mode] >> PCR_SPEED_SHIFT)) & 0x3) in g5_scom_switch_freq()
183 if (speed_mode > g5_pmode_cur) in g5_scom_switch_freq()
184 g5_switch_volt(speed_mode); in g5_scom_switch_freq()
186 g5_pmode_cur = speed_mode; in g5_scom_switch_freq()
187 ppc_proc_freq = g5_cpu_freqs[speed_mode].frequency * 1000ul; in g5_scom_switch_freq()
208 static void g5_dummy_switch_volt(int speed_mode) in g5_dummy_switch_volt() argument
223 static void g5_pfunc_switch_volt(int speed_mode) in g5_pfunc_switch_volt() argument
225 if (speed_mode == CPUFREQ_HIGH) { in g5_pfunc_switch_volt()
248 static int g5_pfunc_switch_freq(int speed_mode) in g5_pfunc_switch_freq() argument
255 DBG("g5_pfunc_switch_freq(%d)\n", speed_mode); in g5_pfunc_switch_freq()
258 if (speed_mode < g5_pmode_cur) in g5_pfunc_switch_freq()
259 g5_switch_volt(speed_mode); in g5_pfunc_switch_freq()
262 if (speed_mode == CPUFREQ_HIGH) in g5_pfunc_switch_freq()
287 if (speed_mode > g5_pmode_cur) in g5_pfunc_switch_freq()
288 g5_switch_volt(speed_mode); in g5_pfunc_switch_freq()
290 g5_pmode_cur = speed_mode; in g5_pfunc_switch_freq()
291 ppc_proc_freq = g5_cpu_freqs[speed_mode].frequency * 1000ul; in g5_pfunc_switch_freq()