Lines Matching refs:transition

27 		 data->transition[AUTO_TRANSITION_TO_PERFORMANCE].time_constant);  in amd_pmf_dump_auto_mode_defaults()
29 data->transition[AUTO_TRANSITION_FROM_PERFORMANCE_TO_BALANCE].time_constant); in amd_pmf_dump_auto_mode_defaults()
31 data->transition[AUTO_TRANSITION_FROM_QUIET_TO_BALANCE].time_constant); in amd_pmf_dump_auto_mode_defaults()
33 data->transition[AUTO_TRANSITION_TO_QUIET].time_constant); in amd_pmf_dump_auto_mode_defaults()
42 data->transition[AUTO_TRANSITION_TO_PERFORMANCE].power_delta); in amd_pmf_dump_auto_mode_defaults()
44 data->transition[AUTO_TRANSITION_FROM_PERFORMANCE_TO_BALANCE].power_delta); in amd_pmf_dump_auto_mode_defaults()
46 data->transition[AUTO_TRANSITION_FROM_QUIET_TO_BALANCE].power_delta); in amd_pmf_dump_auto_mode_defaults()
48 data->transition[AUTO_TRANSITION_TO_QUIET].power_delta); in amd_pmf_dump_auto_mode_defaults()
160 if ((config_store.transition[i].shifting_up && avg_power >= in amd_pmf_trans_automode()
161 config_store.transition[i].power_threshold) || in amd_pmf_trans_automode()
162 (!config_store.transition[i].shifting_up && avg_power <= in amd_pmf_trans_automode()
163 config_store.transition[i].power_threshold)) { in amd_pmf_trans_automode()
164 if (config_store.transition[i].timer < in amd_pmf_trans_automode()
165 config_store.transition[i].time_constant) in amd_pmf_trans_automode()
166 config_store.transition[i].timer += time_elapsed_ms; in amd_pmf_trans_automode()
168 config_store.transition[i].timer = 0; in amd_pmf_trans_automode()
171 if (config_store.transition[i].timer >= in amd_pmf_trans_automode()
172 config_store.transition[i].time_constant && in amd_pmf_trans_automode()
173 !config_store.transition[i].applied) { in amd_pmf_trans_automode()
174 config_store.transition[i].applied = true; in amd_pmf_trans_automode()
176 } else if (config_store.transition[i].timer <= in amd_pmf_trans_automode()
177 config_store.transition[i].time_constant && in amd_pmf_trans_automode()
178 config_store.transition[i].applied) { in amd_pmf_trans_automode()
179 config_store.transition[i].applied = false; in amd_pmf_trans_automode()
188 time_elapsed_ms, config_store.transition[i].timer, in amd_pmf_trans_automode()
189 config_store.transition[i].time_constant); in amd_pmf_trans_automode()
192 config_store.transition[i].shifting_up, in amd_pmf_trans_automode()
193 config_store.transition[i].power_threshold, in amd_pmf_trans_automode()
195 config_store.transition[i].power_delta); in amd_pmf_trans_automode()
204 config_store.transition[0].applied, in amd_pmf_trans_automode()
205 config_store.transition[1].applied, in amd_pmf_trans_automode()
206 config_store.transition[2].applied, in amd_pmf_trans_automode()
207 config_store.transition[3].applied); in amd_pmf_trans_automode()
213 if (config_store.transition[j].applied) { in amd_pmf_trans_automode()
215 config_store.transition[j].target_mode) { in amd_pmf_trans_automode()
217 config_store.transition[j].target_mode; in amd_pmf_trans_automode()
232 config_store.transition[AUTO_TRANSITION_TO_PERFORMANCE].target_mode = in amd_pmf_update_2_cql()
236 mode != config_store.transition[AUTO_TRANSITION_TO_PERFORMANCE].target_mode) { in amd_pmf_update_2_cql()
237 mode = config_store.transition[AUTO_TRANSITION_TO_PERFORMANCE].target_mode; in amd_pmf_update_2_cql()
245 config_store.transition[AUTO_TRANSITION_TO_QUIET].power_threshold = in amd_pmf_get_power_threshold()
247 config_store.transition[AUTO_TRANSITION_TO_QUIET].power_delta; in amd_pmf_get_power_threshold()
249 config_store.transition[AUTO_TRANSITION_TO_PERFORMANCE].power_threshold = in amd_pmf_get_power_threshold()
251 config_store.transition[AUTO_TRANSITION_TO_PERFORMANCE].power_delta; in amd_pmf_get_power_threshold()
253 config_store.transition[AUTO_TRANSITION_FROM_QUIET_TO_BALANCE].power_threshold = in amd_pmf_get_power_threshold()
255 config_store.transition[AUTO_TRANSITION_FROM_QUIET_TO_BALANCE].power_delta; in amd_pmf_get_power_threshold()
257 config_store.transition[AUTO_TRANSITION_FROM_PERFORMANCE_TO_BALANCE].power_threshold = in amd_pmf_get_power_threshold()
259 config_store.transition[AUTO_TRANSITION_FROM_PERFORMANCE_TO_BALANCE].power_delta; in amd_pmf_get_power_threshold()
263 config_store.transition[AUTO_TRANSITION_TO_QUIET].power_threshold, in amd_pmf_get_power_threshold()
265 config_store.transition[AUTO_TRANSITION_TO_QUIET].power_delta); in amd_pmf_get_power_threshold()
268 config_store.transition[AUTO_TRANSITION_TO_PERFORMANCE].power_threshold, in amd_pmf_get_power_threshold()
270 config_store.transition[AUTO_TRANSITION_TO_PERFORMANCE].power_delta); in amd_pmf_get_power_threshold()
273 config_store.transition[AUTO_TRANSITION_FROM_QUIET_TO_BALANCE] in amd_pmf_get_power_threshold()
276 config_store.transition[AUTO_TRANSITION_FROM_QUIET_TO_BALANCE].power_delta); in amd_pmf_get_power_threshold()
279 config_store.transition[AUTO_TRANSITION_FROM_PERFORMANCE_TO_BALANCE] in amd_pmf_get_power_threshold()
282 config_store.transition[AUTO_TRANSITION_FROM_PERFORMANCE_TO_BALANCE].power_delta); in amd_pmf_get_power_threshold()
310 config_store.transition[AUTO_TRANSITION_TO_QUIET].time_constant = in amd_pmf_load_defaults_auto_mode()
312 config_store.transition[AUTO_TRANSITION_TO_PERFORMANCE].time_constant = in amd_pmf_load_defaults_auto_mode()
314 config_store.transition[AUTO_TRANSITION_FROM_QUIET_TO_BALANCE].time_constant = in amd_pmf_load_defaults_auto_mode()
316 config_store.transition[AUTO_TRANSITION_FROM_PERFORMANCE_TO_BALANCE].time_constant = in amd_pmf_load_defaults_auto_mode()
326 config_store.transition[AUTO_TRANSITION_TO_QUIET].power_delta = in amd_pmf_load_defaults_auto_mode()
328 config_store.transition[AUTO_TRANSITION_TO_PERFORMANCE].power_delta = in amd_pmf_load_defaults_auto_mode()
330 config_store.transition[AUTO_TRANSITION_FROM_QUIET_TO_BALANCE].power_delta = in amd_pmf_load_defaults_auto_mode()
332 config_store.transition[AUTO_TRANSITION_FROM_PERFORMANCE_TO_BALANCE].power_delta = in amd_pmf_load_defaults_auto_mode()
382 config_store.transition[AUTO_TRANSITION_TO_QUIET].target_mode = AUTO_QUIET; in amd_pmf_load_defaults_auto_mode()
383 config_store.transition[AUTO_TRANSITION_TO_PERFORMANCE].target_mode = in amd_pmf_load_defaults_auto_mode()
385 config_store.transition[AUTO_TRANSITION_FROM_QUIET_TO_BALANCE].target_mode = in amd_pmf_load_defaults_auto_mode()
387 config_store.transition[AUTO_TRANSITION_FROM_PERFORMANCE_TO_BALANCE].target_mode = in amd_pmf_load_defaults_auto_mode()
390 config_store.transition[AUTO_TRANSITION_TO_QUIET].shifting_up = false; in amd_pmf_load_defaults_auto_mode()
391 config_store.transition[AUTO_TRANSITION_TO_PERFORMANCE].shifting_up = true; in amd_pmf_load_defaults_auto_mode()
392 config_store.transition[AUTO_TRANSITION_FROM_QUIET_TO_BALANCE].shifting_up = true; in amd_pmf_load_defaults_auto_mode()
393 config_store.transition[AUTO_TRANSITION_FROM_PERFORMANCE_TO_BALANCE].shifting_up = in amd_pmf_load_defaults_auto_mode()