Lines Matching refs:swp_freq
761 int swp_freq ; in swp_freq_calcuation() local
771 swp_freq = fOSC * 1000 + afcex_freq - swp_ofs; in swp_freq_calcuation()
779 swp_freq = fOSC * 1000 + afcex_freq; in swp_freq_calcuation()
791 swp_freq = fOSC * 1000 + afcex_freq - swp_ofs; in swp_freq_calcuation()
794 swp_freq = fOSC * 1000 + afcex_freq - swp_ofs * 2; in swp_freq_calcuation()
807 swp_freq = fOSC * 1000 + afcex_freq; in swp_freq_calcuation()
810 swp_freq = fOSC * 1000 + afcex_freq - swp_ofs; in swp_freq_calcuation()
814 swp_freq = -1 ; in swp_freq_calcuation()
825 swp_freq = fOSC * 1000 + afcex_freq + swp_ofs; in swp_freq_calcuation()
833 swp_freq = fOSC * 1000 + afcex_freq + swp_ofs; in swp_freq_calcuation()
843 swp_freq = fOSC * 1000 + afcex_freq; in swp_freq_calcuation()
855 swp_freq = fOSC * 1000 + afcex_freq + swp_ofs; in swp_freq_calcuation()
858 swp_freq = fOSC * 1000 + afcex_freq + swp_ofs * 2; in swp_freq_calcuation()
873 swp_freq = fOSC * 1000 + afcex_freq; in swp_freq_calcuation()
876 swp_freq = fOSC * 1000 + afcex_freq + swp_ofs; in swp_freq_calcuation()
889 swp_freq = fOSC * 1000 + afcex_freq + swp_ofs; in swp_freq_calcuation()
892 swp_freq = fOSC * 1000 + afcex_freq + swp_ofs * 2; in swp_freq_calcuation()
896 swp_freq = fOSC * 1000; in swp_freq_calcuation()
899 swp_freq = -1; in swp_freq_calcuation()
901 swp_freq = -1; in swp_freq_calcuation()
903 return swp_freq; in swp_freq_calcuation()
909 int swp_freq, in swp_info_get2() argument
918 *fOSC = (swp_freq + 1000) / 2000 * 2; in swp_info_get2()
920 *fOSC = (swp_freq + 500) / 1000; in swp_info_get2()
922 if (*fOSC >= swp_freq) in swp_info_get2()
923 *afcex_freq = *fOSC * 1000 - swp_freq; in swp_info_get2()
925 *afcex_freq = swp_freq - *fOSC * 1000; in swp_info_get2()
1027 int swp_freq, prev_swp_freq[20]; in mb86a16_set_fe() local
1185 swp_freq = swp_freq_calcuation(state, i, v, V, vmax, vmin, in mb86a16_set_fe()
1191 if ((abs(prev_swp_freq[j] - swp_freq)) < (swp_ofs * 3 / 2)) { in mb86a16_set_fe()
1196 …if ((signal_dupl == 0) && (swp_freq > 0) && (abs(swp_freq - state->frequency * 1000) < fcp + state… in mb86a16_set_fe()
1197 …A16_DEBUG, 1, "------ Signal detect ------ [swp_freq=[%07d, srate=%05d]]", swp_freq, state->srate); in mb86a16_set_fe()
1198 prev_swp_freq[prev_freq_num] = swp_freq; in mb86a16_set_fe()
1200 swp_info_get2(state, state->srate, R, swp_freq, in mb86a16_set_fe()
1286 swp_freq = fOSC * 1000 + afcerr ; in mb86a16_set_fe()
1307 temp_freq = swp_freq + (i - 1) * state->srate / 8; in mb86a16_set_fe()
1325 temp_freq = swp_freq - 2 * state->srate / 8; in mb86a16_set_fe()
1346 temp_freq = swp_freq + 2 * state->srate / 8; in mb86a16_set_fe()
1367 dprintk(verbose, MB86A16_INFO, 1, "SWEEP Frequency = %d", swp_freq); in mb86a16_set_fe()
1368 swp_freq += delta_freq; in mb86a16_set_fe()
1369 …tk(verbose, MB86A16_INFO, 1, "Adjusting .., DELTA Freq = %d, SWEEP Freq=%d", delta_freq, swp_freq); in mb86a16_set_fe()
1370 if (abs(state->frequency * 1000 - swp_freq) > 3800) { in mb86a16_set_fe()
1402 swp_info_get2(state, state->srate, R, swp_freq, &afcex_freq, &fOSC, &AFCEX_L, &AFCEX_H); in mb86a16_set_fe()