Lines Matching full:fe

11 static int tda18271_i2c_gate_ctrl(struct dvb_frontend *fe, int enable)  in tda18271_i2c_gate_ctrl()  argument
13 struct tda18271_priv *priv = fe->tuner_priv; in tda18271_i2c_gate_ctrl()
37 if (fe->ops.analog_ops.i2c_gate_ctrl) in tda18271_i2c_gate_ctrl()
38 ret = fe->ops.analog_ops.i2c_gate_ctrl(fe, enable); in tda18271_i2c_gate_ctrl()
41 if (fe->ops.i2c_gate_ctrl) in tda18271_i2c_gate_ctrl()
42 ret = fe->ops.i2c_gate_ctrl(fe, enable); in tda18271_i2c_gate_ctrl()
54 static void tda18271_dump_regs(struct dvb_frontend *fe, int extended) in tda18271_dump_regs() argument
56 struct tda18271_priv *priv = fe->tuner_priv; in tda18271_dump_regs()
109 int tda18271_read_regs(struct dvb_frontend *fe) in tda18271_read_regs() argument
111 struct tda18271_priv *priv = fe->tuner_priv; in tda18271_read_regs()
122 tda18271_i2c_gate_ctrl(fe, 1); in tda18271_read_regs()
127 tda18271_i2c_gate_ctrl(fe, 0); in tda18271_read_regs()
133 tda18271_dump_regs(fe, 0); in tda18271_read_regs()
138 int tda18271_read_extended(struct dvb_frontend *fe) in tda18271_read_extended() argument
140 struct tda18271_priv *priv = fe->tuner_priv; in tda18271_read_extended()
152 tda18271_i2c_gate_ctrl(fe, 1); in tda18271_read_extended()
157 tda18271_i2c_gate_ctrl(fe, 0); in tda18271_read_extended()
173 tda18271_dump_regs(fe, 1); in tda18271_read_extended()
178 static int __tda18271_write_regs(struct dvb_frontend *fe, int idx, int len, in __tda18271_write_regs() argument
181 struct tda18271_priv *priv = fe->tuner_priv; in __tda18271_write_regs()
215 tda18271_i2c_gate_ctrl(fe, 1); in __tda18271_write_regs()
238 tda18271_i2c_gate_ctrl(fe, 0); in __tda18271_write_regs()
248 int tda18271_write_regs(struct dvb_frontend *fe, int idx, int len) in tda18271_write_regs() argument
250 return __tda18271_write_regs(fe, idx, len, true); in tda18271_write_regs()
255 static int __tda18271_charge_pump_source(struct dvb_frontend *fe, in __tda18271_charge_pump_source() argument
259 struct tda18271_priv *priv = fe->tuner_priv; in __tda18271_charge_pump_source()
267 return __tda18271_write_regs(fe, r_cp, 1, lock_i2c); in __tda18271_charge_pump_source()
270 int tda18271_charge_pump_source(struct dvb_frontend *fe, in tda18271_charge_pump_source() argument
273 return __tda18271_charge_pump_source(fe, pll, force, true); in tda18271_charge_pump_source()
277 int tda18271_init_regs(struct dvb_frontend *fe) in tda18271_init_regs() argument
279 struct tda18271_priv *priv = fe->tuner_priv; in tda18271_init_regs()
290 tda18271_i2c_gate_ctrl(fe, 1); in tda18271_init_regs()
378 __tda18271_write_regs(fe, 0x00, TDA18271_NUM_REGS, false); in tda18271_init_regs()
382 __tda18271_write_regs(fe, R_EB17, 1, false); in tda18271_init_regs()
384 __tda18271_write_regs(fe, R_EB17, 1, false); in tda18271_init_regs()
386 __tda18271_write_regs(fe, R_EB17, 1, false); in tda18271_init_regs()
388 __tda18271_write_regs(fe, R_EB17, 1, false); in tda18271_init_regs()
393 __tda18271_write_regs(fe, R_EB20, 1, false); in tda18271_init_regs()
395 __tda18271_write_regs(fe, R_EB20, 1, false); in tda18271_init_regs()
397 __tda18271_write_regs(fe, R_EB20, 1, false); in tda18271_init_regs()
399 __tda18271_write_regs(fe, R_EB20, 1, false); in tda18271_init_regs()
417 __tda18271_write_regs(fe, R_EP3, 11, false); in tda18271_init_regs()
421 __tda18271_charge_pump_source(fe, TDA18271_MAIN_PLL, 1, false); in tda18271_init_regs()
425 __tda18271_charge_pump_source(fe, TDA18271_MAIN_PLL, 0, false); in tda18271_init_regs()
431 __tda18271_write_regs(fe, R_EP1, 1, false); in tda18271_init_regs()
439 __tda18271_write_regs(fe, R_EP3, 7, false); in tda18271_init_regs()
443 __tda18271_write_regs(fe, R_EP2, 1, false); in tda18271_init_regs()
454 __tda18271_write_regs(fe, R_EP3, 11, false); in tda18271_init_regs()
458 __tda18271_write_regs(fe, R_EP1, 1, false); in tda18271_init_regs()
466 __tda18271_write_regs(fe, R_EP3, 7, false); in tda18271_init_regs()
470 __tda18271_write_regs(fe, R_EP2, 1, false); in tda18271_init_regs()
482 __tda18271_write_regs(fe, R_EP3, 11, false); in tda18271_init_regs()
486 __tda18271_write_regs(fe, R_EP1, 1, false); in tda18271_init_regs()
493 __tda18271_write_regs(fe, R_EP3, 7, false); in tda18271_init_regs()
497 __tda18271_write_regs(fe, R_EP2, 1, false); in tda18271_init_regs()
502 __tda18271_write_regs(fe, R_EP4, 1, false); in tda18271_init_regs()
505 __tda18271_write_regs(fe, R_EP1, 1, false); in tda18271_init_regs()
508 tda18271_i2c_gate_ctrl(fe, 0); in tda18271_init_regs()
531 int tda18271_set_standby_mode(struct dvb_frontend *fe, in tda18271_set_standby_mode() argument
534 struct tda18271_priv *priv = fe->tuner_priv; in tda18271_set_standby_mode()
545 return tda18271_write_regs(fe, R_EP3, 1); in tda18271_set_standby_mode()
550 int tda18271_calc_main_pll(struct dvb_frontend *fe, u32 freq) in tda18271_calc_main_pll() argument
553 struct tda18271_priv *priv = fe->tuner_priv; in tda18271_calc_main_pll()
558 int ret = tda18271_lookup_pll_map(fe, MAIN_PLL, &freq, &pd, &d); in tda18271_calc_main_pll()
573 int tda18271_calc_cal_pll(struct dvb_frontend *fe, u32 freq) in tda18271_calc_cal_pll() argument
576 struct tda18271_priv *priv = fe->tuner_priv; in tda18271_calc_cal_pll()
581 int ret = tda18271_lookup_pll_map(fe, CAL_PLL, &freq, &pd, &d); in tda18271_calc_cal_pll()
598 int tda18271_calc_bp_filter(struct dvb_frontend *fe, u32 *freq) in tda18271_calc_bp_filter() argument
601 struct tda18271_priv *priv = fe->tuner_priv; in tda18271_calc_bp_filter()
605 int ret = tda18271_lookup_map(fe, BP_FILTER, freq, &val); in tda18271_calc_bp_filter()
615 int tda18271_calc_km(struct dvb_frontend *fe, u32 *freq) in tda18271_calc_km() argument
618 struct tda18271_priv *priv = fe->tuner_priv; in tda18271_calc_km()
622 int ret = tda18271_lookup_map(fe, RF_CAL_KMCO, freq, &val); in tda18271_calc_km()
632 int tda18271_calc_rf_band(struct dvb_frontend *fe, u32 *freq) in tda18271_calc_rf_band() argument
635 struct tda18271_priv *priv = fe->tuner_priv; in tda18271_calc_rf_band()
639 int ret = tda18271_lookup_map(fe, RF_BAND, freq, &val); in tda18271_calc_rf_band()
649 int tda18271_calc_gain_taper(struct dvb_frontend *fe, u32 *freq) in tda18271_calc_gain_taper() argument
652 struct tda18271_priv *priv = fe->tuner_priv; in tda18271_calc_gain_taper()
656 int ret = tda18271_lookup_map(fe, GAIN_TAPER, freq, &val); in tda18271_calc_gain_taper()
666 int tda18271_calc_ir_measure(struct dvb_frontend *fe, u32 *freq) in tda18271_calc_ir_measure() argument
669 struct tda18271_priv *priv = fe->tuner_priv; in tda18271_calc_ir_measure()
673 int ret = tda18271_lookup_map(fe, IR_MEASURE, freq, &val); in tda18271_calc_ir_measure()
683 int tda18271_calc_rf_cal(struct dvb_frontend *fe, u32 *freq) in tda18271_calc_rf_cal() argument
686 struct tda18271_priv *priv = fe->tuner_priv; in tda18271_calc_rf_cal()
690 int ret = tda18271_lookup_map(fe, RF_CAL, freq, &val); in tda18271_calc_rf_cal()