• 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

104 	struct dvb_frontend *fe;
174 #define HARD_RESET(state) do { if (cfg->reset) { if (cfg->sleep) cfg->sleep(fe, 0); msleep(10); cfg->reset(fe, 1); msleep(10); cfg->reset(fe, 0); msleep(10); } } while (0)
186 static u16 dib0090_identify(struct dvb_frontend *fe)
188 struct dib0090_state *state = fe->tuner_priv;
196 dprintk("FE%d : Identification : pll is not yet locked", fe->id);
204 dprintk("FE%d : Product ID = 0x%x : KROSUS", fe->id, (v >> 8) & 0xf);
210 dprintk("FE%d : MP001 : 9090/8096", fe->id);
212 dprintk("FE%d : MP005 : Single Sband", fe->id);
214 dprintk("FE%d : MP008 : diversity VHF-UHF-LBAND", fe->id);
216 dprintk("FE%d : MP009 : diversity 29098 CBAND-UHF-LBAND-SBAND", fe->id);
222 dprintk("FE%d : P1-D/E/F detected", fe->id);
224 dprintk("FE%d : P1C detected", fe->id);
227 dprintk("FE%d : P1-A/B detected: using previous driver - support will be removed soon", fe->id);
228 dib0090_p1b_register(fe);
230 dprintk("FE%d : P1-A/B detected: driver is deactivated - not available", fe->id);
238 static void dib0090_reset_digital(struct dvb_frontend *fe, const struct dib0090_config *cfg)
240 struct dib0090_state *state = fe->tuner_priv;
271 static int dib0090_wakeup(struct dvb_frontend *fe)
273 struct dib0090_state *state = fe->tuner_priv;
275 state->config->sleep(fe, 0);
279 static int dib0090_sleep(struct dvb_frontend *fe)
281 struct dib0090_state *state = fe->tuner_priv;
283 state->config->sleep(fe, 1);
287 void dib0090_dcc_freq(struct dvb_frontend *fe, u8 fast)
289 struct dib0090_state *state = fe->tuner_priv;
586 void dib0090_pwm_gain_reset(struct dvb_frontend *fe)
588 struct dib0090_state *state = fe->tuner_priv;
625 int dib0090_gain_control(struct dvb_frontend *fe)
627 struct dib0090_state *state = fe->tuner_priv;
697 adc = state->config->get_adc_power(fe);
702 if (state->fe->dtv_property_cache.delivery_system == STANDARD_DAB)
706 if (state->fe->dtv_property_cache.delivery_system == STANDARD_DVBT &&
707 (state->fe->dtv_property_cache.modulation == QAM_64 || state->fe->dtv_property_cache.modulation == QAM_16))
711 if ((state->fe->dtv_property_cache.delivery_system == SYS_ISDBT) && (((state->fe->dtv_property_cache.layer[0].segment_count >
714 ((state->fe->dtv_property_cache.layer[0].modulation ==
716 || (state->fe->dtv_property_cache.layer[0].
719 ((state->fe->dtv_property_cache.layer[1].segment_count >
722 ((state->fe->dtv_property_cache.layer[1].modulation ==
724 || (state->fe->dtv_property_cache.layer[1].
727 ((state->fe->dtv_property_cache.layer[2].segment_count >
730 ((state->fe->dtv_property_cache.layer[2].modulation ==
732 || (state->fe->dtv_property_cache.layer[2].
743 if (state->fe->dtv_property_cache.delivery_system == STANDARD_DAB) {
764 (u32) fe->id, (u32) *tune_state, (u32) adc, (u32) adc_error, (u32) wbd, (u32) wbd_error, (u32) wbd_val,
776 void dib0090_get_current_gain(struct dvb_frontend *fe, u16 * rf, u16 * bb, u16 * rf_gain_limit, u16 * rflt)
778 struct dib0090_state *state = fe->tuner_priv;
847 static int dib0090_reset(struct dvb_frontend *fe)
849 struct dib0090_state *state = fe->tuner_priv;
852 dib0090_reset_digital(fe, state->config);
853 state->revision = dib0090_identify(fe);
1010 dprintk("FE%d: IQC read=%d, current=%x", state->fe->id, (u32) state->adc_diff, state->step);
1032 dprintk("FE%d: BB Offset Cal, BBreg=%hd,Offset=%hd,Value Set=%hd", state->fe->id, state->dc->addr, state->adc_diff,
1082 if (state->fe->dtv_property_cache.bandwidth_hz / 1000 <= 5000)
1084 else if (state->fe->dtv_property_cache.bandwidth_hz / 1000 <= 6000)
1086 else if (state->fe->dtv_property_cache.bandwidth_hz / 1000 <= 7000)
1184 static int dib0090_tune(struct dvb_frontend *fe)
1186 struct dib0090_state *state = fe->tuner_priv;
1199 state->current_band = (u8) BAND_OF_FREQUENCY(fe->dtv_property_cache.frequency / 1000);
1200 rf = fe->dtv_property_cache.frequency / 1000 + (state->current_band ==
1214 if (state->fe->dtv_property_cache.delivery_system == SYS_ISDBT && state->fe->dtv_property_cache.isdbt_sb_mode == 1)
1351 dprintk("FE %d CAPTRIM=%d; ADC = %d (ADC) & %dmV", (u32) fe->id, (u32) state->captrim, (u32) adc,
1363 dprintk("FE %d CAPTRIM=%d is closer to target (%d/%d)", (u32) fe->id, (u32) state->captrim, (u32) adc, (u32) state->adc_diff);
1388 dprintk("FE %d Final Captrim: %d", (u32) fe->id, (u32) state->fcaptrim);
1389 dprintk("FE %d HFDIV code: %d", (u32) fe->id, (u32) pll->hfdiv_code);
1390 dprintk("FE %d VCO = %d", (u32) fe->id, (u32) pll->vco_band);
1391 dprintk("FE %d VCOF in kHz: %d ((%d*%d) << 1))", (u32) fe->id, (u32) ((pll->hfdiv * rf) * 2), (u32) pll->hfdiv, (u32) rf);
1392 dprintk("FE %d REFDIV: %d, FREF: %d", (u32) fe->id, (u32) 1, (u32) state->config->io.clock_khz);
1393 dprintk("FE %d FBDIV: %d, Rest: %d", (u32) fe->id, (u32) dib0090_read_reg(state, 0x15), (u32) dib0090_read_reg(state, 0x17));
1394 dprintk("FE %d Num: %d, Den: %d, SD: %d", (u32) fe->id, (u32) dib0090_read_reg(state, 0x17),
1430 static int dib0090_release(struct dvb_frontend *fe)
1432 kfree(fe->tuner_priv);
1433 fe->tuner_priv = NULL;
1437 enum frontend_tune_state dib0090_get_tune_state(struct dvb_frontend *fe)
1439 struct dib0090_state *state = fe->tuner_priv;
1445 int dib0090_set_tune_state(struct dvb_frontend *fe, enum frontend_tune_state tune_state)
1447 struct dib0090_state *state = fe->tuner_priv;
1454 static int dib0090_get_frequency(struct dvb_frontend *fe, u32 * frequency)
1456 struct dib0090_state *state = fe->tuner_priv;
1462 static int dib0090_set_params(struct dvb_frontend *fe, struct dvb_frontend_parameters *p)
1464 struct dib0090_state *state = fe->tuner_priv;
1470 ret = dib0090_tune(fe);
1495 struct dvb_frontend *dib0090_register(struct dvb_frontend *fe, struct i2c_adapter *i2c, const struct dib0090_config *config)
1503 st->fe = fe;
1504 fe->tuner_priv = st;
1506 if (dib0090_reset(fe) != 0)
1510 memcpy(&fe->ops.tuner_ops, &dib0090_ops, sizeof(struct dvb_tuner_ops));
1512 return fe;
1515 fe->tuner_priv = NULL;