Lines Matching refs:config_store

15 static struct cnqf_config config_store;  variable
77 pc = &config_store.mode_set[src][idx].power_control; in amd_pmf_set_cnqf()
91 config_store.mode_set[src][idx].fan_control.manual, in amd_pmf_set_cnqf()
92 config_store.mode_set[src][idx].fan_control.fan_id); in amd_pmf_set_cnqf()
102 tp = &config_store.trans_param[src][CNQF_TRANSITION_TO_QUIET]; in amd_pmf_update_power_threshold()
103 ts = &config_store.mode_set[src][CNQF_MODE_BALANCE]; in amd_pmf_update_power_threshold()
106 tp = &config_store.trans_param[src][CNQF_TRANSITION_TO_TURBO]; in amd_pmf_update_power_threshold()
107 ts = &config_store.mode_set[src][CNQF_MODE_PERFORMANCE]; in amd_pmf_update_power_threshold()
110 tp = &config_store.trans_param[src][CNQF_TRANSITION_FROM_BALANCE_TO_PERFORMANCE]; in amd_pmf_update_power_threshold()
111 ts = &config_store.mode_set[src][CNQF_MODE_BALANCE]; in amd_pmf_update_power_threshold()
114 tp = &config_store.trans_param[src][CNQF_TRANSITION_FROM_PERFORMANCE_TO_BALANCE]; in amd_pmf_update_power_threshold()
115 ts = &config_store.mode_set[src][CNQF_MODE_PERFORMANCE]; in amd_pmf_update_power_threshold()
118 tp = &config_store.trans_param[src][CNQF_TRANSITION_FROM_QUIET_TO_BALANCE]; in amd_pmf_update_power_threshold()
119 ts = &config_store.mode_set[src][CNQF_MODE_QUIET]; in amd_pmf_update_power_threshold()
122 tp = &config_store.trans_param[src][CNQF_TRANSITION_FROM_TURBO_TO_PERFORMANCE]; in amd_pmf_update_power_threshold()
123 ts = &config_store.mode_set[src][CNQF_MODE_TURBO]; in amd_pmf_update_power_threshold()
163 amd_pmf_set_cnqf(dev, src, config_store.current_mode, NULL); in amd_pmf_trans_cnqf()
174 config_store.trans_param[src][i].timer += time_lapsed_ms; in amd_pmf_trans_cnqf()
175 config_store.trans_param[src][i].total_power += socket_power; in amd_pmf_trans_cnqf()
176 config_store.trans_param[src][i].count++; in amd_pmf_trans_cnqf()
178 tp = &config_store.trans_param[src][i]; in amd_pmf_trans_cnqf()
182 avg_power, config_store.trans_param[src][i].total_power, in amd_pmf_trans_cnqf()
183 config_store.trans_param[src][i].count, in amd_pmf_trans_cnqf()
184 config_store.trans_param[src][i].timer); in amd_pmf_trans_cnqf()
204 avg_power, socket_power, state_as_str(config_store.current_mode)); in amd_pmf_trans_cnqf()
208 config_store.trans_param[src][0].priority, in amd_pmf_trans_cnqf()
209 config_store.trans_param[src][1].priority, in amd_pmf_trans_cnqf()
210 config_store.trans_param[src][2].priority); in amd_pmf_trans_cnqf()
213 config_store.trans_param[src][3].priority, in amd_pmf_trans_cnqf()
214 config_store.trans_param[src][4].priority, in amd_pmf_trans_cnqf()
215 config_store.trans_param[src][5].priority); in amd_pmf_trans_cnqf()
220 if (config_store.trans_param[src][j].priority) { in amd_pmf_trans_cnqf()
221 if (config_store.current_mode != in amd_pmf_trans_cnqf()
222 config_store.trans_param[src][j].target_mode) { in amd_pmf_trans_cnqf()
223 config_store.current_mode = in amd_pmf_trans_cnqf()
224 config_store.trans_param[src][j].target_mode; in amd_pmf_trans_cnqf()
226 state_as_str(config_store.current_mode)); in amd_pmf_trans_cnqf()
228 config_store.current_mode, NULL); in amd_pmf_trans_cnqf()
240 tp = &config_store.trans_param[idx][CNQF_TRANSITION_TO_QUIET]; in amd_pmf_update_trans_data()
245 tp = &config_store.trans_param[idx][CNQF_TRANSITION_FROM_BALANCE_TO_PERFORMANCE]; in amd_pmf_update_trans_data()
250 tp = &config_store.trans_param[idx][CNQF_TRANSITION_FROM_QUIET_TO_BALANCE]; in amd_pmf_update_trans_data()
255 tp = &config_store.trans_param[idx][CNQF_TRANSITION_FROM_PERFORMANCE_TO_BALANCE]; in amd_pmf_update_trans_data()
260 tp = &config_store.trans_param[idx][CNQF_TRANSITION_FROM_TURBO_TO_PERFORMANCE]; in amd_pmf_update_trans_data()
265 tp = &config_store.trans_param[idx][CNQF_TRANSITION_TO_TURBO]; in amd_pmf_update_trans_data()
276 ms = &config_store.mode_set[idx][CNQF_MODE_QUIET]; in amd_pmf_update_mode_set()
290 ms = &config_store.mode_set[idx][CNQF_MODE_BALANCE]; in amd_pmf_update_mode_set()
304 ms = &config_store.mode_set[idx][CNQF_MODE_PERFORMANCE]; in amd_pmf_update_mode_set()
318 ms = &config_store.mode_set[idx][CNQF_MODE_TURBO]; in amd_pmf_update_mode_set()
368 if (config_store.mode_set[i][j].fan_control.fan_id == FAN_INDEX_AUTO) in amd_pmf_load_defaults_cnqf()
369 config_store.mode_set[i][j].fan_control.manual = false; in amd_pmf_load_defaults_cnqf()
371 config_store.mode_set[i][j].fan_control.manual = true; in amd_pmf_load_defaults_cnqf()
376 config_store.current_mode = CNQF_MODE_BALANCE; in amd_pmf_load_defaults_cnqf()
397 amd_pmf_set_cnqf(pdev, src, config_store.current_mode, NULL); in cnqf_enable_store()
463 amd_pmf_set_cnqf(dev, src, config_store.current_mode, NULL); in amd_pmf_init_cnqf()