Lines Matching refs:fe

56 	struct dvb_frontend *fe;  member
146 state->cfg->sleep(state->fe, 0); \
148 state->cfg->reset(state->fe,1); msleep(10); \
149 state->cfg->reset(state->fe,0); msleep(10); \
153 static int dib0070_set_bandwidth(struct dvb_frontend *fe) in dib0070_set_bandwidth() argument
155 struct dib0070_state *state = fe->tuner_priv; in dib0070_set_bandwidth()
158 if (state->fe->dtv_property_cache.bandwidth_hz/1000 > 7000) in dib0070_set_bandwidth()
160 else if (state->fe->dtv_property_cache.bandwidth_hz/1000 > 6000) in dib0070_set_bandwidth()
162 else if (state->fe->dtv_property_cache.bandwidth_hz/1000 > 5000) in dib0070_set_bandwidth()
170 if (state->fe->dtv_property_cache.delivery_system == SYS_ISDBT) { in dib0070_set_bandwidth()
243 static int dib0070_set_ctrl_lo5(struct dvb_frontend *fe, u8 vco_bias_trim, u8 hf_div_trim, u8 cp_cu… in dib0070_set_ctrl_lo5() argument
245 struct dib0070_state *state = fe->tuner_priv; in dib0070_set_ctrl_lo5()
251 void dib0070_ctrl_agc_filter(struct dvb_frontend *fe, u8 open) in dib0070_ctrl_agc_filter() argument
253 struct dib0070_state *state = fe->tuner_priv; in dib0070_ctrl_agc_filter()
338 static int dib0070_tune_digital(struct dvb_frontend *fe) in dib0070_tune_digital() argument
340 struct dib0070_state *state = fe->tuner_priv; in dib0070_tune_digital()
348 u8 band = (u8)BAND_OF_FREQUENCY(fe->dtv_property_cache.frequency/1000); in dib0070_tune_digital()
349 …u32 freq = fe->dtv_property_cache.frequency/1000 + (band == BAND_VHF ? state->cfg->freq_offset_khz… in dib0070_tune_digital()
352 …if (state->fe->dtv_property_cache.delivery_system == SYS_ISDBT && state->fe->dtv_property_cache.is… in dib0070_tune_digital()
353 if (((state->fe->dtv_property_cache.isdbt_sb_segment_count % 2) in dib0070_tune_digital()
354 …&& (state->fe->dtv_property_cache.isdbt_sb_segment_idx == ((state->fe->dtv_property_cache.isdbt_sb… in dib0070_tune_digital()
355 || (((state->fe->dtv_property_cache.isdbt_sb_segment_count % 2) == 0) in dib0070_tune_digital()
356 …&& (state->fe->dtv_property_cache.isdbt_sb_segment_idx == (state->fe->dtv_property_cache.isdbt_sb_… in dib0070_tune_digital()
357 || (((state->fe->dtv_property_cache.isdbt_sb_segment_count % 2) == 0) in dib0070_tune_digital()
358 …&& (state->fe->dtv_property_cache.isdbt_sb_segment_idx == ((state->fe->dtv_property_cache.isdbt_sb… in dib0070_tune_digital()
455 dib0070_set_ctrl_lo5(fe, 2, 4, 3, 0); in dib0070_tune_digital()
458 dib0070_set_ctrl_lo5(fe, 5, 4, 3, 1); in dib0070_tune_digital()
510 dib0070_set_bandwidth(fe); in dib0070_tune_digital()
519 static int dib0070_tune(struct dvb_frontend *fe) in dib0070_tune() argument
521 struct dib0070_state *state = fe->tuner_priv; in dib0070_tune()
527 ret = dib0070_tune_digital(fe); in dib0070_tune()
537 static int dib0070_wakeup(struct dvb_frontend *fe) in dib0070_wakeup() argument
539 struct dib0070_state *state = fe->tuner_priv; in dib0070_wakeup()
541 state->cfg->sleep(fe, 0); in dib0070_wakeup()
545 static int dib0070_sleep(struct dvb_frontend *fe) in dib0070_sleep() argument
547 struct dib0070_state *state = fe->tuner_priv; in dib0070_sleep()
549 state->cfg->sleep(fe, 1); in dib0070_sleep()
553 u8 dib0070_get_rf_output(struct dvb_frontend *fe) in dib0070_get_rf_output() argument
555 struct dib0070_state *state = fe->tuner_priv; in dib0070_get_rf_output()
560 int dib0070_set_rf_output(struct dvb_frontend *fe, u8 no) in dib0070_set_rf_output() argument
562 struct dib0070_state *state = fe->tuner_priv; in dib0070_set_rf_output()
634 u16 dib0070_wbd_offset(struct dvb_frontend *fe) in dib0070_wbd_offset() argument
636 struct dib0070_state *state = fe->tuner_priv; in dib0070_wbd_offset()
638 u32 freq = fe->dtv_property_cache.frequency/1000; in dib0070_wbd_offset()
652 static int dib0070_reset(struct dvb_frontend *fe) in dib0070_reset() argument
654 struct dib0070_state *state = fe->tuner_priv; in dib0070_reset()
707 dib0070_set_ctrl_lo5(fe, 2, 4, 3, 0); in dib0070_reset()
709 dib0070_set_ctrl_lo5(fe, 5, 4, state->cfg->charge_pump, state->cfg->enable_third_order_filter); in dib0070_reset()
718 static int dib0070_get_frequency(struct dvb_frontend *fe, u32 *frequency) in dib0070_get_frequency() argument
720 struct dib0070_state *state = fe->tuner_priv; in dib0070_get_frequency()
726 static int dib0070_release(struct dvb_frontend *fe) in dib0070_release() argument
728 kfree(fe->tuner_priv); in dib0070_release()
729 fe->tuner_priv = NULL; in dib0070_release()
750 struct dvb_frontend *dib0070_attach(struct dvb_frontend *fe, struct i2c_adapter *i2c, struct dib007… in dib0070_attach() argument
758 state->fe = fe; in dib0070_attach()
760 fe->tuner_priv = state; in dib0070_attach()
762 if (dib0070_reset(fe) != 0) in dib0070_attach()
766 memcpy(&fe->ops.tuner_ops, &dib0070_ops, sizeof(struct dvb_tuner_ops)); in dib0070_attach()
768 fe->tuner_priv = state; in dib0070_attach()
769 return fe; in dib0070_attach()
773 fe->tuner_priv = NULL; in dib0070_attach()