Lines Matching refs:derot_freq
212 short int derot_step, derot_freq = 0, derot_limit, next_loop = 3; in stb0899_search_tmg() local
224 derot_freq += index * internal->direction * derot_step; /* next derot zig zag position */ in stb0899_search_tmg()
226 if (abs(derot_freq) > derot_limit) in stb0899_search_tmg()
230 STB0899_SETFIELD_VAL(CFRM, cfr[0], MSB(internal->inversion * derot_freq)); in stb0899_search_tmg()
231 STB0899_SETFIELD_VAL(CFRL, cfr[1], LSB(internal->inversion * derot_freq)); in stb0899_search_tmg()
239 internal->derot_freq = internal->inversion * MAKEWORD16(cfr[0], cfr[1]); in stb0899_search_tmg()
240 dprintk(state->verbose, FE_DEBUG, 1, "------->TIMING OK ! Derot Freq = %d", internal->derot_freq); in stb0899_search_tmg()
282 short int derot_freq = 0, last_derot_freq = 0, derot_limit, next_loop = 3; in stb0899_search_carrier() local
289 derot_freq = internal->derot_freq; in stb0899_search_carrier()
296 dprintk(state->verbose, FE_DEBUG, 1, "Derot Freq=%d, mclk=%d", derot_freq, internal->mclk); in stb0899_search_carrier()
299 last_derot_freq = derot_freq; in stb0899_search_carrier()
300 …derot_freq += index * internal->direction * internal->derot_step; /* next zig zag derotator positi… in stb0899_search_carrier()
302 if(abs(derot_freq) > derot_limit) in stb0899_search_carrier()
310 STB0899_SETFIELD_VAL(CFRM, cfr[0], MSB(internal->inversion * derot_freq)); in stb0899_search_carrier()
311 STB0899_SETFIELD_VAL(CFRL, cfr[1], LSB(internal->inversion * derot_freq)); in stb0899_search_carrier()
321 internal->derot_freq = internal->inversion * MAKEWORD16(cfr[0], cfr[1]); in stb0899_search_carrier()
322 dprintk(state->verbose, FE_DEBUG, 1, "----> CARRIER OK !, Derot Freq=%d", internal->derot_freq); in stb0899_search_carrier()
324 internal->derot_freq = last_derot_freq; in stb0899_search_carrier()
391 short int derot_freq, derot_step, derot_limit, next_loop = 3; in stb0899_search_data() local
401 derot_freq = internal->derot_freq; in stb0899_search_data()
406 derot_freq += index * internal->direction * derot_step; /* next zig zag derotator position */ in stb0899_search_data()
407 if (abs(derot_freq) > derot_limit) in stb0899_search_data()
411 dprintk(state->verbose, FE_DEBUG, 1, "Derot freq=%d, mclk=%d", derot_freq, internal->mclk); in stb0899_search_data()
416 STB0899_SETFIELD_VAL(CFRM, cfr[0], MSB(internal->inversion * derot_freq)); in stb0899_search_data()
417 STB0899_SETFIELD_VAL(CFRL, cfr[1], LSB(internal->inversion * derot_freq)); in stb0899_search_data()
437 internal->derot_freq = internal->inversion * MAKEWORD16(cfr[0], cfr[1]); in stb0899_search_data()
438 dprintk(state->verbose, FE_DEBUG, 1, "------> DATAOK ! Derot Freq=%d", internal->derot_freq); in stb0899_search_data()
456 tp_freq = internal->freq - (internal->derot_freq * internal->mclk) / 1000; in stb0899_check_range()
600 internal->derot_freq = 0; in stb0899_dvbs_algo()
615 dprintk(state->verbose, FE_DEBUG, 1, "current derot freq=%d", internal->derot_freq); in stb0899_dvbs_algo()
633 internal->derot_freq, internal->mclk); in stb0899_dvbs_algo()
638 internal->derot_freq, internal->mclk); in stb0899_dvbs_algo()
643 internal->derot_freq, internal->mclk); in stb0899_dvbs_algo()
648 internal->derot_freq, internal->mclk); in stb0899_dvbs_algo()
650 internal->freq = params->freq - ((internal->derot_freq * internal->mclk) / 1000); in stb0899_dvbs_algo()