Lines Matching refs:dvb

284 	struct saa7164_dvb *dvb = &port->dvb;  in saa7164_dvb_start_feed()  local
293 if (dvb) { in saa7164_dvb_start_feed()
294 mutex_lock(&dvb->lock); in saa7164_dvb_start_feed()
295 if (dvb->feeding++ == 0) { in saa7164_dvb_start_feed()
299 mutex_unlock(&dvb->lock); in saa7164_dvb_start_feed()
301 __func__, port->nr, dvb->feeding); in saa7164_dvb_start_feed()
311 struct saa7164_dvb *dvb = &port->dvb; in saa7164_dvb_stop_feed() local
317 if (dvb) { in saa7164_dvb_stop_feed()
318 mutex_lock(&dvb->lock); in saa7164_dvb_stop_feed()
319 if (--dvb->feeding == 0) { in saa7164_dvb_stop_feed()
323 mutex_unlock(&dvb->lock); in saa7164_dvb_stop_feed()
325 __func__, port->nr, dvb->feeding); in saa7164_dvb_stop_feed()
333 struct saa7164_dvb *dvb = &port->dvb; in dvb_register() local
384 result = dvb_register_adapter(&dvb->adapter, DRIVER_NAME, THIS_MODULE, in dvb_register()
391 dvb->adapter.priv = port; in dvb_register()
394 result = dvb_register_frontend(&dvb->adapter, dvb->frontend); in dvb_register()
402 dvb->demux.dmx.capabilities = in dvb_register()
405 dvb->demux.priv = port; in dvb_register()
406 dvb->demux.filternum = 256; in dvb_register()
407 dvb->demux.feednum = 256; in dvb_register()
408 dvb->demux.start_feed = saa7164_dvb_start_feed; in dvb_register()
409 dvb->demux.stop_feed = saa7164_dvb_stop_feed; in dvb_register()
410 result = dvb_dmx_init(&dvb->demux); in dvb_register()
417 dvb->dmxdev.filternum = 256; in dvb_register()
418 dvb->dmxdev.demux = &dvb->demux.dmx; in dvb_register()
419 dvb->dmxdev.capabilities = 0; in dvb_register()
420 result = dvb_dmxdev_init(&dvb->dmxdev, &dvb->adapter); in dvb_register()
427 dvb->fe_hw.source = DMX_FRONTEND_0; in dvb_register()
428 result = dvb->demux.dmx.add_frontend(&dvb->demux.dmx, &dvb->fe_hw); in dvb_register()
435 dvb->fe_mem.source = DMX_MEMORY_FE; in dvb_register()
436 result = dvb->demux.dmx.add_frontend(&dvb->demux.dmx, &dvb->fe_mem); in dvb_register()
443 result = dvb->demux.dmx.connect_frontend(&dvb->demux.dmx, &dvb->fe_hw); in dvb_register()
451 dvb_net_init(&dvb->adapter, &dvb->net, &dvb->demux.dmx); in dvb_register()
455 dvb->demux.dmx.remove_frontend(&dvb->demux.dmx, &dvb->fe_mem); in dvb_register()
457 dvb->demux.dmx.remove_frontend(&dvb->demux.dmx, &dvb->fe_hw); in dvb_register()
459 dvb_dmxdev_release(&dvb->dmxdev); in dvb_register()
461 dvb_dmx_release(&dvb->demux); in dvb_register()
463 dvb_unregister_frontend(dvb->frontend); in dvb_register()
465 dvb_frontend_detach(dvb->frontend); in dvb_register()
466 dvb_unregister_adapter(&dvb->adapter); in dvb_register()
473 struct saa7164_dvb *dvb = &port->dvb; in saa7164_dvb_unregister() local
492 if (dvb->frontend == NULL) in saa7164_dvb_unregister()
509 dvb_net_release(&dvb->net); in saa7164_dvb_unregister()
510 dvb->demux.dmx.remove_frontend(&dvb->demux.dmx, &dvb->fe_mem); in saa7164_dvb_unregister()
511 dvb->demux.dmx.remove_frontend(&dvb->demux.dmx, &dvb->fe_hw); in saa7164_dvb_unregister()
512 dvb_dmxdev_release(&dvb->dmxdev); in saa7164_dvb_unregister()
513 dvb_dmx_release(&dvb->demux); in saa7164_dvb_unregister()
514 dvb_unregister_frontend(dvb->frontend); in saa7164_dvb_unregister()
515 dvb_frontend_detach(dvb->frontend); in saa7164_dvb_unregister()
516 dvb_unregister_adapter(&dvb->adapter); in saa7164_dvb_unregister()
526 struct saa7164_dvb *dvb = &port->dvb; in saa7164_dvb_register() local
548 port->dvb.frontend = dvb_attach(tda10048_attach, in saa7164_dvb_register()
552 if (port->dvb.frontend != NULL) { in saa7164_dvb_register()
554 dvb_attach(tda18271_attach, port->dvb.frontend, in saa7164_dvb_register()
561 port->dvb.frontend = dvb_attach(tda10048_attach, in saa7164_dvb_register()
565 if (port->dvb.frontend != NULL) { in saa7164_dvb_register()
567 dvb_attach(tda18271_attach, port->dvb.frontend, in saa7164_dvb_register()
580 port->dvb.frontend = dvb_attach(s5h1411_attach, in saa7164_dvb_register()
584 if (port->dvb.frontend != NULL) { in saa7164_dvb_register()
588 dvb_attach(tda18271_attach, port->dvb.frontend, in saa7164_dvb_register()
593 dvb_attach(tda18271_attach, port->dvb.frontend, in saa7164_dvb_register()
605 port->dvb.frontend = dvb_attach(lgdt3306a_attach, in saa7164_dvb_register()
608 port->dvb.frontend = dvb_attach(lgdt3306a_attach, in saa7164_dvb_register()
612 if (port->dvb.frontend != NULL) { in saa7164_dvb_register()
616 port->dvb.frontend, 0xc0, in saa7164_dvb_register()
620 port->dvb.frontend, 0xc0, in saa7164_dvb_register()
631 si2168_config.fe = &port->dvb.frontend; in saa7164_dvb_register()
651 si2157_config.fe = port->dvb.frontend; in saa7164_dvb_register()
674 si2168_config.fe = &port->dvb.frontend; in saa7164_dvb_register()
693 si2157_config.fe = port->dvb.frontend; in saa7164_dvb_register()
721 if (NULL == dvb->frontend) { in saa7164_dvb_register()
730 if (dvb->frontend->ops.release) in saa7164_dvb_register()
731 dvb->frontend->ops.release(dvb->frontend); in saa7164_dvb_register()