Home
last modified time | relevance | path

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

/openbmc/linux/arch/arm/mach-pxa/
H A Dsharpsl_pm.c422 static int sharpsl_ad_index; variable
426 sharpsl_ad_index = 0; in sharpsl_average_clear()
435 sharpsl_ad_index = 0; in sharpsl_average_value()
439 sharpsl_ad[sharpsl_ad_index] = ad; in sharpsl_average_value()
440 sharpsl_ad_index++; in sharpsl_average_value()
441 if (sharpsl_ad_index >= SHARPSL_CNV_VALUE_NUM) { in sharpsl_average_value()
444 sharpsl_ad_index = SHARPSL_CNV_VALUE_NUM - 1; in sharpsl_average_value()
446 for (i = 0; i < sharpsl_ad_index; i++) in sharpsl_average_value()
449 return ad_val / sharpsl_ad_index; in sharpsl_average_value()