• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/components/opensource/linux/linux-2.6.36/drivers/media/common/tuners/

Lines Matching defs:fe

262 static int load_all_firmwares(struct dvb_frontend *fe)
264 struct xc2028_data *priv = fe->tuner_priv;
412 static int seek_firmware(struct dvb_frontend *fe, unsigned int type,
415 struct xc2028_data *priv = fe->tuner_priv;
502 static inline int do_tuner_callback(struct dvb_frontend *fe, int cmd, int arg)
504 struct xc2028_data *priv = fe->tuner_priv;
509 * digital side will always have fe->dvb defined.
510 * analog side (tuner-core) doesn't (yet) define fe->dvb.
513 return (!fe->callback) ? -EINVAL :
514 fe->callback(((fe->dvb) && (fe->dvb->priv)) ?
515 fe->dvb->priv : priv->i2c_props.adap->algo_data,
519 static int load_firmware(struct dvb_frontend *fe, unsigned int type,
522 struct xc2028_data *priv = fe->tuner_priv;
528 pos = seek_firmware(fe, type, id);
557 rc = do_tuner_callback(fe, XC2028_TUNER_RESET, 0);
568 rc = do_tuner_callback(fe, XC2028_RESET_CLK, 0);
620 static int load_scode(struct dvb_frontend *fe, unsigned int type,
623 struct xc2028_data *priv = fe->tuner_priv;
630 pos = seek_firmware(fe, type, id);
682 static int check_firmware(struct dvb_frontend *fe, unsigned int type,
685 struct xc2028_data *priv = fe->tuner_priv;
699 rc = load_all_firmwares(fe);
740 rc = do_tuner_callback(fe, XC2028_TUNER_RESET, 0);
746 rc = load_firmware(fe, BASE | new_fw.type, &std0);
756 rc = load_firmware(fe, BASE | INIT1 | new_fw.type, &std0);
758 rc = load_firmware(fe, (BASE | INIT1 | new_fw.type) & ~F8MHZ,
780 rc = load_firmware(fe, new_fw.type, &new_fw.id);
782 rc = load_firmware(fe, new_fw.type & ~F8MHZ, &new_fw.id);
800 rc = load_scode(fe, new_fw.type | new_fw.scode_table, &new_fw.id,
869 static int xc2028_signal(struct dvb_frontend *fe, u16 *strength)
871 struct xc2028_data *priv = fe->tuner_priv;
908 static int generic_set_freq(struct dvb_frontend *fe, u32 freq /* in HZ */,
914 struct xc2028_data *priv = fe->tuner_priv;
925 if (check_firmware(fe, type, std, int_freq) < 0)
995 do_tuner_callback(fe, XC2028_RESET_CLK, 1);
1023 static int xc2028_set_analog_freq(struct dvb_frontend *fe,
1026 struct xc2028_data *priv = fe->tuner_priv;
1035 return generic_set_freq(fe, (625l * p->frequency) / 10,
1050 return generic_set_freq(fe, 62500l * p->frequency,
1054 static int xc2028_set_params(struct dvb_frontend *fe,
1057 struct xc2028_data *priv = fe->tuner_priv;
1064 switch(fe->ops.info.type) {
1115 if (fe->ops.info.type != FE_ATSC) {
1155 return generic_set_freq(fe, p->frequency,
1159 static int xc2028_sleep(struct dvb_frontend *fe)
1161 struct xc2028_data *priv = fe->tuner_priv;
1188 static int xc2028_dvb_release(struct dvb_frontend *fe)
1190 struct xc2028_data *priv = fe->tuner_priv;
1207 fe->tuner_priv = NULL;
1212 static int xc2028_get_frequency(struct dvb_frontend *fe, u32 *frequency)
1214 struct xc2028_data *priv = fe->tuner_priv;
1223 static int xc2028_set_config(struct dvb_frontend *fe, void *priv_cfg)
1225 struct xc2028_data *priv = fe->tuner_priv;
1270 struct dvb_frontend *xc2028_attach(struct dvb_frontend *fe,
1282 if (!fe) {
1304 fe->tuner_priv = priv;
1308 fe->tuner_priv = priv;
1312 memcpy(&fe->ops.tuner_ops, &xc2028_dvb_tuner_ops,
1318 xc2028_set_config(fe, cfg->ctrl);
1322 return fe;
1326 xc2028_dvb_release(fe);