Lines Matching refs:max_index
1682 int min_index, max_index, index; in cxd2841er_dvbs_read_snr() local
1702 max_index = ARRAY_SIZE(s_cn_data) - 1; in cxd2841er_dvbs_read_snr()
1705 max_index = ARRAY_SIZE(s2_cn_data) - 1; in cxd2841er_dvbs_read_snr()
1711 if (value <= cn_data[max_index].value) { in cxd2841er_dvbs_read_snr()
1712 res = cn_data[max_index].cnr_x1000; in cxd2841er_dvbs_read_snr()
1715 while ((max_index - min_index) > 1) { in cxd2841er_dvbs_read_snr()
1716 index = (max_index + min_index) / 2; in cxd2841er_dvbs_read_snr()
1721 max_index = index; in cxd2841er_dvbs_read_snr()
1724 if ((max_index - min_index) <= 1) { in cxd2841er_dvbs_read_snr()
1725 if (value == cn_data[max_index].value) { in cxd2841er_dvbs_read_snr()
1726 res = cn_data[max_index].cnr_x1000; in cxd2841er_dvbs_read_snr()