Lines Matching refs:config_store
14 static struct cnqf_config config_store; variable
21 pc = &config_store.mode_set[src][idx].power_control; in amd_pmf_set_cnqf()
35 config_store.mode_set[src][idx].fan_control.manual, in amd_pmf_set_cnqf()
36 config_store.mode_set[src][idx].fan_control.fan_id); in amd_pmf_set_cnqf()
46 tp = &config_store.trans_param[src][CNQF_TRANSITION_TO_QUIET]; in amd_pmf_update_power_threshold()
47 ts = &config_store.mode_set[src][CNQF_MODE_BALANCE]; in amd_pmf_update_power_threshold()
50 tp = &config_store.trans_param[src][CNQF_TRANSITION_TO_TURBO]; in amd_pmf_update_power_threshold()
51 ts = &config_store.mode_set[src][CNQF_MODE_PERFORMANCE]; in amd_pmf_update_power_threshold()
54 tp = &config_store.trans_param[src][CNQF_TRANSITION_FROM_BALANCE_TO_PERFORMANCE]; in amd_pmf_update_power_threshold()
55 ts = &config_store.mode_set[src][CNQF_MODE_BALANCE]; in amd_pmf_update_power_threshold()
58 tp = &config_store.trans_param[src][CNQF_TRANSITION_FROM_PERFORMANCE_TO_BALANCE]; in amd_pmf_update_power_threshold()
59 ts = &config_store.mode_set[src][CNQF_MODE_PERFORMANCE]; in amd_pmf_update_power_threshold()
62 tp = &config_store.trans_param[src][CNQF_TRANSITION_FROM_QUIET_TO_BALANCE]; in amd_pmf_update_power_threshold()
63 ts = &config_store.mode_set[src][CNQF_MODE_QUIET]; in amd_pmf_update_power_threshold()
66 tp = &config_store.trans_param[src][CNQF_TRANSITION_FROM_TURBO_TO_PERFORMANCE]; in amd_pmf_update_power_threshold()
67 ts = &config_store.mode_set[src][CNQF_MODE_TURBO]; in amd_pmf_update_power_threshold()
107 amd_pmf_set_cnqf(dev, src, config_store.current_mode, NULL); in amd_pmf_trans_cnqf()
118 config_store.trans_param[src][i].timer += time_lapsed_ms; in amd_pmf_trans_cnqf()
119 config_store.trans_param[src][i].total_power += socket_power; in amd_pmf_trans_cnqf()
120 config_store.trans_param[src][i].count++; in amd_pmf_trans_cnqf()
122 tp = &config_store.trans_param[src][i]; in amd_pmf_trans_cnqf()
141 avg_power, socket_power, state_as_str(config_store.current_mode)); in amd_pmf_trans_cnqf()
145 if (config_store.trans_param[src][j].priority) { in amd_pmf_trans_cnqf()
146 if (config_store.current_mode != in amd_pmf_trans_cnqf()
147 config_store.trans_param[src][j].target_mode) { in amd_pmf_trans_cnqf()
148 config_store.current_mode = in amd_pmf_trans_cnqf()
149 config_store.trans_param[src][j].target_mode; in amd_pmf_trans_cnqf()
151 state_as_str(config_store.current_mode)); in amd_pmf_trans_cnqf()
153 config_store.current_mode, NULL); in amd_pmf_trans_cnqf()
165 tp = &config_store.trans_param[idx][CNQF_TRANSITION_TO_QUIET]; in amd_pmf_update_trans_data()
170 tp = &config_store.trans_param[idx][CNQF_TRANSITION_FROM_BALANCE_TO_PERFORMANCE]; in amd_pmf_update_trans_data()
175 tp = &config_store.trans_param[idx][CNQF_TRANSITION_FROM_QUIET_TO_BALANCE]; in amd_pmf_update_trans_data()
180 tp = &config_store.trans_param[idx][CNQF_TRANSITION_FROM_PERFORMANCE_TO_BALANCE]; in amd_pmf_update_trans_data()
185 tp = &config_store.trans_param[idx][CNQF_TRANSITION_FROM_TURBO_TO_PERFORMANCE]; in amd_pmf_update_trans_data()
190 tp = &config_store.trans_param[idx][CNQF_TRANSITION_TO_TURBO]; in amd_pmf_update_trans_data()
201 ms = &config_store.mode_set[idx][CNQF_MODE_QUIET]; in amd_pmf_update_mode_set()
215 ms = &config_store.mode_set[idx][CNQF_MODE_BALANCE]; in amd_pmf_update_mode_set()
229 ms = &config_store.mode_set[idx][CNQF_MODE_PERFORMANCE]; in amd_pmf_update_mode_set()
243 ms = &config_store.mode_set[idx][CNQF_MODE_TURBO]; in amd_pmf_update_mode_set()
292 if (config_store.mode_set[i][j].fan_control.fan_id == FAN_INDEX_AUTO) in amd_pmf_load_defaults_cnqf()
293 config_store.mode_set[i][j].fan_control.manual = false; in amd_pmf_load_defaults_cnqf()
295 config_store.mode_set[i][j].fan_control.manual = true; in amd_pmf_load_defaults_cnqf()
300 config_store.current_mode = CNQF_MODE_BALANCE; in amd_pmf_load_defaults_cnqf()
321 amd_pmf_set_cnqf(pdev, src, config_store.current_mode, NULL); in cnqf_enable_store()
387 amd_pmf_set_cnqf(dev, src, config_store.current_mode, NULL); in amd_pmf_init_cnqf()