Lines Matching refs:fe

41 static void fc0013_release(struct dvb_frontend *fe)  in fc0013_release()  argument
43 kfree(fe->tuner_priv); in fc0013_release()
44 fe->tuner_priv = NULL; in fc0013_release()
47 static int fc0013_init(struct dvb_frontend *fe) in fc0013_init() argument
49 struct fc0013_priv *priv = fe->tuner_priv; in fc0013_init()
91 if (fe->ops.i2c_gate_ctrl) in fc0013_init()
92 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in fc0013_init()
100 if (fe->ops.i2c_gate_ctrl) in fc0013_init()
101 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in fc0013_init()
109 static int fc0013_sleep(struct dvb_frontend *fe) in fc0013_sleep() argument
115 int fc0013_rc_cal_add(struct dvb_frontend *fe, int rc_val) in fc0013_rc_cal_add() argument
117 struct fc0013_priv *priv = fe->tuner_priv; in fc0013_rc_cal_add()
122 if (fe->ops.i2c_gate_ctrl) in fc0013_rc_cal_add()
123 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in fc0013_rc_cal_add()
153 if (fe->ops.i2c_gate_ctrl) in fc0013_rc_cal_add()
154 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in fc0013_rc_cal_add()
160 int fc0013_rc_cal_reset(struct dvb_frontend *fe) in fc0013_rc_cal_reset() argument
162 struct fc0013_priv *priv = fe->tuner_priv; in fc0013_rc_cal_reset()
165 if (fe->ops.i2c_gate_ctrl) in fc0013_rc_cal_reset()
166 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in fc0013_rc_cal_reset()
172 if (fe->ops.i2c_gate_ctrl) in fc0013_rc_cal_reset()
173 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in fc0013_rc_cal_reset()
209 static int fc0013_set_params(struct dvb_frontend *fe) in fc0013_set_params() argument
211 struct fc0013_priv *priv = fe->tuner_priv; in fc0013_set_params()
213 struct dtv_frontend_properties *p = &fe->dtv_property_cache; in fc0013_set_params()
221 if (fe->callback) { in fc0013_set_params()
222 ret = fe->callback(priv->i2c, DVB_FRONTEND_COMPONENT_TUNER, in fc0013_set_params()
241 if (fe->ops.i2c_gate_ctrl) in fc0013_set_params()
242 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in fc0013_set_params()
468 if (fe->ops.i2c_gate_ctrl) in fc0013_set_params()
469 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in fc0013_set_params()
475 static int fc0013_get_frequency(struct dvb_frontend *fe, u32 *frequency) in fc0013_get_frequency() argument
477 struct fc0013_priv *priv = fe->tuner_priv; in fc0013_get_frequency()
482 static int fc0013_get_if_frequency(struct dvb_frontend *fe, u32 *frequency) in fc0013_get_if_frequency() argument
489 static int fc0013_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) in fc0013_get_bandwidth() argument
491 struct fc0013_priv *priv = fe->tuner_priv; in fc0013_get_bandwidth()
498 static int fc0013_get_rf_strength(struct dvb_frontend *fe, u16 *strength) in fc0013_get_rf_strength() argument
500 struct fc0013_priv *priv = fe->tuner_priv; in fc0013_get_rf_strength()
516 if (fe->ops.i2c_gate_ctrl) in fc0013_get_rf_strength()
517 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in fc0013_get_rf_strength()
533 if (fe->ops.i2c_gate_ctrl) in fc0013_get_rf_strength()
534 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in fc0013_get_rf_strength()
557 if (fe->ops.i2c_gate_ctrl) in fc0013_get_rf_strength()
558 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in fc0013_get_rf_strength()
587 struct dvb_frontend *fc0013_attach(struct dvb_frontend *fe, in fc0013_attach() argument
604 fe->tuner_priv = priv; in fc0013_attach()
606 memcpy(&fe->ops.tuner_ops, &fc0013_tuner_ops, in fc0013_attach()
609 return fe; in fc0013_attach()