Lines Matching refs:master_clk

41 static u32 stb0899_calc_srate(u32 master_clk, u8 *sfr)
50 tmp *= master_clk;
67 return stb0899_calc_srate(internal->master_clk, sfr);
78 static u32 stb0899_set_srate(struct stb0899_state *state, u32 master_clk, u32 srate) in stb0899_set_srate() argument
101 tmp = stb0899_do_div((((u64)srate) << 21) + master_clk, 2 * master_clk); in stb0899_set_srate()
525 stb0899_set_srate(state, internal->master_clk, params->srate); in stb0899_dvbs_algo()
805 u32 master_clk, srate; in stb0899_dvbs2_calc_srate() local
807 dec_ratio = (internal->master_clk * 2) / (5 * internal->srate); in stb0899_dvbs2_calc_srate()
811 master_clk = internal->master_clk / 1000; in stb0899_dvbs2_calc_srate()
815 intval = (decim * (1 << (config->btr_nco_bits - 1))) / master_clk; in stb0899_dvbs2_calc_srate()
816 remain = (decim * (1 << (config->btr_nco_bits - 1))) % master_clk; in stb0899_dvbs2_calc_srate()
818 intval = (1 << (config->btr_nco_bits - 1)) / (master_clk / 100) * decim / 100; in stb0899_dvbs2_calc_srate()
819 remain = (decim * (1 << (config->btr_nco_bits - 1))) % master_clk; in stb0899_dvbs2_calc_srate()
821 btr_nom_freq = (intval * srate) + ((remain * srate) / master_clk); in stb0899_dvbs2_calc_srate()
833 u32 dec_ratio, correction, master_clk, srate; in stb0899_dvbs2_calc_dev() local
835 dec_ratio = (internal->master_clk * 2) / (5 * internal->srate); in stb0899_dvbs2_calc_dev()
838 master_clk = internal->master_clk / 1000; /* for integer Caculation*/ in stb0899_dvbs2_calc_dev()
840 correction = (512 * master_clk) / (2 * dec_ratio * srate); in stb0899_dvbs2_calc_dev()
858 dec_ratio = (internal->master_clk * 2) / (5 * internal->srate); in stb0899_dvbs2_set_srate()
868 f_sym = internal->master_clk / ((decim * internal->srate) / 1000); in stb0899_dvbs2_set_srate()
895 freq_adj = internal->srate / (internal->master_clk / 4096); in stb0899_dvbs2_set_srate()
914 dec_ratio = (internal->master_clk * 2) / (5 * internal->srate); in stb0899_dvbs2_set_btr_loopbw()
920 K = (1 << config->btr_nco_bits) / (internal->master_clk / 1000); in stb0899_dvbs2_set_btr_loopbw()
962 static void stb0899_dvbs2_set_carr_freq(struct stb0899_state *state, s32 carr_freq, u32 master_clk) in stb0899_dvbs2_set_carr_freq() argument
968 crl_nom_freq = (1 << config->crl_nco_bits) / master_clk; in stb0899_dvbs2_set_carr_freq()
1009 (internal->master_clk) / 1000000); in stb0899_dvbs2_init_calc()
1011 stb0899_dvbs2_set_carr_freq(state, internal->center_freq, (internal->master_clk) / 1000000); in stb0899_dvbs2_init_calc()
1181 if (((internal->master_clk / internal->srate) <= 4) && (modcod <= 11) && (pilots == 1)) { in stb0899_dvbs2_init_csm()
1297 intval1 = internal->master_clk / (1 << div1); in stb0899_dvbs2_get_srate()
1300 rem1 = internal->master_clk % (1 << div1); in stb0899_dvbs2_get_srate()
1453 if ((((10 * internal->master_clk) / (internal->srate / 10)) <= 410) && in stb0899_dvbs2_algo()
1475 if ((((10 * internal->master_clk) / (internal->srate / 10)) <= 410) && in stb0899_dvbs2_algo()
1496 offsetfreq *= (internal->master_clk / 1000000); in stb0899_dvbs2_algo()