Lines Matching refs:agc2
1593 u32 agc2_min = 0xffff, agc2 = 0, freq_init, freq_step, reg; in stv090x_get_agc2_min_level() local
1643 agc2 = 0; in stv090x_get_agc2_min_level()
1645 agc2 += (STV090x_READ_DEMOD(state, AGC2I1) << 8) | in stv090x_get_agc2_min_level()
1648 agc2 /= 10; in stv090x_get_agc2_min_level()
1649 if (agc2 < agc2_min) in stv090x_get_agc2_min_level()
1650 agc2_min = agc2; in stv090x_get_agc2_min_level()
1690 u32 srate_coarse = 0, agc2 = 0, car_step = 1200, reg; in stv090x_srate_srch_coarse() local
1783 agc2 += (STV090x_READ_DEMOD(state, AGC2I1) << 8) | in stv090x_srate_srch_coarse()
1786 agc2 /= 10; in stv090x_srate_srch_coarse()
1790 if ((tmg_cpt >= 5) && (agc2 < agc2th) && in stv090x_srate_srch_coarse()
1984 u32 agc2, reg, srate_coarse; in stv090x_blind_search() local
1993 agc2 = stv090x_get_agc2_min_level(state); in stv090x_blind_search()
1995 if (agc2 > STV090x_SEARCH_AGC2_TH(state->internal->dev_ver)) { in stv090x_blind_search()
2039 agc2 += (STV090x_READ_DEMOD(state, AGC2I1) << 8) | in stv090x_blind_search()
2041 if (agc2 >= 0xff00) in stv090x_blind_search()
2312 s32 offst_car, agc2, car_max; in stv090x_chk_signal() local
2319 agc2 = STV090x_READ_DEMOD(state, AGC2I1) << 8; in stv090x_chk_signal()
2320 agc2 |= STV090x_READ_DEMOD(state, AGC2I0); in stv090x_chk_signal()
2330 if ((agc2 > 0x2000) || (offst_car > 2 * car_max) || (offst_car < -2 * car_max)) { in stv090x_chk_signal()