Lines Matching refs:fe
31 static void tda826x_release(struct dvb_frontend *fe)
33 kfree(fe->tuner_priv);
34 fe->tuner_priv = NULL;
37 static int tda826x_sleep(struct dvb_frontend *fe)
39 struct tda826x_priv *priv = fe->tuner_priv;
49 if (fe->ops.i2c_gate_ctrl)
50 fe->ops.i2c_gate_ctrl(fe, 1);
54 if (fe->ops.i2c_gate_ctrl)
55 fe->ops.i2c_gate_ctrl(fe, 0);
60 static int tda826x_set_params(struct dvb_frontend *fe)
62 struct dtv_frontend_properties *p = &fe->dtv_property_cache;
63 struct tda826x_priv *priv = fe->tuner_priv;
98 if (fe->ops.i2c_gate_ctrl)
99 fe->ops.i2c_gate_ctrl(fe, 1);
103 if (fe->ops.i2c_gate_ctrl)
104 fe->ops.i2c_gate_ctrl(fe, 0);
111 static int tda826x_get_frequency(struct dvb_frontend *fe, u32 *frequency)
113 struct tda826x_priv *priv = fe->tuner_priv;
130 struct dvb_frontend *tda826x_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c, int has_loopthrough)
142 if (fe->ops.i2c_gate_ctrl)
143 fe->ops.i2c_gate_ctrl(fe, 1);
145 if (fe->ops.i2c_gate_ctrl)
146 fe->ops.i2c_gate_ctrl(fe, 0);
161 memcpy(&fe->ops.tuner_ops, &tda826x_tuner_ops, sizeof(struct dvb_tuner_ops));
163 fe->tuner_priv = priv;
165 return fe;