• 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

59 static int stv6110_release(struct dvb_frontend *fe)
61 kfree(fe->tuner_priv);
62 fe->tuner_priv = NULL;
66 static int stv6110_write_regs(struct dvb_frontend *fe, u8 buf[],
69 struct stv6110_priv *priv = fe->tuner_priv;
87 if (fe->ops.i2c_gate_ctrl)
88 fe->ops.i2c_gate_ctrl(fe, 1);
94 if (fe->ops.i2c_gate_ctrl)
95 fe->ops.i2c_gate_ctrl(fe, 0);
100 static int stv6110_read_regs(struct dvb_frontend *fe, u8 regs[],
103 struct stv6110_priv *priv = fe->tuner_priv;
120 if (fe->ops.i2c_gate_ctrl)
121 fe->ops.i2c_gate_ctrl(fe, 1);
127 if (fe->ops.i2c_gate_ctrl)
128 fe->ops.i2c_gate_ctrl(fe, 0);
135 static int stv6110_read_reg(struct dvb_frontend *fe, int start)
138 stv6110_read_regs(fe, buf, start, 1);
143 static int stv6110_sleep(struct dvb_frontend *fe)
146 stv6110_write_regs(fe, reg, 0, 1);
170 static int stv6110_set_bandwidth(struct dvb_frontend *fe, u32 bandwidth)
172 struct stv6110_priv *priv = fe->tuner_priv;
187 stv6110_write_regs(fe, &priv->regs[RSTV6110_CTRL3], RSTV6110_CTRL3, 1);
190 stv6110_write_regs(fe, &priv->regs[RSTV6110_STAT1], RSTV6110_STAT1, 1);
195 ret = ((stv6110_read_reg(fe, RSTV6110_STAT1)) & 0x02);
202 stv6110_write_regs(fe, &priv->regs[RSTV6110_CTRL3], RSTV6110_CTRL3, 1);
206 static int stv6110_init(struct dvb_frontend *fe)
208 struct stv6110_priv *priv = fe->tuner_priv;
221 stv6110_write_regs(fe, &priv->regs[RSTV6110_CTRL1], RSTV6110_CTRL1, 8);
223 stv6110_set_bandwidth(fe, 72000000);
228 static int stv6110_get_frequency(struct dvb_frontend *fe, u32 *frequency)
230 struct stv6110_priv *priv = fe->tuner_priv;
234 stv6110_read_regs(fe, regs, 0, 8);
253 static int stv6110_set_frequency(struct dvb_frontend *fe, u32 frequency)
255 struct stv6110_priv *priv = fe->tuner_priv;
256 struct dtv_frontend_properties *c = &fe->dtv_property_cache;
271 if (fe->ops.set_property && fe->ops.get_property) {
329 stv6110_write_regs(fe, &priv->regs[RSTV6110_CTRL1],
335 ret = ((stv6110_read_reg(fe, RSTV6110_STAT1)) & 0x04);
340 ret = stv6110_read_reg(fe, RSTV6110_STAT1);
341 stv6110_get_frequency(fe, &result_freq);
350 static int stv6110_set_params(struct dvb_frontend *fe,
353 struct dtv_frontend_properties *c = &fe->dtv_property_cache;
356 stv6110_set_frequency(fe, c->frequency);
357 stv6110_set_bandwidth(fe, bandwidth);
362 static int stv6110_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth)
364 struct stv6110_priv *priv = fe->tuner_priv;
367 stv6110_read_regs(fe, regs, 0, 8);
394 struct dvb_frontend *stv6110_attach(struct dvb_frontend *fe,
415 if (fe->ops.i2c_gate_ctrl)
416 fe->ops.i2c_gate_ctrl(fe, 1);
420 if (fe->ops.i2c_gate_ctrl)
421 fe->ops.i2c_gate_ctrl(fe, 0);
438 memcpy(&fe->ops.tuner_ops, &stv6110_tuner_ops,
440 fe->tuner_priv = priv;
443 return fe;