Lines Matching refs:fe
132 static int zl10039_init(struct dvb_frontend *fe)
134 struct zl10039_state *state = fe->tuner_priv;
138 if (fe->ops.i2c_gate_ctrl)
139 fe->ops.i2c_gate_ctrl(fe, 1);
151 if (fe->ops.i2c_gate_ctrl)
152 fe->ops.i2c_gate_ctrl(fe, 0);
157 static int zl10039_sleep(struct dvb_frontend *fe)
159 struct zl10039_state *state = fe->tuner_priv;
163 if (fe->ops.i2c_gate_ctrl)
164 fe->ops.i2c_gate_ctrl(fe, 1);
170 if (fe->ops.i2c_gate_ctrl)
171 fe->ops.i2c_gate_ctrl(fe, 0);
176 static int zl10039_set_params(struct dvb_frontend *fe)
178 struct dtv_frontend_properties *c = &fe->dtv_property_cache;
179 struct zl10039_state *state = fe->tuner_priv;
211 if (fe->ops.i2c_gate_ctrl)
212 fe->ops.i2c_gate_ctrl(fe, 1);
227 if (fe->ops.i2c_gate_ctrl)
228 fe->ops.i2c_gate_ctrl(fe, 0);
235 static void zl10039_release(struct dvb_frontend *fe)
237 struct zl10039_state *state = fe->tuner_priv;
241 fe->tuner_priv = NULL;
251 struct dvb_frontend *zl10039_attach(struct dvb_frontend *fe,
265 if (fe->ops.i2c_gate_ctrl)
266 fe->ops.i2c_gate_ctrl(fe, 1);
270 if (fe->ops.i2c_gate_ctrl)
271 fe->ops.i2c_gate_ctrl(fe, 0);
275 if (fe->ops.i2c_gate_ctrl)
276 fe->ops.i2c_gate_ctrl(fe, 0);
281 strscpy(fe->ops.tuner_ops.info.name,
283 sizeof(fe->ops.tuner_ops.info.name));
290 memcpy(&fe->ops.tuner_ops, &zl10039_ops, sizeof(struct dvb_tuner_ops));
291 fe->tuner_priv = state;
293 return fe;