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, fe_status_t *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, fe_status_t *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()
251 if (fe->ops.tuner_ops.get_rf_strength) { in tc90522s_get_frontend()
254 fe->ops.tuner_ops.get_rf_strength(fe, &dummy); in tc90522s_get_frontend()
337 static int tc90522t_get_frontend(struct dvb_frontend *fe) in tc90522t_get_frontend() argument
347 state = fe->demodulator_priv; in tc90522t_get_frontend()
348 c = &fe->dtv_property_cache; in tc90522t_get_frontend()
410 if (fe->ops.tuner_ops.get_rf_strength) { in tc90522t_get_frontend()
413 fe->ops.tuner_ops.get_rf_strength(fe, &dummy); in tc90522t_get_frontend()
485 static int tc90522_set_frontend(struct dvb_frontend *fe) in tc90522_set_frontend() argument
490 state = fe->demodulator_priv; in tc90522_set_frontend()
492 if (fe->ops.tuner_ops.set_params) in tc90522_set_frontend()
493 ret = fe->ops.tuner_ops.set_params(fe); in tc90522_set_frontend()
499 if (fe->ops.delsys[0] == SYS_ISDBS) { in tc90522_set_frontend()
500 ret = tc90522s_set_tsid(fe); in tc90522_set_frontend()
505 ret = tc90522t_set_layers(fe); in tc90522_set_frontend()
517 __func__, fe->dvb->num, fe->id); in tc90522_set_frontend()
521 static int tc90522_get_tune_settings(struct dvb_frontend *fe, in tc90522_get_tune_settings() argument
524 if (fe->ops.delsys[0] == SYS_ISDBS) { in tc90522_get_tune_settings()
536 static int tc90522_set_if_agc(struct dvb_frontend *fe, bool on) in tc90522_set_if_agc() argument
553 state = fe->demodulator_priv; in tc90522_set_if_agc()
554 if (fe->ops.delsys[0] == SYS_ISDBS) { in tc90522_set_if_agc()
573 static int tc90522_sleep(struct dvb_frontend *fe) in tc90522_sleep() argument
578 state = fe->demodulator_priv; in tc90522_sleep()
579 if (fe->ops.delsys[0] == SYS_ISDBS) in tc90522_sleep()
583 if (ret == 0 && fe->ops.set_lna && in tc90522_sleep()
584 fe->dtv_property_cache.lna == LNA_AUTO) { in tc90522_sleep()
585 fe->dtv_property_cache.lna = 0; in tc90522_sleep()
586 ret = fe->ops.set_lna(fe); in tc90522_sleep()
587 fe->dtv_property_cache.lna = LNA_AUTO; in tc90522_sleep()
593 __func__, fe->dvb->num, fe->id); in tc90522_sleep()
600 static int tc90522_init(struct dvb_frontend *fe) in tc90522_init() argument
611 state = fe->demodulator_priv; in tc90522_init()
612 if (fe->ops.delsys[0] == SYS_ISDBS) in tc90522_init()
616 if (ret == 0 && fe->ops.set_lna && in tc90522_init()
617 fe->dtv_property_cache.lna == LNA_AUTO) { in tc90522_init()
618 fe->dtv_property_cache.lna = 1; in tc90522_init()
619 ret = fe->ops.set_lna(fe); in tc90522_init()
620 fe->dtv_property_cache.lna = LNA_AUTO; in tc90522_init()
626 __func__, fe->dvb->num, fe->id); in tc90522_init()
631 if (fe->dtv_property_cache.isdbt_layer_enabled == 0) in tc90522_init()
632 fe->dtv_property_cache.isdbt_layer_enabled = 7; in tc90522_init()
633 return tc90522_set_if_agc(fe, true); in tc90522_init()
783 cfg->fe = state->cfg.fe = &state->fe; in tc90522_probe()
785 memcpy(&state->fe.ops, ops, sizeof(*ops)); in tc90522_probe()
786 state->fe.demodulator_priv = state; in tc90522_probe()