Lines Matching refs:fe
118 struct dvb_frontend fe; member
168 static void tuner_detach(struct dvb_frontend *fe) in tuner_detach() argument
170 if (fe->ops.tuner_ops.release) { in tuner_detach()
171 fe->ops.tuner_ops.release(fe); in tuner_detach()
172 symbol_put_addr(fe->ops.tuner_ops.release); in tuner_detach()
174 if (fe->ops.analog_ops.release) { in tuner_detach()
175 fe->ops.analog_ops.release(fe); in tuner_detach()
176 symbol_put_addr(fe->ops.analog_ops.release); in tuner_detach()
184 static void tuner_detach(struct dvb_frontend *fe) in tuner_detach() argument
186 if (fe->ops.tuner_ops.release) in tuner_detach()
187 fe->ops.tuner_ops.release(fe); in tuner_detach()
188 if (fe->ops.analog_ops.release) in tuner_detach()
189 fe->ops.analog_ops.release(fe); in tuner_detach()
203 static void fe_set_params(struct dvb_frontend *fe, in fe_set_params() argument
206 struct dvb_tuner_ops *fe_tuner_ops = &fe->ops.tuner_ops; in fe_set_params()
207 struct tuner *t = fe->analog_demod_priv; in fe_set_params()
213 fe_tuner_ops->set_analog_params(fe, params); in fe_set_params()
216 static void fe_standby(struct dvb_frontend *fe) in fe_standby() argument
218 struct dvb_tuner_ops *fe_tuner_ops = &fe->ops.tuner_ops; in fe_standby()
221 fe_tuner_ops->sleep(fe); in fe_standby()
224 static int fe_set_config(struct dvb_frontend *fe, void *priv_cfg) in fe_set_config() argument
226 struct dvb_tuner_ops *fe_tuner_ops = &fe->ops.tuner_ops; in fe_set_config()
227 struct tuner *t = fe->analog_demod_priv; in fe_set_config()
230 return fe_tuner_ops->set_config(fe, priv_cfg); in fe_set_config()
237 static void tuner_status(struct dvb_frontend *fe);
269 struct dvb_tuner_ops *fe_tuner_ops = &t->fe.ops.tuner_ops; in set_type()
270 struct analog_demod_ops *analog_ops = &t->fe.ops.analog_ops; in set_type()
283 t->fe.callback = tuner_callback; in set_type()
287 tuner_detach(&t->fe); in set_type()
288 t->fe.analog_demod_priv = NULL; in set_type()
293 &t->fe, t->i2c->adapter, t->i2c->addr)) in set_type()
298 if (!dvb_attach(tda829x_attach, &t->fe, t->i2c->adapter, in set_type()
304 if (!dvb_attach(tea5767_attach, &t->fe, in set_type()
310 if (!dvb_attach(tea5761_attach, &t->fe, in set_type()
326 if (!dvb_attach(simple_tuner_attach, &t->fe, in set_type()
336 if (!dvb_attach(simple_tuner_attach, &t->fe, in set_type()
346 if (!dvb_attach(xc2028_attach, &t->fe, &cfg)) in set_type()
353 &t->fe, t->i2c->adapter, t->i2c->addr)) in set_type()
365 &t->fe, t->i2c->adapter, &xc5000_cfg)) in set_type()
380 &t->fe, t->i2c->adapter, &xc5000c_cfg)) in set_type()
391 if (!dvb_attach(tda18271_attach, &t->fe, t->i2c->addr, in set_type()
409 &t->fe, t->i2c->adapter, &xc4000_cfg)) in set_type()
415 if (!dvb_attach(simple_tuner_attach, &t->fe, in set_type()
427 t->fe.analog_demod_priv = t; in set_type()
526 struct analog_demod_ops *analog_ops = &t->fe.ops.analog_ops; in tuner_s_config()
532 analog_ops->set_config(&t->fe, cfg->priv); in tuner_s_config()
714 set_type(client, t->type, t->mode_mask, t->config, t->fe.callback); in tuner_probe()
735 tuner_detach(&t->fe); in tuner_remove()
736 t->fe.analog_demod_priv = NULL; in tuner_remove()
790 struct analog_demod_ops *analog_ops = &t->fe.ops.analog_ops; in set_mode()
798 analog_ops->standby(&t->fe); in set_mode()
840 struct analog_demod_ops *analog_ops = &t->fe.ops.analog_ops; in set_tv_freq()
873 analog_ops->set_params(&t->fe, ¶ms); in set_tv_freq()
981 struct analog_demod_ops *analog_ops = &t->fe.ops.analog_ops; in set_radio_freq()
1014 analog_ops->set_params(&t->fe, ¶ms); in set_radio_freq()
1033 static void tuner_status(struct dvb_frontend *fe) in tuner_status() argument
1035 struct tuner *t = fe->analog_demod_priv; in tuner_status()
1037 struct dvb_tuner_ops *fe_tuner_ops = &fe->ops.tuner_ops; in tuner_status()
1038 struct analog_demod_ops *analog_ops = &fe->ops.analog_ops; in tuner_status()
1069 fe_tuner_ops->get_status(&t->fe, &tuner_status); in tuner_status()
1078 if (!analog_ops->has_signal(fe, &signal)) in tuner_status()
1108 struct analog_demod_ops *analog_ops = &t->fe.ops.analog_ops; in tuner_s_power()
1121 analog_ops->standby(&t->fe); in tuner_s_power()
1161 struct dvb_tuner_ops *fe_tuner_ops = &t->fe.ops.tuner_ops; in tuner_g_frequency()
1168 fe_tuner_ops->get_frequency(&t->fe, &abs_freq); in tuner_g_frequency()
1192 struct analog_demod_ops *analog_ops = &t->fe.ops.analog_ops; in tuner_g_tuner()
1193 struct dvb_tuner_ops *fe_tuner_ops = &t->fe.ops.tuner_ops; in tuner_g_tuner()
1198 analog_ops->get_afc(&t->fe, &vt->afc); in tuner_g_tuner()
1202 if (!analog_ops->has_signal(&t->fe, &signal)) in tuner_g_tuner()
1218 fe_tuner_ops->get_status(&t->fe, &tuner_status); in tuner_g_tuner()
1269 struct analog_demod_ops *analog_ops = &t->fe.ops.analog_ops; in tuner_log_status()
1272 analog_ops->tuner_status(&t->fe); in tuner_log_status()
1281 struct analog_demod_ops *analog_ops = &t->fe.ops.analog_ops; in tuner_suspend()
1285 if (t->fe.ops.tuner_ops.suspend) in tuner_suspend()
1286 t->fe.ops.tuner_ops.suspend(&t->fe); in tuner_suspend()
1288 analog_ops->standby(&t->fe); in tuner_suspend()
1300 if (t->fe.ops.tuner_ops.resume) in tuner_resume()
1301 t->fe.ops.tuner_ops.resume(&t->fe); in tuner_resume()