Lines Matching refs:fe
55 static int fc0013_release(struct dvb_frontend *fe) in fc0013_release() argument
57 kfree(fe->tuner_priv); in fc0013_release()
58 fe->tuner_priv = NULL; in fc0013_release()
62 static int fc0013_init(struct dvb_frontend *fe) in fc0013_init() argument
64 struct fc0013_priv *priv = fe->tuner_priv; in fc0013_init()
106 if (fe->ops.i2c_gate_ctrl) in fc0013_init()
107 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in fc0013_init()
115 if (fe->ops.i2c_gate_ctrl) in fc0013_init()
116 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in fc0013_init()
124 static int fc0013_sleep(struct dvb_frontend *fe) in fc0013_sleep() argument
130 int fc0013_rc_cal_add(struct dvb_frontend *fe, int rc_val) in fc0013_rc_cal_add() argument
132 struct fc0013_priv *priv = fe->tuner_priv; in fc0013_rc_cal_add()
137 if (fe->ops.i2c_gate_ctrl) in fc0013_rc_cal_add()
138 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in fc0013_rc_cal_add()
168 if (fe->ops.i2c_gate_ctrl) in fc0013_rc_cal_add()
169 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in fc0013_rc_cal_add()
175 int fc0013_rc_cal_reset(struct dvb_frontend *fe) in fc0013_rc_cal_reset() argument
177 struct fc0013_priv *priv = fe->tuner_priv; in fc0013_rc_cal_reset()
180 if (fe->ops.i2c_gate_ctrl) in fc0013_rc_cal_reset()
181 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in fc0013_rc_cal_reset()
187 if (fe->ops.i2c_gate_ctrl) in fc0013_rc_cal_reset()
188 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in fc0013_rc_cal_reset()
224 static int fc0013_set_params(struct dvb_frontend *fe) in fc0013_set_params() argument
226 struct fc0013_priv *priv = fe->tuner_priv; in fc0013_set_params()
228 struct dtv_frontend_properties *p = &fe->dtv_property_cache; in fc0013_set_params()
236 if (fe->callback) { in fc0013_set_params()
237 ret = fe->callback(priv->i2c, DVB_FRONTEND_COMPONENT_TUNER, in fc0013_set_params()
256 if (fe->ops.i2c_gate_ctrl) in fc0013_set_params()
257 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in fc0013_set_params()
483 if (fe->ops.i2c_gate_ctrl) in fc0013_set_params()
484 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in fc0013_set_params()
490 static int fc0013_get_frequency(struct dvb_frontend *fe, u32 *frequency) in fc0013_get_frequency() argument
492 struct fc0013_priv *priv = fe->tuner_priv; in fc0013_get_frequency()
497 static int fc0013_get_if_frequency(struct dvb_frontend *fe, u32 *frequency) in fc0013_get_if_frequency() argument
504 static int fc0013_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) in fc0013_get_bandwidth() argument
506 struct fc0013_priv *priv = fe->tuner_priv; in fc0013_get_bandwidth()
513 static int fc0013_get_rf_strength(struct dvb_frontend *fe, u16 *strength) in fc0013_get_rf_strength() argument
515 struct fc0013_priv *priv = fe->tuner_priv; in fc0013_get_rf_strength()
531 if (fe->ops.i2c_gate_ctrl) in fc0013_get_rf_strength()
532 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in fc0013_get_rf_strength()
548 if (fe->ops.i2c_gate_ctrl) in fc0013_get_rf_strength()
549 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in fc0013_get_rf_strength()
572 if (fe->ops.i2c_gate_ctrl) in fc0013_get_rf_strength()
573 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in fc0013_get_rf_strength()
603 struct dvb_frontend *fc0013_attach(struct dvb_frontend *fe, in fc0013_attach() argument
620 fe->tuner_priv = priv; in fc0013_attach()
622 memcpy(&fe->ops.tuner_ops, &fc0013_tuner_ops, in fc0013_attach()
625 return fe; in fc0013_attach()