Lines Matching defs:bthr
760 const struct battery_threshold *bthr;
763 bthr = zaurus_main_battery->bi_thres;
765 for (i = 0; bthr[i].value > 0; i++)
766 if (bthr[i].value <= volt)
769 return bthr[i].state;
775 const struct battery_threshold *bthr;
778 bthr = zaurus_main_battery->bi_thres;
780 for (i = 0; bthr[i].value > 0; i++)
781 if (bthr[i].value <= volt)
785 return bthr[0].percent;
787 return (bthr[i].percent +
788 ((volt - bthr[i].value) * 100) /
789 (bthr[i-1].value - bthr[i].value) *
790 (bthr[i-1].percent - bthr[i].percent) / 100);