Home
last modified time | relevance | path

Searched refs:current_ratio (Results 1 – 2 of 2) sorted by relevance

/openbmc/linux/drivers/video/backlight/
H A Dktd253-backlight.c80 u16 current_ratio = ktd253->ratio; in ktd253_backlight_update_status() local
87 if (target_ratio == current_ratio) in ktd253_backlight_update_status()
102 if (current_ratio == 0) { in ktd253_backlight_update_status()
104 current_ratio = KTD253_MAX_RATIO; in ktd253_backlight_update_status()
107 while (current_ratio != target_ratio) { in ktd253_backlight_update_status()
123 current_ratio = KTD253_MAX_RATIO; in ktd253_backlight_update_status()
124 } else if (current_ratio == KTD253_MIN_RATIO) { in ktd253_backlight_update_status()
126 current_ratio = KTD253_MAX_RATIO; in ktd253_backlight_update_status()
128 current_ratio--; in ktd253_backlight_update_status()
131 ktd253->ratio = current_ratio; in ktd253_backlight_update_status()
/openbmc/linux/drivers/thermal/intel/
H A Dintel_powerclamp.c57 static unsigned int current_ratio; variable
447 delta = powerclamp_data.target_ratio - current_ratio; in adjust_compensation()
472 current_ratio = 1; in powerclamp_adjust_controls()
476 current_ratio = val64; in powerclamp_adjust_controls()
486 return powerclamp_data.target_ratio + guard <= current_ratio; in powerclamp_adjust_controls()