Lines Matching refs:adc

2023 static int dib8096p_get_best_sampling(struct dvb_frontend *fe, struct dibx090p_best_adc *adc)  in dib8096p_get_best_sampling()  argument
2034 adc->timf = 0; in dib8096p_get_best_sampling()
2035 adc->pll_loopdiv = loopdiv; in dib8096p_get_best_sampling()
2036 adc->pll_prediv = prediv; in dib8096p_get_best_sampling()
2075 adc->pll_loopdiv = loopdiv; in dib8096p_get_best_sampling()
2076 adc->pll_prediv = prediv; in dib8096p_get_best_sampling()
2077 adc->timf = (4260880253U / fdem) * (1 << 8); in dib8096p_get_best_sampling()
2078 adc->timf += ((4260880253U % fdem) << 8) / fdem; in dib8096p_get_best_sampling()
2080 ….frequency, fe->dtv_property_cache.bandwidth_hz, xtal, fmem, fdem, fs, prediv, loopdiv, adc->timf); in dib8096p_get_best_sampling()
2090 if (adc->pll_loopdiv == 0 && adc->pll_prediv == 0) in dib8096p_get_best_sampling()
2100 struct dibx090p_best_adc adc; in dib8096p_agc_startup() local
2115 if (dib8096p_get_best_sampling(fe, &adc) == 0) { in dib8096p_agc_startup()
2116 pll.pll_ratio = adc.pll_loopdiv; in dib8096p_agc_startup()
2117 pll.pll_prediv = adc.pll_prediv; in dib8096p_agc_startup()
2121 state->dib8000_ops.ctrl_timf(fe, DEMOD_TIMF_SET, adc.timf); in dib8096p_agc_startup()
2528 static int dib7090p_get_best_sampling(struct dvb_frontend *fe , struct dibx090p_best_adc *adc) in dib7090p_get_best_sampling() argument
2540 adc->pll_loopdiv = loopdiv; in dib7090p_get_best_sampling()
2541 adc->pll_prediv = prediv; in dib7090p_get_best_sampling()
2542 adc->timf = 0; in dib7090p_get_best_sampling()
2580 adc->pll_loopdiv = loopdiv; in dib7090p_get_best_sampling()
2581 adc->pll_prediv = prediv; in dib7090p_get_best_sampling()
2582 adc->timf = 2396745143UL/fdem*(1 << 9); in dib7090p_get_best_sampling()
2583 adc->timf += ((2396745143UL%fdem) << 9)/fdem; in dib7090p_get_best_sampling()
2584 deb_info("loopdiv=%i prediv=%i timf=%i", loopdiv, prediv, adc->timf); in dib7090p_get_best_sampling()
2595 if (adc->pll_loopdiv == 0 && adc->pll_prediv == 0) in dib7090p_get_best_sampling()
2607 struct dibx090p_best_adc adc; in dib7090_agc_startup() local
2619 if (dib7090p_get_best_sampling(fe, &adc) == 0) { in dib7090_agc_startup()
2620 pll.pll_ratio = adc.pll_loopdiv; in dib7090_agc_startup()
2621 pll.pll_prediv = adc.pll_prediv; in dib7090_agc_startup()
2624 state->dib7000p_ops.ctrl_timf(fe, DEMOD_TIMF_SET, adc.timf); in dib7090_agc_startup()