Lines Matching refs:srate
66 static u32 stb0899_set_srate(struct stb0899_state *state, u32 master_clk, u32 srate) in stb0899_set_srate() argument
89 tmp = stb0899_do_div((((u64)srate) << 21) + master_clk, 2 * master_clk); in stb0899_set_srate()
98 return srate; in stb0899_set_srate()
107 static long stb0899_calc_derot_time(long srate) in stb0899_calc_derot_time() argument
109 if (srate > 0) in stb0899_calc_derot_time()
110 return (100000 / (srate / 1000)); in stb0899_calc_derot_time()
124 return (internal->srate + (internal->srate * internal->rolloff) / 100); in stb0899_carr_width()
208 derot_step = (params->srate / 2L) / internal->mclk; in stb0899_search_tmg()
341 if (params->srate <= 2000000) in stb0899_check_data()
343 else if (params->srate <= 5000000) in stb0899_check_data()
345 else if (params->srate <= 15000000) in stb0899_check_data()
387 derot_step = (params->srate / 4L) / internal->mclk; in stb0899_search_data()
513 stb0899_set_srate(state, internal->master_clk, params->srate); in stb0899_dvbs_algo()
515 if (params->srate <= 5000000) { in stb0899_dvbs_algo()
521 } else if (params->srate <= 15000000) { in stb0899_dvbs_algo()
527 } else if(params->srate <= 25000000) { in stb0899_dvbs_algo()
553 internal->derot_percent, params->srate, internal->mclk); in stb0899_dvbs_algo()
556 …internal->derot_step = internal->derot_percent * (params->srate / 1000L) / internal->mclk; /* Dero… in stb0899_dvbs_algo()
557 internal->t_derot = stb0899_calc_derot_time(params->srate); in stb0899_dvbs_algo()
613 if (params->srate <= bandwidth / 2) in stb0899_dvbs_algo()
793 u32 master_clk, srate; in stb0899_dvbs2_calc_srate() local
795 dec_ratio = (internal->master_clk * 2) / (5 * internal->srate); in stb0899_dvbs2_calc_srate()
800 srate = internal->srate / 1000; in stb0899_dvbs2_calc_srate()
809 btr_nom_freq = (intval * srate) + ((remain * srate) / master_clk); in stb0899_dvbs2_calc_srate()
821 u32 dec_ratio, correction, master_clk, srate; in stb0899_dvbs2_calc_dev() local
823 dec_ratio = (internal->master_clk * 2) / (5 * internal->srate); in stb0899_dvbs2_calc_dev()
827 srate = internal->srate / 1000; /* for integer Calculation*/ in stb0899_dvbs2_calc_dev()
828 correction = (512 * master_clk) / (2 * dec_ratio * srate); in stb0899_dvbs2_calc_dev()
846 dec_ratio = (internal->master_clk * 2) / (5 * internal->srate); in stb0899_dvbs2_set_srate()
856 f_sym = internal->master_clk / ((decim * internal->srate) / 1000); in stb0899_dvbs2_set_srate()
883 freq_adj = internal->srate / (internal->master_clk / 4096); in stb0899_dvbs2_set_srate()
902 dec_ratio = (internal->master_clk * 2) / (5 * internal->srate); in stb0899_dvbs2_set_btr_loopbw()
909 K *= (internal->srate / 1000000) * decim; /*k=k 10^-8*/ in stb0899_dvbs2_set_btr_loopbw()
981 if (internal->srate / 1000000 >= 15) in stb0899_dvbs2_init_calc()
983 else if (internal->srate / 1000000 >= 10) in stb0899_dvbs2_init_calc()
985 else if (internal->srate / 1000000 >= 5) in stb0899_dvbs2_init_calc()
991 steps = (10 * range * (1 << 17)) / (step_size * (internal->srate / 1000000)); in stb0899_dvbs2_init_calc()
996 (internal->step_size * (internal->srate / 20000000)), in stb0899_dvbs2_init_calc()
1169 if (((internal->master_clk / internal->srate) <= 4) && (modcod <= 11) && (pilots == 1)) { in stb0899_dvbs2_init_csm()
1273 u32 bTrNomFreq, srate, decimRate, intval1, intval2, reg; in stb0899_dvbs2_get_srate() local
1291 srate = (intval1 * intval2) + ((intval1 * rem2) / (1 << div2)) + ((intval2 * rem1) / (1 << div1)); in stb0899_dvbs2_get_srate()
1292 srate /= decimRate; /*symbrate = (btrnomfreq_register_val*MasterClock)/2^(27+decim_rate_field) */ in stb0899_dvbs2_get_srate()
1294 return srate; in stb0899_dvbs2_get_srate()
1311 if (internal->srate <= 2000000) { in stb0899_dvbs2_algo()
1314 } else if (internal->srate <= 5000000) { in stb0899_dvbs2_algo()
1317 } else if (internal->srate <= 10000000) { in stb0899_dvbs2_algo()
1320 } else if (internal->srate <= 15000000) { in stb0899_dvbs2_algo()
1323 } else if (internal->srate <= 20000000) { in stb0899_dvbs2_algo()
1326 } else if (internal->srate <= 25000000) { in stb0899_dvbs2_algo()
1441 if ((((10 * internal->master_clk) / (internal->srate / 10)) <= 410) && in stb0899_dvbs2_algo()
1463 if ((((10 * internal->master_clk) / (internal->srate / 10)) <= 410) && in stb0899_dvbs2_algo()
1494 internal->srate = stb0899_dvbs2_get_srate(state); in stb0899_dvbs2_algo()