Lines Matching refs:demod
41 struct dvb_frontend demod;
181 dprintk("setting output mode for demod %p to %d\n", &state->demod, mode);
211 dprintk("Unhandled output_mode passed to be set for demod %p\n", &state->demod);
226 static int dib7000p_set_diversity_in(struct dvb_frontend *demod, int onoff)
228 struct dib7000p_state *state = demod->demodulator_priv;
258 /* power up everything in the demod */
415 static int dib7000p_set_wbd_ref(struct dvb_frontend *demod, u16 value)
417 struct dib7000p_state *state = demod->demodulator_priv;
556 static int dib7000p_set_gpio(struct dvb_frontend *demod, u8 num, u8 dir, u8 val)
558 struct dib7000p_state *state = demod->demodulator_priv;
742 if (state->cfg.update_lna(&state->demod, dyn_gain)) {
830 if (abs_offset_khz <= (internal / 2)) { /* Max dds offset is the half of the demod freq */
837 static int dib7000p_agc_startup(struct dvb_frontend *demod)
839 struct dtv_frontend_properties *ch = &demod->dtv_property_cache;
840 struct dib7000p_state *state = demod->demodulator_priv;
867 if (demod->ops.tuner_ops.get_frequency) {
870 demod->ops.tuner_ops.get_frequency(demod, &frequency_tuner);
883 state->cfg.agc_control(&state->demod, 1);
918 dprintk("SPLIT %p: %u\n", demod, agc_split);
935 state->cfg.agc_control(&state->demod, 0);
1103 dib7000p_set_diversity_in(&state->demod, state->div_state);
1130 static int dib7000p_autosearch_start(struct dvb_frontend *demod)
1132 struct dtv_frontend_properties *ch = &demod->dtv_property_cache;
1133 struct dib7000p_state *state = demod->demodulator_priv;
1175 static int dib7000p_autosearch_is_irq(struct dvb_frontend *demod)
1177 struct dib7000p_state *state = demod->demodulator_priv;
1277 static int dib7000p_tune(struct dvb_frontend *demod)
1279 struct dtv_frontend_properties *ch = &demod->dtv_property_cache;
1280 struct dib7000p_state *state = demod->demodulator_priv;
1288 // restart demod
1380 dib7000p_reset_stats(demod);
1385 static int dib7000p_wakeup(struct dvb_frontend *demod)
1387 struct dib7000p_state *state = demod->demodulator_priv;
1395 static int dib7000p_sleep(struct dvb_frontend *demod)
1397 struct dib7000p_state *state = demod->demodulator_priv;
1406 dprintk("checking demod on I2C address: %d (%x)\n", st->i2c_addr, st->i2c_addr);
1664 static void dib7000p_reset_stats(struct dvb_frontend *demod)
1666 struct dib7000p_state *state = demod->demodulator_priv;
1667 struct dtv_frontend_properties *c = &demod->dtv_property_cache;
1692 dib7000p_read_unc_blocks(demod, &ucb);
1796 static u32 dib7000p_get_time_us(struct dvb_frontend *demod)
1798 struct dtv_frontend_properties *c = &demod->dtv_property_cache;
1896 static int dib7000p_get_stats(struct dvb_frontend *demod, enum fe_status stat)
1898 struct dib7000p_state *state = demod->demodulator_priv;
1899 struct dtv_frontend_properties *c = &demod->dtv_property_cache;
1907 dib7000p_read_signal_strength(demod, &strength);
1934 snr = dib7000p_get_snr(demod);
1943 dib7000p_read_unc_blocks(demod, &val);
1953 time_us = dib7000p_get_time_us(demod);
1967 time_us = dib7000p_get_time_us(demod);
1972 dib7000p_read_ber(demod, &val);
1982 dib7000p_read_unc_blocks(demod, &val);
1987 time_us = dib7000p_get_time_us(demod);
2004 static void dib7000p_release(struct dvb_frontend *demod)
2006 struct dib7000p_state *st = demod->demodulator_priv;
2061 static struct i2c_adapter *dib7000p_get_i2c_master(struct dvb_frontend *demod, enum dibx000_i2c_interface intf, int gating)
2063 struct dib7000p_state *st = demod->demodulator_priv;
2609 dib7000p_set_diversity_in(&state->demod, onoff);
2739 struct dvb_frontend *demod;
2757 demod = &st->demod;
2758 demod->demodulator_priv = st;
2759 memcpy(&st->demod.ops, &dib7000p_ops, sizeof(struct dvb_frontend_ops));
2787 dib7000p_reset_stats(demod);
2790 dib7090_set_output_mode(demod, st->cfg.output_mode);
2791 dib7090_set_diversity_in(demod, 0);
2794 return demod;