Lines Matching refs:tp
44 struct cnqf_tran_params *tp; in amd_pmf_update_power_threshold() local
46 tp = &config_store.trans_param[src][CNQF_TRANSITION_TO_QUIET]; in amd_pmf_update_power_threshold()
48 tp->power_threshold = ts->power_floor; in amd_pmf_update_power_threshold()
50 tp = &config_store.trans_param[src][CNQF_TRANSITION_TO_TURBO]; in amd_pmf_update_power_threshold()
52 tp->power_threshold = ts->power_floor; 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()
56 tp->power_threshold = ts->power_floor; 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()
60 tp->power_threshold = ts->power_floor; 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()
64 tp->power_threshold = ts->power_floor; 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()
68 tp->power_threshold = ts->power_floor; in amd_pmf_update_power_threshold()
100 struct cnqf_tran_params *tp; in amd_pmf_trans_cnqf() local
122 tp = &config_store.trans_param[src][i]; in amd_pmf_trans_cnqf()
123 if (tp->timer >= tp->time_constant && tp->count) { in amd_pmf_trans_cnqf()
124 avg_power = tp->total_power / tp->count; in amd_pmf_trans_cnqf()
127 tp->timer = 0; in amd_pmf_trans_cnqf()
128 tp->total_power = 0; in amd_pmf_trans_cnqf()
129 tp->count = 0; in amd_pmf_trans_cnqf()
131 if ((tp->shifting_up && avg_power >= tp->power_threshold) || in amd_pmf_trans_cnqf()
132 (!tp->shifting_up && avg_power <= tp->power_threshold)) { in amd_pmf_trans_cnqf()
133 tp->priority = true; in amd_pmf_trans_cnqf()
135 tp->priority = false; in amd_pmf_trans_cnqf()
163 struct cnqf_tran_params *tp; in amd_pmf_update_trans_data() local
165 tp = &config_store.trans_param[idx][CNQF_TRANSITION_TO_QUIET]; in amd_pmf_update_trans_data()
166 tp->time_constant = out.t_balanced_to_quiet; in amd_pmf_update_trans_data()
167 tp->target_mode = CNQF_MODE_QUIET; in amd_pmf_update_trans_data()
168 tp->shifting_up = false; 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()
171 tp->time_constant = out.t_balanced_to_perf; in amd_pmf_update_trans_data()
172 tp->target_mode = CNQF_MODE_PERFORMANCE; in amd_pmf_update_trans_data()
173 tp->shifting_up = true; 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()
176 tp->time_constant = out.t_quiet_to_balanced; in amd_pmf_update_trans_data()
177 tp->target_mode = CNQF_MODE_BALANCE; in amd_pmf_update_trans_data()
178 tp->shifting_up = true; 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()
181 tp->time_constant = out.t_perf_to_balanced; in amd_pmf_update_trans_data()
182 tp->target_mode = CNQF_MODE_BALANCE; in amd_pmf_update_trans_data()
183 tp->shifting_up = false; 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()
186 tp->time_constant = out.t_turbo_to_perf; in amd_pmf_update_trans_data()
187 tp->target_mode = CNQF_MODE_PERFORMANCE; in amd_pmf_update_trans_data()
188 tp->shifting_up = false; in amd_pmf_update_trans_data()
190 tp = &config_store.trans_param[idx][CNQF_TRANSITION_TO_TURBO]; in amd_pmf_update_trans_data()
191 tp->time_constant = out.t_perf_to_turbo; in amd_pmf_update_trans_data()
192 tp->target_mode = CNQF_MODE_TURBO; in amd_pmf_update_trans_data()
193 tp->shifting_up = true; in amd_pmf_update_trans_data()