Lines Matching refs:fe
124 static int tda18218_set_params(struct dvb_frontend *fe) in tda18218_set_params() argument
126 struct tda18218_priv *priv = fe->tuner_priv; in tda18218_set_params()
127 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in tda18218_set_params()
150 if (fe->ops.i2c_gate_ctrl) in tda18218_set_params()
151 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in tda18218_set_params()
210 if (fe->ops.i2c_gate_ctrl) in tda18218_set_params()
211 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in tda18218_set_params()
219 static int tda18218_get_if_frequency(struct dvb_frontend *fe, u32 *frequency) in tda18218_get_if_frequency() argument
221 struct tda18218_priv *priv = fe->tuner_priv; in tda18218_get_if_frequency()
227 static int tda18218_sleep(struct dvb_frontend *fe) in tda18218_sleep() argument
229 struct tda18218_priv *priv = fe->tuner_priv; in tda18218_sleep()
232 if (fe->ops.i2c_gate_ctrl) in tda18218_sleep()
233 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in tda18218_sleep()
238 if (fe->ops.i2c_gate_ctrl) in tda18218_sleep()
239 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in tda18218_sleep()
247 static int tda18218_init(struct dvb_frontend *fe) in tda18218_init() argument
249 struct tda18218_priv *priv = fe->tuner_priv; in tda18218_init()
254 if (fe->ops.i2c_gate_ctrl) in tda18218_init()
255 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in tda18218_init()
259 if (fe->ops.i2c_gate_ctrl) in tda18218_init()
260 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in tda18218_init()
268 static int tda18218_release(struct dvb_frontend *fe) in tda18218_release() argument
270 kfree(fe->tuner_priv); in tda18218_release()
271 fe->tuner_priv = NULL; in tda18218_release()
293 struct dvb_frontend *tda18218_attach(struct dvb_frontend *fe, in tda18218_attach() argument
315 fe->tuner_priv = priv; in tda18218_attach()
317 if (fe->ops.i2c_gate_ctrl) in tda18218_attach()
318 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in tda18218_attach()
333 memcpy(&fe->ops.tuner_ops, &tda18218_tuner_ops, in tda18218_attach()
348 if (fe->ops.i2c_gate_ctrl) in tda18218_attach()
349 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in tda18218_attach()
351 return fe; in tda18218_attach()