Lines Matching refs:fe

45 static void fc0012_release(struct dvb_frontend *fe)  in fc0012_release()  argument
47 kfree(fe->tuner_priv); in fc0012_release()
48 fe->tuner_priv = NULL; in fc0012_release()
51 static int fc0012_init(struct dvb_frontend *fe) in fc0012_init() argument
53 struct fc0012_priv *priv = fe->tuner_priv; in fc0012_init()
99 if (fe->ops.i2c_gate_ctrl) in fc0012_init()
100 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in fc0012_init()
108 if (fe->ops.i2c_gate_ctrl) in fc0012_init()
109 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in fc0012_init()
118 static int fc0012_set_params(struct dvb_frontend *fe) in fc0012_set_params() argument
120 struct fc0012_priv *priv = fe->tuner_priv; in fc0012_set_params()
122 struct dtv_frontend_properties *p = &fe->dtv_property_cache; in fc0012_set_params()
130 if (fe->callback) { in fc0012_set_params()
131 ret = fe->callback(priv->i2c, DVB_FRONTEND_COMPONENT_TUNER, in fc0012_set_params()
257 if (fe->ops.i2c_gate_ctrl) in fc0012_set_params()
258 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in fc0012_set_params()
309 if (fe->ops.i2c_gate_ctrl) in fc0012_set_params()
310 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in fc0012_set_params()
317 static int fc0012_get_frequency(struct dvb_frontend *fe, u32 *frequency) in fc0012_get_frequency() argument
319 struct fc0012_priv *priv = fe->tuner_priv; in fc0012_get_frequency()
324 static int fc0012_get_if_frequency(struct dvb_frontend *fe, u32 *frequency) in fc0012_get_if_frequency() argument
330 static int fc0012_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) in fc0012_get_bandwidth() argument
332 struct fc0012_priv *priv = fe->tuner_priv; in fc0012_get_bandwidth()
339 static int fc0012_get_rf_strength(struct dvb_frontend *fe, u16 *strength) in fc0012_get_rf_strength() argument
341 struct fc0012_priv *priv = fe->tuner_priv; in fc0012_get_rf_strength()
357 if (fe->ops.i2c_gate_ctrl) in fc0012_get_rf_strength()
358 fe->ops.i2c_gate_ctrl(fe, 1); /* open I2C-gate */ in fc0012_get_rf_strength()
374 if (fe->ops.i2c_gate_ctrl) in fc0012_get_rf_strength()
375 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in fc0012_get_rf_strength()
398 if (fe->ops.i2c_gate_ctrl) in fc0012_get_rf_strength()
399 fe->ops.i2c_gate_ctrl(fe, 0); /* close I2C-gate */ in fc0012_get_rf_strength()
428 struct dvb_frontend *fc0012_attach(struct dvb_frontend *fe, in fc0012_attach() argument
435 if (fe->ops.i2c_gate_ctrl) in fc0012_attach()
436 fe->ops.i2c_gate_ctrl(fe, 1); in fc0012_attach()
482 fe->tuner_priv = priv; in fc0012_attach()
483 memcpy(&fe->ops.tuner_ops, &fc0012_tuner_ops, in fc0012_attach()
487 if (fe->ops.i2c_gate_ctrl) in fc0012_attach()
488 fe->ops.i2c_gate_ctrl(fe, 0); in fc0012_attach()
496 return fe; in fc0012_attach()