• 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/dvb/frontends/

Lines Matching defs:fe

377 static int s5h1411_softreset(struct dvb_frontend *fe)
379 struct s5h1411_state *state = fe->demodulator_priv;
388 static int s5h1411_set_if_freq(struct dvb_frontend *fe, int KHz)
390 struct s5h1411_state *state = fe->demodulator_priv;
427 static int s5h1411_set_mpeg_timing(struct dvb_frontend *fe, int mode)
429 struct s5h1411_state *state = fe->demodulator_priv;
457 static int s5h1411_set_spectralinversion(struct dvb_frontend *fe, int inversion)
459 struct s5h1411_state *state = fe->demodulator_priv;
472 static int s5h1411_set_serialmode(struct dvb_frontend *fe, int serial)
474 struct s5h1411_state *state = fe->demodulator_priv;
486 static int s5h1411_enable_modulation(struct dvb_frontend *fe,
489 struct s5h1411_state *state = fe->demodulator_priv;
502 s5h1411_set_if_freq(fe, state->config->vsb_if);
511 s5h1411_set_if_freq(fe, state->config->qam_if);
524 s5h1411_softreset(fe);
529 static int s5h1411_i2c_gate_ctrl(struct dvb_frontend *fe, int enable)
531 struct s5h1411_state *state = fe->demodulator_priv;
541 static int s5h1411_set_gpio(struct dvb_frontend *fe, int enable)
543 struct s5h1411_state *state = fe->demodulator_priv;
557 static int s5h1411_set_powerstate(struct dvb_frontend *fe, int enable)
559 struct s5h1411_state *state = fe->demodulator_priv;
567 s5h1411_softreset(fe);
573 static int s5h1411_sleep(struct dvb_frontend *fe)
575 return s5h1411_set_powerstate(fe, 1);
578 static int s5h1411_register_reset(struct dvb_frontend *fe)
580 struct s5h1411_state *state = fe->demodulator_priv;
588 static int s5h1411_set_frontend(struct dvb_frontend *fe,
591 struct s5h1411_state *state = fe->demodulator_priv;
595 s5h1411_softreset(fe);
599 s5h1411_enable_modulation(fe, p->u.vsb.modulation);
601 if (fe->ops.tuner_ops.set_params) {
602 if (fe->ops.i2c_gate_ctrl)
603 fe->ops.i2c_gate_ctrl(fe, 1);
605 fe->ops.tuner_ops.set_params(fe, p);
607 if (fe->ops.i2c_gate_ctrl)
608 fe->ops.i2c_gate_ctrl(fe, 0);
613 s5h1411_softreset(fe);
620 static int s5h1411_init(struct dvb_frontend *fe)
622 struct s5h1411_state *state = fe->demodulator_priv;
627 s5h1411_set_powerstate(fe, 0);
628 s5h1411_register_reset(fe);
645 s5h1411_set_serialmode(fe, 1);
648 s5h1411_set_serialmode(fe, 0);
650 s5h1411_set_spectralinversion(fe, state->config->inversion);
651 s5h1411_set_if_freq(fe, state->config->vsb_if);
652 s5h1411_set_gpio(fe, state->config->gpio);
653 s5h1411_set_mpeg_timing(fe, state->config->mpeg_timing);
654 s5h1411_softreset(fe);
657 s5h1411_i2c_gate_ctrl(fe, 0);
662 static int s5h1411_read_status(struct dvb_frontend *fe, fe_status_t *status)
664 struct s5h1411_state *state = fe->demodulator_priv;
705 if (fe->ops.tuner_ops.get_status) {
706 if (fe->ops.i2c_gate_ctrl)
707 fe->ops.i2c_gate_ctrl(fe, 1);
709 fe->ops.tuner_ops.get_status(fe, &tuner_status);
711 if (fe->ops.i2c_gate_ctrl)
712 fe->ops.i2c_gate_ctrl(fe, 0);
724 static int s5h1411_qam256_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v)
739 static int s5h1411_qam64_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v)
754 static int s5h1411_vsb_lookup_snr(struct dvb_frontend *fe, u16 *snr, u16 v)
770 static int s5h1411_read_snr(struct dvb_frontend *fe, u16 *snr)
772 struct s5h1411_state *state = fe->demodulator_priv;
779 return s5h1411_qam64_lookup_snr(fe, snr, reg);
782 return s5h1411_qam256_lookup_snr(fe, snr, reg);
786 return s5h1411_vsb_lookup_snr(fe, snr, reg);
794 static int s5h1411_read_signal_strength(struct dvb_frontend *fe,
797 return s5h1411_read_snr(fe, signal_strength);
800 static int s5h1411_read_ucblocks(struct dvb_frontend *fe, u32 *ucblocks)
802 struct s5h1411_state *state = fe->demodulator_priv;
809 static int s5h1411_read_ber(struct dvb_frontend *fe, u32 *ber)
811 return s5h1411_read_ucblocks(fe, ber);
814 static int s5h1411_get_frontend(struct dvb_frontend *fe,
817 struct s5h1411_state *state = fe->demodulator_priv;
825 static int s5h1411_get_tune_settings(struct dvb_frontend *fe,
832 static void s5h1411_release(struct dvb_frontend *fe)
834 struct s5h1411_state *state = fe->demodulator_priv;