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()
226 static int fc0013_set_params(struct dvb_frontend *fe) in fc0013_set_params() argument
228 struct fc0013_priv *priv = fe->tuner_priv; in fc0013_set_params()
230 struct dtv_frontend_properties *p = &fe->dtv_property_cache; in fc0013_set_params()
238 if (fe->callback) { in fc0013_set_params()
239 ret = fe->callback(priv->i2c, DVB_FRONTEND_COMPONENT_TUNER, in fc0013_set_params()
258 if (fe->ops.i2c_gate_ctrl) in fc0013_set_params()
259 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in fc0013_set_params()
485 if (fe->ops.i2c_gate_ctrl) in fc0013_set_params()
486 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in fc0013_set_params()
492 static int fc0013_get_frequency(struct dvb_frontend *fe, u32 *frequency) in fc0013_get_frequency() argument
494 struct fc0013_priv *priv = fe->tuner_priv; in fc0013_get_frequency()
499 static int fc0013_get_if_frequency(struct dvb_frontend *fe, u32 *frequency) in fc0013_get_if_frequency() argument
506 static int fc0013_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) in fc0013_get_bandwidth() argument
508 struct fc0013_priv *priv = fe->tuner_priv; in fc0013_get_bandwidth()
515 static int fc0013_get_rf_strength(struct dvb_frontend *fe, u16 *strength) in fc0013_get_rf_strength() argument
517 struct fc0013_priv *priv = fe->tuner_priv; in fc0013_get_rf_strength()
533 if (fe->ops.i2c_gate_ctrl) in fc0013_get_rf_strength()
534 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in fc0013_get_rf_strength()
550 if (fe->ops.i2c_gate_ctrl) in fc0013_get_rf_strength()
551 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in fc0013_get_rf_strength()
574 if (fe->ops.i2c_gate_ctrl) in fc0013_get_rf_strength()
575 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in fc0013_get_rf_strength()
605 struct dvb_frontend *fc0013_attach(struct dvb_frontend *fe, in fc0013_attach() argument
622 fe->tuner_priv = priv; in fc0013_attach()
624 memcpy(&fe->ops.tuner_ops, &fc0013_tuner_ops, in fc0013_attach()
627 return fe; in fc0013_attach()