Home
last modified time | relevance | path

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

/openbmc/linux/drivers/media/tuners/
H A Dmt2063.c575 s32 bestDiff; in MT2063_ChooseFirstIF() local
645 bestDiff = zones[0].min_; in MT2063_ChooseFirstIF()
647 if (abs(zones[i].min_) < abs(bestDiff)) in MT2063_ChooseFirstIF()
648 bestDiff = zones[i].min_; in MT2063_ChooseFirstIF()
649 if (abs(zones[i].max_) < abs(bestDiff)) in MT2063_ChooseFirstIF()
650 bestDiff = zones[i].max_; in MT2063_ChooseFirstIF()
653 if (bestDiff < 0) in MT2063_ChooseFirstIF()
654 return f_Center - ((u32) (-bestDiff) * f_Step); in MT2063_ChooseFirstIF()
656 return f_Center + (bestDiff * f_Step); in MT2063_ChooseFirstIF()