• Home
  • Raw
  • Download

Lines Matching refs:fe

124 static int tuner_read_status(struct dvb_frontend *fe)  in tuner_read_status()  argument
126 struct tuner_simple_priv *priv = fe->tuner_priv; in tuner_read_status()
167 static int simple_get_status(struct dvb_frontend *fe, u32 *status) in simple_get_status() argument
169 struct tuner_simple_priv *priv = fe->tuner_priv; in simple_get_status()
175 tuner_status = tuner_read_status(fe); in simple_get_status()
189 static int simple_get_rf_strength(struct dvb_frontend *fe, u16 *strength) in simple_get_rf_strength() argument
191 struct tuner_simple_priv *priv = fe->tuner_priv; in simple_get_rf_strength()
197 signal = tuner_signal(tuner_read_status(fe)); in simple_get_rf_strength()
235 static struct tuner_params *simple_tuner_params(struct dvb_frontend *fe, in simple_tuner_params() argument
238 struct tuner_simple_priv *priv = fe->tuner_priv; in simple_tuner_params()
259 static int simple_config_lookup(struct dvb_frontend *fe, in simple_config_lookup() argument
263 struct tuner_simple_priv *priv = fe->tuner_priv; in simple_config_lookup()
288 static void simple_set_rf_input(struct dvb_frontend *fe, in simple_set_rf_input() argument
291 struct tuner_simple_priv *priv = fe->tuner_priv; in simple_set_rf_input()
319 static int simple_std_setup(struct dvb_frontend *fe, in simple_std_setup() argument
323 struct tuner_simple_priv *priv = fe->tuner_priv; in simple_std_setup()
417 simple_set_rf_input(fe, config, cb, atv_input[priv->nr]); in simple_std_setup()
422 static int simple_set_aux_byte(struct dvb_frontend *fe, u8 config, u8 aux) in simple_set_aux_byte() argument
424 struct tuner_simple_priv *priv = fe->tuner_priv; in simple_set_aux_byte()
440 static int simple_post_tune(struct dvb_frontend *fe, u8 *buffer, in simple_post_tune() argument
443 struct tuner_simple_priv *priv = fe->tuner_priv; in simple_post_tune()
448 simple_set_aux_byte(fe, config, 0x20); in simple_post_tune()
451 simple_set_aux_byte(fe, config, 0x60); /* External AGC */ in simple_post_tune()
495 static int simple_radio_bandswitch(struct dvb_frontend *fe, u8 *buffer) in simple_radio_bandswitch() argument
497 struct tuner_simple_priv *priv = fe->tuner_priv; in simple_radio_bandswitch()
543 static int simple_set_tv_freq(struct dvb_frontend *fe, in simple_set_tv_freq() argument
546 struct tuner_simple_priv *priv = fe->tuner_priv; in simple_set_tv_freq()
581 t_params = simple_tuner_params(fe, desired_type); in simple_set_tv_freq()
583 i = simple_config_lookup(fe, t_params, &params->frequency, in simple_set_tv_freq()
594 simple_std_setup(fe, params, &config, &cb); in simple_set_tv_freq()
659 simple_post_tune(fe, &buffer[0], div, config, cb); in simple_set_tv_freq()
664 static int simple_set_radio_freq(struct dvb_frontend *fe, in simple_set_radio_freq() argument
668 struct tuner_simple_priv *priv = fe->tuner_priv; in simple_set_radio_freq()
705 if (simple_radio_bandswitch(fe, &buffer[0])) in simple_set_radio_freq()
769 static int simple_set_params(struct dvb_frontend *fe, in simple_set_params() argument
772 struct tuner_simple_priv *priv = fe->tuner_priv; in simple_set_params()
781 ret = simple_set_radio_freq(fe, params); in simple_set_params()
787 ret = simple_set_tv_freq(fe, params); in simple_set_params()
796 static void simple_set_dvb(struct dvb_frontend *fe, u8 *buf, in simple_set_dvb() argument
801 struct tuner_simple_priv *priv = fe->tuner_priv; in simple_set_dvb()
836 simple_set_rf_input(fe, &buf[2], &buf[3], new_rf); in simple_set_dvb()
844 static u32 simple_dvb_configure(struct dvb_frontend *fe, u8 *buf, in simple_dvb_configure() argument
850 struct tuner_simple_priv *priv = fe->tuner_priv; in simple_dvb_configure()
866 t_params = simple_tuner_params(fe, TUNER_PARAM_TYPE_DIGITAL); in simple_dvb_configure()
867 ret = simple_config_lookup(fe, t_params, &frequency, &config, &cb); in simple_dvb_configure()
879 simple_set_dvb(fe, buf, delsys, freq, bw); in simple_dvb_configure()
888 static int simple_dvb_calc_regs(struct dvb_frontend *fe, in simple_dvb_calc_regs() argument
891 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in simple_dvb_calc_regs()
894 struct tuner_simple_priv *priv = fe->tuner_priv; in simple_dvb_calc_regs()
900 frequency = simple_dvb_configure(fe, buf+1, delsys, c->frequency, bw); in simple_dvb_calc_regs()
912 static int simple_dvb_set_params(struct dvb_frontend *fe) in simple_dvb_set_params() argument
914 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in simple_dvb_set_params()
918 struct tuner_simple_priv *priv = fe->tuner_priv; in simple_dvb_set_params()
930 frequency = simple_dvb_configure(fe, buf+1, delsys, freq, bw); in simple_dvb_set_params()
940 if (fe->ops.analog_ops.standby) in simple_dvb_set_params()
941 fe->ops.analog_ops.standby(fe); in simple_dvb_set_params()
943 if (fe->ops.i2c_gate_ctrl) in simple_dvb_set_params()
944 fe->ops.i2c_gate_ctrl(fe, 1); in simple_dvb_set_params()
961 static int simple_init(struct dvb_frontend *fe) in simple_init() argument
963 struct tuner_simple_priv *priv = fe->tuner_priv; in simple_init()
971 if (fe->ops.i2c_gate_ctrl) in simple_init()
972 fe->ops.i2c_gate_ctrl(fe, 1); in simple_init()
984 static int simple_sleep(struct dvb_frontend *fe) in simple_sleep() argument
986 struct tuner_simple_priv *priv = fe->tuner_priv; in simple_sleep()
994 if (fe->ops.i2c_gate_ctrl) in simple_sleep()
995 fe->ops.i2c_gate_ctrl(fe, 1); in simple_sleep()
1007 static void simple_release(struct dvb_frontend *fe) in simple_release() argument
1009 struct tuner_simple_priv *priv = fe->tuner_priv; in simple_release()
1018 fe->tuner_priv = NULL; in simple_release()
1021 static int simple_get_frequency(struct dvb_frontend *fe, u32 *frequency) in simple_get_frequency() argument
1023 struct tuner_simple_priv *priv = fe->tuner_priv; in simple_get_frequency()
1028 static int simple_get_bandwidth(struct dvb_frontend *fe, u32 *bandwidth) in simple_get_bandwidth() argument
1030 struct tuner_simple_priv *priv = fe->tuner_priv; in simple_get_bandwidth()
1048 struct dvb_frontend *simple_tuner_attach(struct dvb_frontend *fe, in simple_tuner_attach() argument
1073 if (fe->ops.i2c_gate_ctrl) in simple_tuner_attach()
1074 fe->ops.i2c_gate_ctrl(fe, 1); in simple_tuner_attach()
1081 if (fe->ops.i2c_gate_ctrl) in simple_tuner_attach()
1082 fe->ops.i2c_gate_ctrl(fe, 0); in simple_tuner_attach()
1096 fe->tuner_priv = priv; in simple_tuner_attach()
1103 fe->tuner_priv = priv; in simple_tuner_attach()
1109 memcpy(&fe->ops.tuner_ops, &simple_tuner_ops, in simple_tuner_attach()
1135 strscpy(fe->ops.tuner_ops.info.name, priv->tun->name, in simple_tuner_attach()
1136 sizeof(fe->ops.tuner_ops.info.name)); in simple_tuner_attach()
1138 return fe; in simple_tuner_attach()