Lines Matching defs:master_clk
42 static u32 stb0899_set_srate(struct stb0899_state *state, u32 master_clk, u32 srate)
54 * srate = (SFR * master_clk) >> 20
56 * SFR = srate << 20 / master_clk
59 * SFR = (srate << 21 + master_clk) / (2 * master_clk)
65 tmp = stb0899_do_div((((u64)srate) << 21) + master_clk, 2 * master_clk);
478 stb0899_set_srate(state, internal->master_clk, params->srate);
758 u32 master_clk, srate;
760 dec_ratio = (internal->master_clk * 2) / (5 * internal->srate);
764 master_clk = internal->master_clk / 1000;
768 intval = (decim * (1 << (config->btr_nco_bits - 1))) / master_clk;
769 remain = (decim * (1 << (config->btr_nco_bits - 1))) % master_clk;
771 intval = (1 << (config->btr_nco_bits - 1)) / (master_clk / 100) * decim / 100;
772 remain = (decim * (1 << (config->btr_nco_bits - 1))) % master_clk;
774 btr_nom_freq = (intval * srate) + ((remain * srate) / master_clk);
786 u32 dec_ratio, correction, master_clk, srate;
788 dec_ratio = (internal->master_clk * 2) / (5 * internal->srate);
791 master_clk = internal->master_clk / 1000; /* for integer Caculation*/
793 correction = (512 * master_clk) / (2 * dec_ratio * srate);
811 dec_ratio = (internal->master_clk * 2) / (5 * internal->srate);
821 f_sym = internal->master_clk / ((decim * internal->srate) / 1000);
848 freq_adj = internal->srate / (internal->master_clk / 4096);
867 dec_ratio = (internal->master_clk * 2) / (5 * internal->srate);
873 K = (1 << config->btr_nco_bits) / (internal->master_clk / 1000);
916 static void stb0899_dvbs2_set_carr_freq(struct stb0899_state *state, s32 carr_freq, u32 master_clk)
922 crl_nom_freq = (1 << config->crl_nco_bits) / master_clk;
963 (internal->master_clk) / 1000000);
965 stb0899_dvbs2_set_carr_freq(state, internal->center_freq, (internal->master_clk) / 1000000);
1135 if (((internal->master_clk / internal->srate) <= 4) && (modcod <= 11) && (pilots == 1)) {
1251 intval1 = internal->master_clk / (1 << div1);
1254 rem1 = internal->master_clk % (1 << div1);
1412 if ((((10 * internal->master_clk) / (internal->srate / 10)) <= 410) &&
1434 if ((((10 * internal->master_clk) / (internal->srate / 10)) <= 410) &&
1453 offsetfreq *= (internal->master_clk / 1000000);