Lines Matching refs:fe

156 static int mt2060_set_params(struct dvb_frontend *fe)  in mt2060_set_params()  argument
158 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in mt2060_set_params()
168 priv = fe->tuner_priv; in mt2060_set_params()
174 if (fe->ops.i2c_gate_ctrl) in mt2060_set_params()
175 fe->ops.i2c_gate_ctrl(fe, 1); /* open i2c_gate */ in mt2060_set_params()
239 if (fe->ops.i2c_gate_ctrl) in mt2060_set_params()
240 fe->ops.i2c_gate_ctrl(fe, 0); /* close i2c_gate */ in mt2060_set_params()
288 static int mt2060_get_frequency(struct dvb_frontend *fe, u32 *frequency) in mt2060_get_frequency() argument
290 struct mt2060_priv *priv = fe->tuner_priv; in mt2060_get_frequency()
295 static int mt2060_get_if_frequency(struct dvb_frontend *fe, u32 *frequency) in mt2060_get_if_frequency() argument
301 static int mt2060_init(struct dvb_frontend *fe) in mt2060_init() argument
303 struct mt2060_priv *priv = fe->tuner_priv; in mt2060_init()
306 if (fe->ops.i2c_gate_ctrl) in mt2060_init()
307 fe->ops.i2c_gate_ctrl(fe, 1); /* open i2c_gate */ in mt2060_init()
312 if (fe->ops.i2c_gate_ctrl) in mt2060_init()
313 fe->ops.i2c_gate_ctrl(fe, 0); /* close i2c_gate */ in mt2060_init()
318 static int mt2060_sleep(struct dvb_frontend *fe) in mt2060_sleep() argument
320 struct mt2060_priv *priv = fe->tuner_priv; in mt2060_sleep()
323 if (fe->ops.i2c_gate_ctrl) in mt2060_sleep()
324 fe->ops.i2c_gate_ctrl(fe, 1); /* open i2c_gate */ in mt2060_sleep()
329 if (fe->ops.i2c_gate_ctrl) in mt2060_sleep()
330 fe->ops.i2c_gate_ctrl(fe, 0); /* close i2c_gate */ in mt2060_sleep()
335 static int mt2060_release(struct dvb_frontend *fe) in mt2060_release() argument
337 kfree(fe->tuner_priv); in mt2060_release()
338 fe->tuner_priv = NULL; in mt2060_release()
361 struct dvb_frontend * mt2060_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct mt2060… in mt2060_attach() argument
374 if (fe->ops.i2c_gate_ctrl) in mt2060_attach()
375 fe->ops.i2c_gate_ctrl(fe, 1); /* open i2c_gate */ in mt2060_attach()
387 memcpy(&fe->ops.tuner_ops, &mt2060_tuner_ops, sizeof(struct dvb_tuner_ops)); in mt2060_attach()
389 fe->tuner_priv = priv; in mt2060_attach()
393 if (fe->ops.i2c_gate_ctrl) in mt2060_attach()
394 fe->ops.i2c_gate_ctrl(fe, 0); /* close i2c_gate */ in mt2060_attach()
396 return fe; in mt2060_attach()