Lines Matching refs:fe
35 struct dvb_frontend *fe; member
37 int (*get_agc_pwm)(struct dvb_frontend *fe, u8 *_agc_pwm);
59 static int ts2020_release(struct dvb_frontend *fe) in ts2020_release() argument
61 struct ts2020_priv *priv = fe->tuner_priv; in ts2020_release()
70 static int ts2020_sleep(struct dvb_frontend *fe) in ts2020_sleep() argument
72 struct ts2020_priv *priv = fe->tuner_priv; in ts2020_sleep()
91 static int ts2020_init(struct dvb_frontend *fe) in ts2020_init() argument
93 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in ts2020_init()
94 struct ts2020_priv *priv = fe->tuner_priv; in ts2020_init()
165 static int ts2020_tuner_gate_ctrl(struct dvb_frontend *fe, u8 offset) in ts2020_tuner_gate_ctrl() argument
167 struct ts2020_priv *priv = fe->tuner_priv; in ts2020_tuner_gate_ctrl()
177 static int ts2020_set_tuner_rf(struct dvb_frontend *fe) in ts2020_set_tuner_rf() argument
179 struct ts2020_priv *dev = fe->tuner_priv; in ts2020_set_tuner_rf()
193 ret = ts2020_tuner_gate_ctrl(fe, 0x08); in ts2020_set_tuner_rf()
198 static int ts2020_set_params(struct dvb_frontend *fe) in ts2020_set_params() argument
200 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in ts2020_set_params()
201 struct ts2020_priv *priv = fe->tuner_priv; in ts2020_set_params()
255 ret |= ts2020_tuner_gate_ctrl(fe, 0x10); in ts2020_set_params()
259 ret |= ts2020_tuner_gate_ctrl(fe, 0x08); in ts2020_set_params()
263 ret |= ts2020_set_tuner_rf(fe); in ts2020_set_params()
267 ret |= ts2020_tuner_gate_ctrl(fe, 0x04); in ts2020_set_params()
315 ret |= ts2020_tuner_gate_ctrl(fe, 0x04); in ts2020_set_params()
317 ret |= ts2020_tuner_gate_ctrl(fe, 0x01); in ts2020_set_params()
324 static int ts2020_get_frequency(struct dvb_frontend *fe, u32 *frequency) in ts2020_get_frequency() argument
326 struct ts2020_priv *priv = fe->tuner_priv; in ts2020_get_frequency()
332 static int ts2020_get_if_frequency(struct dvb_frontend *fe, u32 *frequency) in ts2020_get_if_frequency() argument
346 static int ts2020_read_tuner_gain(struct dvb_frontend *fe, unsigned v_agc, in ts2020_read_tuner_gain() argument
349 struct ts2020_priv *priv = fe->tuner_priv; in ts2020_read_tuner_gain()
406 static int ts2020_get_tuner_gain(struct dvb_frontend *fe, __s64 *_gain) in ts2020_get_tuner_gain() argument
408 struct ts2020_priv *priv = fe->tuner_priv; in ts2020_get_tuner_gain()
414 ret = priv->get_agc_pwm(fe, &agc_pwm); in ts2020_get_tuner_gain()
431 return ts2020_read_tuner_gain(fe, v_agc, _gain); in ts2020_get_tuner_gain()
442 struct dtv_frontend_properties *c = &priv->fe->dtv_property_cache; in ts2020_stat_work()
447 ret = ts2020_get_tuner_gain(priv->fe, &c->strength.stat[0].svalue); in ts2020_stat_work()
463 static int ts2020_read_signal_strength(struct dvb_frontend *fe, in ts2020_read_signal_strength() argument
466 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in ts2020_read_signal_strength()
467 struct ts2020_priv *priv = fe->tuner_priv; in ts2020_read_signal_strength()
514 struct dvb_frontend *ts2020_attach(struct dvb_frontend *fe, in ts2020_attach() argument
525 pdata.fe = fe; in ts2020_attach()
536 return fe; in ts2020_attach()
550 if (dev->fe->ops.i2c_gate_ctrl) in ts2020_regmap_lock()
551 dev->fe->ops.i2c_gate_ctrl(dev->fe, 1); in ts2020_regmap_lock()
558 if (dev->fe->ops.i2c_gate_ctrl) in ts2020_regmap_unlock()
559 dev->fe->ops.i2c_gate_ctrl(dev->fe, 0); in ts2020_regmap_unlock()
567 struct dvb_frontend *fe = pdata->fe; in ts2020_probe() local
600 dev->fe = fe; in ts2020_probe()
602 fe->tuner_priv = dev; in ts2020_probe()
693 memcpy(&fe->ops.tuner_ops, &ts2020_tuner_ops, in ts2020_probe()
696 fe->ops.tuner_ops.release = NULL; in ts2020_probe()