Lines Matching refs:fe
237 static int pvr2_dvb_bus_ctrl(struct dvb_frontend *fe, int acquire) in pvr2_dvb_bus_ctrl() argument
239 struct pvr2_dvb_adapter *adap = fe->dvb->priv; in pvr2_dvb_bus_ctrl()
339 if (dvb_props->frontend_attach(adap) == 0 && adap->fe[0]) { in pvr2_dvb_frontend_init()
340 if (dvb_register_frontend(&adap->dvb_adap, adap->fe[0])) { in pvr2_dvb_frontend_init()
346 if (adap->fe[0]->ops.analog_ops.standby) in pvr2_dvb_frontend_init()
347 adap->fe[0]->ops.analog_ops.standby(adap->fe[0]); in pvr2_dvb_frontend_init()
350 adap->fe[0]->id); in pvr2_dvb_frontend_init()
351 adap->fe[0]->ops.ts_bus_ctrl = pvr2_dvb_bus_ctrl; in pvr2_dvb_frontend_init()
365 if (adap->fe[1]) { in pvr2_dvb_frontend_init()
366 adap->fe[1]->id = 1; in pvr2_dvb_frontend_init()
367 adap->fe[1]->tuner_priv = adap->fe[0]->tuner_priv; in pvr2_dvb_frontend_init()
368 memcpy(&adap->fe[1]->ops.tuner_ops, in pvr2_dvb_frontend_init()
369 &adap->fe[0]->ops.tuner_ops, in pvr2_dvb_frontend_init()
372 if (dvb_register_frontend(&adap->dvb_adap, adap->fe[1])) { in pvr2_dvb_frontend_init()
381 if (adap->fe[1]->ops.analog_ops.standby) in pvr2_dvb_frontend_init()
382 adap->fe[1]->ops.analog_ops.standby(adap->fe[1]); in pvr2_dvb_frontend_init()
385 adap->fe[1]->id); in pvr2_dvb_frontend_init()
386 adap->fe[1]->ops.ts_bus_ctrl = pvr2_dvb_bus_ctrl; in pvr2_dvb_frontend_init()
393 dvb_frontend_detach(adap->fe[1]); in pvr2_dvb_frontend_init()
394 adap->fe[1] = NULL; in pvr2_dvb_frontend_init()
396 dvb_unregister_frontend(adap->fe[0]); in pvr2_dvb_frontend_init()
398 dvb_frontend_detach(adap->fe[0]); in pvr2_dvb_frontend_init()
399 adap->fe[0] = NULL; in pvr2_dvb_frontend_init()
409 if (adap->fe[1]) { in pvr2_dvb_frontend_exit()
410 dvb_unregister_frontend(adap->fe[1]); in pvr2_dvb_frontend_exit()
411 dvb_frontend_detach(adap->fe[1]); in pvr2_dvb_frontend_exit()
412 adap->fe[1] = NULL; in pvr2_dvb_frontend_exit()
414 if (adap->fe[0]) { in pvr2_dvb_frontend_exit()
415 dvb_unregister_frontend(adap->fe[0]); in pvr2_dvb_frontend_exit()
416 dvb_frontend_detach(adap->fe[0]); in pvr2_dvb_frontend_exit()
417 adap->fe[0] = NULL; in pvr2_dvb_frontend_exit()