Lines Matching full:fe

34 		if (adap->props.fe[adap->active_fe].streaming_ctrl != NULL) {  in dvb_usb_ctrl_feed()
35 ret = adap->props.fe[adap->active_fe].streaming_ctrl(adap, 0); in dvb_usb_ctrl_feed()
50 if (adap->props.fe[adap->active_fe].caps & DVB_USB_ADAP_HAS_PID_FILTER && in dvb_usb_ctrl_feed()
52 adap->props.fe[adap->active_fe].pid_filter != NULL) in dvb_usb_ctrl_feed()
53 adap->props.fe[adap->active_fe].pid_filter(adap, dvbdmxfeed->index, dvbdmxfeed->pid, onoff); in dvb_usb_ctrl_feed()
60 if (adap->props.fe[adap->active_fe].caps & DVB_USB_ADAP_HAS_PID_FILTER && in dvb_usb_ctrl_feed()
61 adap->props.fe[adap->active_fe].caps & in dvb_usb_ctrl_feed()
63 adap->props.fe[adap->active_fe].pid_filter_ctrl != NULL) { in dvb_usb_ctrl_feed()
64 ret = adap->props.fe[adap->active_fe].pid_filter_ctrl(adap, in dvb_usb_ctrl_feed()
72 if (adap->props.fe[adap->active_fe].streaming_ctrl != NULL) { in dvb_usb_ctrl_feed()
73 ret = adap->props.fe[adap->active_fe].streaming_ctrl(adap, 1); in dvb_usb_ctrl_feed()
233 static int dvb_usb_set_active_fe(struct dvb_frontend *fe, int onoff) in dvb_usb_set_active_fe() argument
235 struct dvb_usb_adapter *adap = fe->dvb->priv; in dvb_usb_set_active_fe()
238 adap->props.frontend_ctrl(fe, onoff) : 0; in dvb_usb_set_active_fe()
245 adap->active_fe = fe->id; in dvb_usb_set_active_fe()
250 static int dvb_usb_fe_wakeup(struct dvb_frontend *fe) in dvb_usb_fe_wakeup() argument
252 struct dvb_usb_adapter *adap = fe->dvb->priv; in dvb_usb_fe_wakeup()
256 dvb_usb_set_active_fe(fe, 1); in dvb_usb_fe_wakeup()
258 if (adap->fe_adap[fe->id].fe_init) in dvb_usb_fe_wakeup()
259 adap->fe_adap[fe->id].fe_init(fe); in dvb_usb_fe_wakeup()
264 static int dvb_usb_fe_sleep(struct dvb_frontend *fe) in dvb_usb_fe_sleep() argument
266 struct dvb_usb_adapter *adap = fe->dvb->priv; in dvb_usb_fe_sleep()
268 if (adap->fe_adap[fe->id].fe_sleep) in dvb_usb_fe_sleep()
269 adap->fe_adap[fe->id].fe_sleep(fe); in dvb_usb_fe_sleep()
271 dvb_usb_set_active_fe(fe, 0); in dvb_usb_fe_sleep()
283 if (adap->props.fe[i].frontend_attach == NULL) { in dvb_usb_adapter_frontend_init()
290 ret = adap->props.fe[i].frontend_attach(adap); in dvb_usb_adapter_frontend_init()
291 if (ret || adap->fe_adap[i].fe == NULL) { in dvb_usb_adapter_frontend_init()
292 /* only print error when there is no FE at all */ in dvb_usb_adapter_frontend_init()
300 adap->fe_adap[i].fe->id = i; in dvb_usb_adapter_frontend_init()
303 adap->fe_adap[i].fe_init = adap->fe_adap[i].fe->ops.init; in dvb_usb_adapter_frontend_init()
304 adap->fe_adap[i].fe->ops.init = dvb_usb_fe_wakeup; in dvb_usb_adapter_frontend_init()
305 adap->fe_adap[i].fe_sleep = adap->fe_adap[i].fe->ops.sleep; in dvb_usb_adapter_frontend_init()
306 adap->fe_adap[i].fe->ops.sleep = dvb_usb_fe_sleep; in dvb_usb_adapter_frontend_init()
308 if (dvb_register_frontend(&adap->dvb_adap, adap->fe_adap[i].fe)) { in dvb_usb_adapter_frontend_init()
310 dvb_frontend_detach(adap->fe_adap[i].fe); in dvb_usb_adapter_frontend_init()
311 adap->fe_adap[i].fe = NULL; in dvb_usb_adapter_frontend_init()
321 if (adap->props.fe[i].tuner_attach != NULL) in dvb_usb_adapter_frontend_init()
322 adap->props.fe[i].tuner_attach(adap); in dvb_usb_adapter_frontend_init()
342 if (adap->fe_adap[i].fe != NULL) { in dvb_usb_adapter_frontend_exit()
343 dvb_unregister_frontend(adap->fe_adap[i].fe); in dvb_usb_adapter_frontend_exit()
344 dvb_frontend_detach(adap->fe_adap[i].fe); in dvb_usb_adapter_frontend_exit()