Lines Matching refs:fe

42 	struct dvb_frontend fe;  member
107 static int tc90522s_set_tsid(struct dvb_frontend *fe) in tc90522s_set_tsid() argument
114 set_tsid[0].val = (fe->dtv_property_cache.stream_id & 0xff00) >> 8; in tc90522s_set_tsid()
115 set_tsid[1].val = fe->dtv_property_cache.stream_id & 0xff; in tc90522s_set_tsid()
116 return reg_write(fe->demodulator_priv, set_tsid, ARRAY_SIZE(set_tsid)); in tc90522s_set_tsid()
119 static int tc90522t_set_layers(struct dvb_frontend *fe) in tc90522t_set_layers() argument
124 laysel = ~fe->dtv_property_cache.isdbt_layer_enabled & 0x07; in tc90522t_set_layers()
128 return reg_write(fe->demodulator_priv, &rv, 1); in tc90522t_set_layers()
133 static int tc90522s_read_status(struct dvb_frontend *fe, enum fe_status *status) in tc90522s_read_status() argument
139 state = fe->demodulator_priv; in tc90522s_read_status()
161 static int tc90522t_read_status(struct dvb_frontend *fe, enum fe_status *status) in tc90522t_read_status() argument
167 state = fe->demodulator_priv; in tc90522t_read_status()
204 static int tc90522s_get_frontend(struct dvb_frontend *fe) in tc90522s_get_frontend() argument
214 state = fe->demodulator_priv; in tc90522s_get_frontend()
215 c = &fe->dtv_property_cache; in tc90522s_get_frontend()
254 if (fe->ops.tuner_ops.get_rf_strength) { in tc90522s_get_frontend()
257 fe->ops.tuner_ops.get_rf_strength(fe, &dummy); in tc90522s_get_frontend()
340 static int tc90522t_get_frontend(struct dvb_frontend *fe) in tc90522t_get_frontend() argument
350 state = fe->demodulator_priv; in tc90522t_get_frontend()
351 c = &fe->dtv_property_cache; in tc90522t_get_frontend()
413 if (fe->ops.tuner_ops.get_rf_strength) { in tc90522t_get_frontend()
416 fe->ops.tuner_ops.get_rf_strength(fe, &dummy); in tc90522t_get_frontend()
488 static int tc90522_set_frontend(struct dvb_frontend *fe) in tc90522_set_frontend() argument
493 state = fe->demodulator_priv; in tc90522_set_frontend()
495 if (fe->ops.tuner_ops.set_params) in tc90522_set_frontend()
496 ret = fe->ops.tuner_ops.set_params(fe); in tc90522_set_frontend()
502 if (fe->ops.delsys[0] == SYS_ISDBS) { in tc90522_set_frontend()
503 ret = tc90522s_set_tsid(fe); in tc90522_set_frontend()
508 ret = tc90522t_set_layers(fe); in tc90522_set_frontend()
520 __func__, fe->dvb->num, fe->id); in tc90522_set_frontend()
524 static int tc90522_get_tune_settings(struct dvb_frontend *fe, in tc90522_get_tune_settings() argument
527 if (fe->ops.delsys[0] == SYS_ISDBS) { in tc90522_get_tune_settings()
539 static int tc90522_set_if_agc(struct dvb_frontend *fe, bool on) in tc90522_set_if_agc() argument
556 state = fe->demodulator_priv; in tc90522_set_if_agc()
557 if (fe->ops.delsys[0] == SYS_ISDBS) { in tc90522_set_if_agc()
576 static int tc90522_sleep(struct dvb_frontend *fe) in tc90522_sleep() argument
581 state = fe->demodulator_priv; in tc90522_sleep()
582 if (fe->ops.delsys[0] == SYS_ISDBS) in tc90522_sleep()
586 if (ret == 0 && fe->ops.set_lna && in tc90522_sleep()
587 fe->dtv_property_cache.lna == LNA_AUTO) { in tc90522_sleep()
588 fe->dtv_property_cache.lna = 0; in tc90522_sleep()
589 ret = fe->ops.set_lna(fe); in tc90522_sleep()
590 fe->dtv_property_cache.lna = LNA_AUTO; in tc90522_sleep()
596 __func__, fe->dvb->num, fe->id); in tc90522_sleep()
603 static int tc90522_init(struct dvb_frontend *fe) in tc90522_init() argument
614 state = fe->demodulator_priv; in tc90522_init()
615 if (fe->ops.delsys[0] == SYS_ISDBS) in tc90522_init()
619 if (ret == 0 && fe->ops.set_lna && in tc90522_init()
620 fe->dtv_property_cache.lna == LNA_AUTO) { in tc90522_init()
621 fe->dtv_property_cache.lna = 1; in tc90522_init()
622 ret = fe->ops.set_lna(fe); in tc90522_init()
623 fe->dtv_property_cache.lna = LNA_AUTO; in tc90522_init()
629 __func__, fe->dvb->num, fe->id); in tc90522_init()
634 if (fe->dtv_property_cache.isdbt_layer_enabled == 0) in tc90522_init()
635 fe->dtv_property_cache.isdbt_layer_enabled = 7; in tc90522_init()
636 return tc90522_set_if_agc(fe, true); in tc90522_init()
786 cfg->fe = state->cfg.fe = &state->fe; in tc90522_probe()
788 memcpy(&state->fe.ops, ops, sizeof(*ops)); in tc90522_probe()
789 state->fe.demodulator_priv = state; in tc90522_probe()