Lines Matching refs:fe
255 static int xc4000_tuner_reset(struct dvb_frontend *fe);
275 static int xc4000_tuner_reset(struct dvb_frontend *fe) in xc4000_tuner_reset() argument
277 struct xc4000_priv *priv = fe->tuner_priv; in xc4000_tuner_reset()
282 if (fe->callback) { in xc4000_tuner_reset()
283 ret = fe->callback(((fe->dvb) && (fe->dvb->priv)) ? in xc4000_tuner_reset()
284 fe->dvb->priv : in xc4000_tuner_reset()
314 static int xc_load_i2c_sequence(struct dvb_frontend *fe, const u8 *i2c_sequence) in xc_load_i2c_sequence() argument
316 struct xc4000_priv *priv = fe->tuner_priv; in xc_load_i2c_sequence()
636 static int seek_firmware(struct dvb_frontend *fe, unsigned int type, in seek_firmware() argument
639 struct xc4000_priv *priv = fe->tuner_priv; in seek_firmware()
701 static int load_firmware(struct dvb_frontend *fe, unsigned int type, in load_firmware() argument
704 struct xc4000_priv *priv = fe->tuner_priv; in load_firmware()
708 pos = seek_firmware(fe, type, id); in load_firmware()
717 rc = xc_load_i2c_sequence(fe, p); in load_firmware()
724 static int xc4000_fwupload(struct dvb_frontend *fe) in xc4000_fwupload() argument
726 struct xc4000_priv *priv = fe->tuner_priv; in xc4000_fwupload()
879 static int load_scode(struct dvb_frontend *fe, unsigned int type, in load_scode() argument
882 struct xc4000_priv *priv = fe->tuner_priv; in load_scode()
891 pos = seek_firmware(fe, type, id); in load_scode()
944 static int check_firmware(struct dvb_frontend *fe, unsigned int type, in check_firmware() argument
947 struct xc4000_priv *priv = fe->tuner_priv; in check_firmware()
957 rc = xc4000_fwupload(fe); in check_firmware()
992 rc = xc4000_tuner_reset(fe); in check_firmware()
998 rc = load_firmware(fe, BASE, &std0); in check_firmware()
1007 rc = load_firmware(fe, BASE | INIT1, &std0); in check_firmware()
1009 rc = load_firmware(fe, BASE | INIT1, &std0); in check_firmware()
1031 rc = load_firmware(fe, new_fw.type, &new_fw.id); in check_firmware()
1044 rc = load_scode(fe, new_fw.type | new_fw.scode_table, &new_fw.id, in check_firmware()
1158 static int xc4000_set_params(struct dvb_frontend *fe) in xc4000_set_params() argument
1160 struct dtv_frontend_properties *c = &fe->dtv_property_cache; in xc4000_set_params()
1163 struct xc4000_priv *priv = fe->tuner_priv; in xc4000_set_params()
1224 if (check_firmware(fe, type, 0, priv->if_khz) != 0) in xc4000_set_params()
1276 static int xc4000_set_analog_params(struct dvb_frontend *fe, in xc4000_set_analog_params() argument
1279 struct xc4000_priv *priv = fe->tuner_priv; in xc4000_set_analog_params()
1418 if (check_firmware(fe, type, params->std, in xc4000_set_analog_params()
1471 static int xc4000_get_signal(struct dvb_frontend *fe, u16 *strength) in xc4000_get_signal() argument
1473 struct xc4000_priv *priv = fe->tuner_priv; in xc4000_get_signal()
1536 static int xc4000_get_frequency(struct dvb_frontend *fe, u32 *freq) in xc4000_get_frequency() argument
1538 struct xc4000_priv *priv = fe->tuner_priv; in xc4000_get_frequency()
1562 static int xc4000_get_bandwidth(struct dvb_frontend *fe, u32 *bw) in xc4000_get_bandwidth() argument
1564 struct xc4000_priv *priv = fe->tuner_priv; in xc4000_get_bandwidth()
1571 static int xc4000_get_status(struct dvb_frontend *fe, u32 *status) in xc4000_get_status() argument
1573 struct xc4000_priv *priv = fe->tuner_priv; in xc4000_get_status()
1593 static int xc4000_sleep(struct dvb_frontend *fe) in xc4000_sleep() argument
1595 struct xc4000_priv *priv = fe->tuner_priv; in xc4000_sleep()
1623 static int xc4000_init(struct dvb_frontend *fe) in xc4000_init() argument
1630 static int xc4000_release(struct dvb_frontend *fe) in xc4000_release() argument
1632 struct xc4000_priv *priv = fe->tuner_priv; in xc4000_release()
1643 fe->tuner_priv = NULL; in xc4000_release()
1668 struct dvb_frontend *xc4000_attach(struct dvb_frontend *fe, in xc4000_attach() argument
1697 fe->tuner_priv = priv; in xc4000_attach()
1701 fe->tuner_priv = priv; in xc4000_attach()
1750 memcpy(&fe->ops.tuner_ops, &xc4000_tuner_ops, in xc4000_attach()
1756 ret = xc4000_fwupload(fe); in xc4000_attach()
1762 return fe; in xc4000_attach()
1766 xc4000_release(fe); in xc4000_attach()