Lines Matching refs:fe
262 static int mxl111sf_adap_fe_init(struct dvb_frontend *fe) in mxl111sf_adap_fe_init() argument
264 struct dvb_usb_device *d = fe_to_d(fe); in mxl111sf_adap_fe_init()
265 struct mxl111sf_state *state = fe_to_priv(fe); in mxl111sf_adap_fe_init()
266 struct mxl111sf_adap_state *adap_state = &state->adap_state[fe->id]; in mxl111sf_adap_fe_init()
308 err = fe->ops.init(fe); in mxl111sf_adap_fe_init()
314 return (adap_state->fe_init) ? adap_state->fe_init(fe) : 0; in mxl111sf_adap_fe_init()
319 static int mxl111sf_adap_fe_sleep(struct dvb_frontend *fe) in mxl111sf_adap_fe_sleep() argument
321 struct mxl111sf_state *state = fe_to_priv(fe); in mxl111sf_adap_fe_sleep()
322 struct mxl111sf_adap_state *adap_state = &state->adap_state[fe->id]; in mxl111sf_adap_fe_sleep()
333 err = (adap_state->fe_sleep) ? adap_state->fe_sleep(fe) : 0; in mxl111sf_adap_fe_sleep()
343 static int mxl111sf_ep6_streaming_ctrl(struct dvb_frontend *fe, int onoff) in mxl111sf_ep6_streaming_ctrl() argument
345 struct mxl111sf_state *state = fe_to_priv(fe); in mxl111sf_ep6_streaming_ctrl()
346 struct mxl111sf_adap_state *adap_state = &state->adap_state[fe->id]; in mxl111sf_ep6_streaming_ctrl()
368 static int mxl111sf_ep5_streaming_ctrl(struct dvb_frontend *fe, int onoff) in mxl111sf_ep5_streaming_ctrl() argument
370 struct mxl111sf_state *state = fe_to_priv(fe); in mxl111sf_ep5_streaming_ctrl()
394 static int mxl111sf_ep4_streaming_ctrl(struct dvb_frontend *fe, int onoff) in mxl111sf_ep4_streaming_ctrl() argument
396 struct mxl111sf_state *state = fe_to_priv(fe); in mxl111sf_ep4_streaming_ctrl()
469 adap->fe[fe_id] = dvb_attach(lgdt3305_attach, in mxl111sf_lgdt3305_frontend_attach()
472 if (adap->fe[fe_id]) { in mxl111sf_lgdt3305_frontend_attach()
474 adap_state->fe_init = adap->fe[fe_id]->ops.init; in mxl111sf_lgdt3305_frontend_attach()
475 adap->fe[fe_id]->ops.init = mxl111sf_adap_fe_init; in mxl111sf_lgdt3305_frontend_attach()
476 adap_state->fe_sleep = adap->fe[fe_id]->ops.sleep; in mxl111sf_lgdt3305_frontend_attach()
477 adap->fe[fe_id]->ops.sleep = mxl111sf_adap_fe_sleep; in mxl111sf_lgdt3305_frontend_attach()
544 adap->fe[fe_id] = dvb_attach(lg2160_attach, in mxl111sf_lg2160_frontend_attach()
547 if (adap->fe[fe_id]) { in mxl111sf_lg2160_frontend_attach()
549 adap_state->fe_init = adap->fe[fe_id]->ops.init; in mxl111sf_lg2160_frontend_attach()
550 adap->fe[fe_id]->ops.init = mxl111sf_adap_fe_init; in mxl111sf_lg2160_frontend_attach()
551 adap_state->fe_sleep = adap->fe[fe_id]->ops.sleep; in mxl111sf_lg2160_frontend_attach()
552 adap->fe[fe_id]->ops.sleep = mxl111sf_adap_fe_sleep; in mxl111sf_lg2160_frontend_attach()
629 adap->fe[fe_id] = dvb_attach(lg2160_attach, in mxl111sf_lg2161_frontend_attach()
634 if (adap->fe[fe_id]) { in mxl111sf_lg2161_frontend_attach()
636 adap_state->fe_init = adap->fe[fe_id]->ops.init; in mxl111sf_lg2161_frontend_attach()
637 adap->fe[fe_id]->ops.init = mxl111sf_adap_fe_init; in mxl111sf_lg2161_frontend_attach()
638 adap_state->fe_sleep = adap->fe[fe_id]->ops.sleep; in mxl111sf_lg2161_frontend_attach()
639 adap->fe[fe_id]->ops.sleep = mxl111sf_adap_fe_sleep; in mxl111sf_lg2161_frontend_attach()
716 adap->fe[fe_id] = dvb_attach(lg2160_attach, in mxl111sf_lg2161_ep6_frontend_attach()
721 if (adap->fe[fe_id]) { in mxl111sf_lg2161_ep6_frontend_attach()
723 adap_state->fe_init = adap->fe[fe_id]->ops.init; in mxl111sf_lg2161_ep6_frontend_attach()
724 adap->fe[fe_id]->ops.init = mxl111sf_adap_fe_init; in mxl111sf_lg2161_ep6_frontend_attach()
725 adap_state->fe_sleep = adap->fe[fe_id]->ops.sleep; in mxl111sf_lg2161_ep6_frontend_attach()
726 adap->fe[fe_id]->ops.sleep = mxl111sf_adap_fe_sleep; in mxl111sf_lg2161_ep6_frontend_attach()
783 adap->fe[fe_id] = dvb_attach(mxl111sf_demod_attach, state, in mxl111sf_attach_demod()
785 if (adap->fe[fe_id]) { in mxl111sf_attach_demod()
787 adap_state->fe_init = adap->fe[fe_id]->ops.init; in mxl111sf_attach_demod()
788 adap->fe[fe_id]->ops.init = mxl111sf_adap_fe_init; in mxl111sf_attach_demod()
789 adap_state->fe_sleep = adap->fe[fe_id]->ops.sleep; in mxl111sf_attach_demod()
790 adap->fe[fe_id]->ops.sleep = mxl111sf_adap_fe_sleep; in mxl111sf_attach_demod()
815 static int mxl111sf_ant_hunt(struct dvb_frontend *fe) in mxl111sf_ant_hunt() argument
817 struct mxl111sf_state *state = fe_to_priv(fe); in mxl111sf_ant_hunt()
830 fe->ops.tuner_ops.get_rf_strength(fe, &rxPwrA); in mxl111sf_ant_hunt()
834 fe->ops.tuner_ops.get_rf_strength(fe, &rxPwr0); in mxl111sf_ant_hunt()
838 fe->ops.tuner_ops.get_rf_strength(fe, &rxPwr1); in mxl111sf_ant_hunt()
842 fe->ops.tuner_ops.get_rf_strength(fe, &rxPwr2); in mxl111sf_ant_hunt()
876 if (dvb_attach(mxl111sf_tuner_attach, adap->fe[i], state, in mxl111sf_attach_tuner()
879 adap->fe[i]->ops.read_signal_strength = adap->fe[i]->ops.tuner_ops.get_rf_strength; in mxl111sf_attach_tuner()
1037 static int mxl111sf_get_stream_config_dvbt(struct dvb_frontend *fe, in mxl111sf_get_stream_config_dvbt() argument
1040 pr_debug("%s: fe=%d\n", __func__, fe->id); in mxl111sf_get_stream_config_dvbt()
1078 static int mxl111sf_get_stream_config_atsc(struct dvb_frontend *fe, in mxl111sf_get_stream_config_atsc() argument
1081 pr_debug("%s: fe=%d\n", __func__, fe->id); in mxl111sf_get_stream_config_atsc()
1119 static int mxl111sf_get_stream_config_mh(struct dvb_frontend *fe, in mxl111sf_get_stream_config_mh() argument
1122 pr_debug("%s: fe=%d\n", __func__, fe->id); in mxl111sf_get_stream_config_mh()
1160 static int mxl111sf_get_stream_config_atsc_mh(struct dvb_frontend *fe, in mxl111sf_get_stream_config_atsc_mh() argument
1163 pr_debug("%s: fe=%d\n", __func__, fe->id); in mxl111sf_get_stream_config_atsc_mh()
1165 if (fe->id == 0) { in mxl111sf_get_stream_config_atsc_mh()
1171 } else if (fe->id == 1) { in mxl111sf_get_stream_config_atsc_mh()
1177 } else if (fe->id == 2) { in mxl111sf_get_stream_config_atsc_mh()
1187 static int mxl111sf_streaming_ctrl_atsc_mh(struct dvb_frontend *fe, int onoff) in mxl111sf_streaming_ctrl_atsc_mh() argument
1189 pr_debug("%s: fe=%d onoff=%d\n", __func__, fe->id, onoff); in mxl111sf_streaming_ctrl_atsc_mh()
1191 if (fe->id == 0) in mxl111sf_streaming_ctrl_atsc_mh()
1192 return mxl111sf_ep6_streaming_ctrl(fe, onoff); in mxl111sf_streaming_ctrl_atsc_mh()
1193 else if (fe->id == 1) in mxl111sf_streaming_ctrl_atsc_mh()
1194 return mxl111sf_ep4_streaming_ctrl(fe, onoff); in mxl111sf_streaming_ctrl_atsc_mh()
1195 else if (fe->id == 2) in mxl111sf_streaming_ctrl_atsc_mh()
1196 return mxl111sf_ep5_streaming_ctrl(fe, onoff); in mxl111sf_streaming_ctrl_atsc_mh()
1230 static int mxl111sf_get_stream_config_mercury(struct dvb_frontend *fe, in mxl111sf_get_stream_config_mercury() argument
1233 pr_debug("%s: fe=%d\n", __func__, fe->id); in mxl111sf_get_stream_config_mercury()
1235 if (fe->id == 0) { in mxl111sf_get_stream_config_mercury()
1241 } else if (fe->id == 1) { in mxl111sf_get_stream_config_mercury()
1247 } else if (fe->id == 2 && dvb_usb_mxl111sf_spi) { in mxl111sf_get_stream_config_mercury()
1253 } else if (fe->id == 2 && !dvb_usb_mxl111sf_spi) { in mxl111sf_get_stream_config_mercury()
1263 static int mxl111sf_streaming_ctrl_mercury(struct dvb_frontend *fe, int onoff) in mxl111sf_streaming_ctrl_mercury() argument
1265 pr_debug("%s: fe=%d onoff=%d\n", __func__, fe->id, onoff); in mxl111sf_streaming_ctrl_mercury()
1267 if (fe->id == 0) in mxl111sf_streaming_ctrl_mercury()
1268 return mxl111sf_ep6_streaming_ctrl(fe, onoff); in mxl111sf_streaming_ctrl_mercury()
1269 else if (fe->id == 1) in mxl111sf_streaming_ctrl_mercury()
1270 return mxl111sf_ep4_streaming_ctrl(fe, onoff); in mxl111sf_streaming_ctrl_mercury()
1271 else if (fe->id == 2 && dvb_usb_mxl111sf_spi) in mxl111sf_streaming_ctrl_mercury()
1272 return mxl111sf_ep5_streaming_ctrl(fe, onoff); in mxl111sf_streaming_ctrl_mercury()
1273 else if (fe->id == 2 && !dvb_usb_mxl111sf_spi) in mxl111sf_streaming_ctrl_mercury()
1274 return mxl111sf_ep6_streaming_ctrl(fe, onoff); in mxl111sf_streaming_ctrl_mercury()
1308 static int mxl111sf_get_stream_config_mercury_mh(struct dvb_frontend *fe, in mxl111sf_get_stream_config_mercury_mh() argument
1311 pr_debug("%s: fe=%d\n", __func__, fe->id); in mxl111sf_get_stream_config_mercury_mh()
1313 if (fe->id == 0) { in mxl111sf_get_stream_config_mercury_mh()
1319 } else if (fe->id == 1 && dvb_usb_mxl111sf_spi) { in mxl111sf_get_stream_config_mercury_mh()
1325 } else if (fe->id == 1 && !dvb_usb_mxl111sf_spi) { in mxl111sf_get_stream_config_mercury_mh()
1335 static int mxl111sf_streaming_ctrl_mercury_mh(struct dvb_frontend *fe, int onoff) in mxl111sf_streaming_ctrl_mercury_mh() argument
1337 pr_debug("%s: fe=%d onoff=%d\n", __func__, fe->id, onoff); in mxl111sf_streaming_ctrl_mercury_mh()
1339 if (fe->id == 0) in mxl111sf_streaming_ctrl_mercury_mh()
1340 return mxl111sf_ep4_streaming_ctrl(fe, onoff); in mxl111sf_streaming_ctrl_mercury_mh()
1341 else if (fe->id == 1 && dvb_usb_mxl111sf_spi) in mxl111sf_streaming_ctrl_mercury_mh()
1342 return mxl111sf_ep5_streaming_ctrl(fe, onoff); in mxl111sf_streaming_ctrl_mercury_mh()
1343 else if (fe->id == 1 && !dvb_usb_mxl111sf_spi) in mxl111sf_streaming_ctrl_mercury_mh()
1344 return mxl111sf_ep6_streaming_ctrl(fe, onoff); in mxl111sf_streaming_ctrl_mercury_mh()