Lines Matching defs:fe
44 static int tda826x_release(struct dvb_frontend *fe)
46 kfree(fe->tuner_priv);
47 fe->tuner_priv = NULL;
51 static int tda826x_sleep(struct dvb_frontend *fe)
53 struct tda826x_priv *priv = fe->tuner_priv;
63 if (fe->ops.i2c_gate_ctrl)
64 fe->ops.i2c_gate_ctrl(fe, 1);
68 if (fe->ops.i2c_gate_ctrl)
69 fe->ops.i2c_gate_ctrl(fe, 0);
74 static int tda826x_set_params(struct dvb_frontend *fe, struct dvb_frontend_parameters *params)
76 struct tda826x_priv *priv = fe->tuner_priv;
111 if (fe->ops.i2c_gate_ctrl)
112 fe->ops.i2c_gate_ctrl(fe, 1);
116 if (fe->ops.i2c_gate_ctrl)
117 fe->ops.i2c_gate_ctrl(fe, 0);
124 static int tda826x_get_frequency(struct dvb_frontend *fe, u32 *frequency)
126 struct tda826x_priv *priv = fe->tuner_priv;
143 struct dvb_frontend *tda826x_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c, int has_loopthrough)
155 if (fe->ops.i2c_gate_ctrl)
156 fe->ops.i2c_gate_ctrl(fe, 1);
158 if (fe->ops.i2c_gate_ctrl)
159 fe->ops.i2c_gate_ctrl(fe, 0);
174 memcpy(&fe->ops.tuner_ops, &tda826x_tuner_ops, sizeof(struct dvb_tuner_ops));
176 fe->tuner_priv = priv;
178 return fe;