Lines Matching refs:lmt

107 	struct lmt_param lmt;  member
211 if ((e->lmt.max_volt != -ENODATA) && (tgt_volt > e->lmt.max_volt)) { in wtemp_dvfs_low_temp_adjust()
212 tgt_volt = e->lmt.max_volt; in wtemp_dvfs_low_temp_adjust()
273 if (e->lmt.ltemp_limit && temp <= e->lmt.low_temp) in wtemp_dvfs_is_effect()
278 if (e->lmt.tztemp_limit && temp >= e->lmt.tz_temp) in wtemp_dvfs_is_effect()
280 else if (e->lmt.htemp_limit && temp >= e->lmt.high_temp) in wtemp_dvfs_is_effect()
294 if (e->lmt.ltemp_limit && temp <= e->lmt.low_temp) { in __wtemp_dvfs_apply()
302 if (e->lmt.tztemp_limit && temp >= e->lmt.tz_temp) { in __wtemp_dvfs_apply()
305 } else if (e->lmt.htemp_limit && temp >= e->lmt.high_temp) { in __wtemp_dvfs_apply()
345 e->lmt.low_temp = ofnode_read_s32_default(opp_node, in __wtemp_common_ofdata_to_platdata()
347 e->lmt.high_temp = ofnode_read_s32_default(opp_node, in __wtemp_common_ofdata_to_platdata()
349 e->lmt.max_volt = ofnode_read_u32_default(opp_node, in __wtemp_common_ofdata_to_platdata()
353 e->name, e->lmt.low_temp, e->lmt.high_temp, in __wtemp_common_ofdata_to_platdata()
354 e->lmt.max_volt); in __wtemp_common_ofdata_to_platdata()
377 if (e->lmt.max_volt == -ENODATA) in __wtemp_common_ofdata_to_platdata()
378 e->lmt.max_volt = e->opp[e->opp_nr - 1].uv; in __wtemp_common_ofdata_to_platdata()
379 if (e->lmt.low_temp != -ENODATA) in __wtemp_common_ofdata_to_platdata()
380 e->lmt.ltemp_limit = true; in __wtemp_common_ofdata_to_platdata()
381 if (e->lmt.high_temp != -ENODATA) in __wtemp_common_ofdata_to_platdata()
382 e->lmt.htemp_limit = true; in __wtemp_common_ofdata_to_platdata()
433 if (e->lmt.ltemp_repeat) in wtemp_dvfs_repeat_apply()
435 if (e->lmt.htemp_repeat) in wtemp_dvfs_repeat_apply()
447 if (e->lmt.ltemp_repeat && in wtemp_dvfs_repeat_apply()
450 if (e->lmt.htemp_repeat && in wtemp_dvfs_repeat_apply()
477 if (!e->lmt.ltemp_limit && in print_e_state()
478 !e->lmt.htemp_limit && !e->lmt.tztemp_limit) in print_e_state()
481 temp2string(e->lmt.tz_temp, s_tz, TEMP_STRING_LEN); in print_e_state()
482 temp2string(e->lmt.low_temp, s_low, TEMP_STRING_LEN); in print_e_state()
483 temp2string(e->lmt.high_temp, s_high, TEMP_STRING_LEN); in print_e_state()
486 e->name, e->lmt.ltemp_limit ? s_low : NULL, in print_e_state()
487 e->lmt.htemp_limit ? s_high : NULL, in print_e_state()
488 e->lmt.max_volt, in print_e_state()
489 e->lmt.tztemp_limit ? s_tz : NULL, in print_e_state()
490 e->lmt.htemp_repeat, e->lmt.ltemp_repeat); in print_e_state()
525 priv->cpu->lmt.ltemp_repeat = in wtemp_dvfs_ofdata_to_platdata()
527 priv->cpu->lmt.htemp_repeat = in wtemp_dvfs_ofdata_to_platdata()
549 priv->dmc->lmt.ltemp_repeat = in wtemp_dvfs_ofdata_to_platdata()
551 priv->dmc->lmt.htemp_repeat = in wtemp_dvfs_ofdata_to_platdata()
582 priv->cpu->lmt.tztemp_limit = true; in wtemp_dvfs_ofdata_to_platdata()
583 priv->cpu->lmt.tz_temp = tz_temp; in wtemp_dvfs_ofdata_to_platdata()
585 priv->dmc->lmt.tztemp_limit = true; in wtemp_dvfs_ofdata_to_platdata()
586 priv->dmc->lmt.tz_temp = tz_temp; in wtemp_dvfs_ofdata_to_platdata()