Lines Matching refs:fe
33 static void tua6100_release(struct dvb_frontend *fe) in tua6100_release() argument
35 kfree(fe->tuner_priv); in tua6100_release()
36 fe->tuner_priv = NULL; in tua6100_release()
39 static int tua6100_sleep(struct dvb_frontend *fe) in tua6100_sleep() argument
41 struct tua6100_priv *priv = fe->tuner_priv; in tua6100_sleep()
46 if (fe->ops.i2c_gate_ctrl) in tua6100_sleep()
47 fe->ops.i2c_gate_ctrl(fe, 1); in tua6100_sleep()
51 if (fe->ops.i2c_gate_ctrl) in tua6100_sleep()
52 fe->ops.i2c_gate_ctrl(fe, 0); in tua6100_sleep()
57 static int tua6100_set_params(struct dvb_frontend *fe) in tua6100_set_params() argument
59 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in tua6100_set_params()
60 struct tua6100_priv *priv = fe->tuner_priv; in tua6100_set_params()
119 if (fe->ops.i2c_gate_ctrl) in tua6100_set_params()
120 fe->ops.i2c_gate_ctrl(fe, 1); in tua6100_set_params()
124 if (fe->ops.i2c_gate_ctrl) in tua6100_set_params()
125 fe->ops.i2c_gate_ctrl(fe, 1); in tua6100_set_params()
129 if (fe->ops.i2c_gate_ctrl) in tua6100_set_params()
130 fe->ops.i2c_gate_ctrl(fe, 1); in tua6100_set_params()
134 if (fe->ops.i2c_gate_ctrl) in tua6100_set_params()
135 fe->ops.i2c_gate_ctrl(fe, 0); in tua6100_set_params()
140 static int tua6100_get_frequency(struct dvb_frontend *fe, u32 *frequency) in tua6100_get_frequency() argument
142 struct tua6100_priv *priv = fe->tuner_priv; in tua6100_get_frequency()
160 struct dvb_frontend *tua6100_attach(struct dvb_frontend *fe, int addr, struct i2c_adapter *i2c) in tua6100_attach() argument
169 if (fe->ops.i2c_gate_ctrl) in tua6100_attach()
170 fe->ops.i2c_gate_ctrl(fe, 1); in tua6100_attach()
172 if (fe->ops.i2c_gate_ctrl) in tua6100_attach()
173 fe->ops.i2c_gate_ctrl(fe, 0); in tua6100_attach()
185 memcpy(&fe->ops.tuner_ops, &tua6100_tuner_ops, sizeof(struct dvb_tuner_ops)); in tua6100_attach()
186 fe->tuner_priv = priv; in tua6100_attach()
187 return fe; in tua6100_attach()