Lines Matching full:feed

423 				  struct dmx_ts_feed *feed,  in dvb_dmxdev_ts_callback()  argument
426 struct dmxdev_filter *dmxdevfilter = feed->priv; in dvb_dmxdev_ts_callback()
476 /* stop feed but only mark the specified filter as stopped (state set) */
479 struct dmxdev_feed *feed; in dvb_dmxdev_feed_stop() local
486 dmxdevfilter->feed.sec->stop_filtering(dmxdevfilter->feed.sec); in dvb_dmxdev_feed_stop()
489 list_for_each_entry(feed, &dmxdevfilter->feed.ts, next) in dvb_dmxdev_feed_stop()
490 feed->ts->stop_filtering(feed->ts); in dvb_dmxdev_feed_stop()
498 /* start feed associated with the specified filter */
501 struct dmxdev_feed *feed; in dvb_dmxdev_feed_start() local
508 return filter->feed.sec->start_filtering(filter->feed.sec); in dvb_dmxdev_feed_start()
510 list_for_each_entry(feed, &filter->feed.ts, next) { in dvb_dmxdev_feed_start()
511 ret = feed->ts->start_filtering(feed->ts); in dvb_dmxdev_feed_start()
525 /* restart section feed if it has filters left associated with it,
526 otherwise release the feed */
542 filter->feed.sec); in dvb_dmxdev_feed_restart()
549 struct dmxdev_feed *feed; in dvb_dmxdev_filter_stop() local
557 if (!dmxdevfilter->feed.sec) in dvb_dmxdev_filter_stop()
561 dmxdevfilter->feed.sec-> in dvb_dmxdev_filter_stop()
562 release_filter(dmxdevfilter->feed.sec, in dvb_dmxdev_filter_stop()
565 dmxdevfilter->feed.sec = NULL; in dvb_dmxdev_filter_stop()
570 list_for_each_entry(feed, &dmxdevfilter->feed.ts, next) { in dvb_dmxdev_filter_stop()
571 demux->release_ts_feed(demux, feed->ts); in dvb_dmxdev_filter_stop()
572 feed->ts = NULL; in dvb_dmxdev_filter_stop()
587 struct dmxdev_feed *feed, *tmp; in dvb_dmxdev_delete_pids() local
590 list_for_each_entry_safe(feed, tmp, &dmxdevfilter->feed.ts, next) { in dvb_dmxdev_delete_pids()
591 list_del(&feed->next); in dvb_dmxdev_delete_pids()
592 kfree(feed); in dvb_dmxdev_delete_pids()
595 BUG_ON(!list_empty(&dmxdevfilter->feed.ts)); in dvb_dmxdev_delete_pids()
613 struct dmxdev_feed *feed) in dvb_dmxdev_start_feed() argument
623 feed->ts = NULL; in dvb_dmxdev_start_feed()
640 ret = dmxdev->demux->allocate_ts_feed(dmxdev->demux, &feed->ts, in dvb_dmxdev_start_feed()
645 tsfeed = feed->ts; in dvb_dmxdev_start_feed()
648 ret = tsfeed->set(tsfeed, feed->pid, ts_type, ts_pes, timeout); in dvb_dmxdev_start_feed()
666 struct dmxdev_feed *feed; in dvb_dmxdev_filter_start() local
692 struct dmx_section_feed **secfeed = &filter->feed.sec; in dvb_dmxdev_filter_start()
698 /* find active filter/feed with same PID */ in dvb_dmxdev_filter_start()
703 *secfeed = dmxdev->filter[i].feed.sec; in dvb_dmxdev_filter_start()
708 /* if no feed found, try to allocate new one */ in dvb_dmxdev_filter_start()
714 pr_err("DVB (%s): could not alloc feed\n", in dvb_dmxdev_filter_start()
722 pr_err("DVB (%s): could not set feed\n", in dvb_dmxdev_filter_start()
734 filter->feed.sec->start_filtering(*secfeed); in dvb_dmxdev_filter_start()
756 ret = filter->feed.sec->start_filtering(filter->feed.sec); in dvb_dmxdev_filter_start()
764 list_for_each_entry(feed, &filter->feed.ts, next) { in dvb_dmxdev_filter_start()
765 ret = dvb_dmxdev_start_feed(dmxdev, filter, feed); in dvb_dmxdev_filter_start()
870 struct dmxdev_feed *feed; in dvb_dmxdev_add_pid() local
878 (!list_empty(&filter->feed.ts))) in dvb_dmxdev_add_pid()
881 feed = kzalloc(sizeof(struct dmxdev_feed), GFP_KERNEL); in dvb_dmxdev_add_pid()
882 if (feed == NULL) in dvb_dmxdev_add_pid()
885 feed->pid = pid; in dvb_dmxdev_add_pid()
886 list_add(&feed->next, &filter->feed.ts); in dvb_dmxdev_add_pid()
889 return dvb_dmxdev_start_feed(dmxdev, filter, feed); in dvb_dmxdev_add_pid()
897 struct dmxdev_feed *feed, *tmp; in dvb_dmxdev_remove_pid() local
903 list_for_each_entry_safe(feed, tmp, &filter->feed.ts, next) { in dvb_dmxdev_remove_pid()
904 if ((feed->pid == pid) && (feed->ts != NULL)) { in dvb_dmxdev_remove_pid()
905 feed->ts->stop_filtering(feed->ts); in dvb_dmxdev_remove_pid()
907 feed->ts); in dvb_dmxdev_remove_pid()
908 list_del(&feed->next); in dvb_dmxdev_remove_pid()
909 kfree(feed); in dvb_dmxdev_remove_pid()
952 INIT_LIST_HEAD(&dmxdevfilter->feed.ts); in dvb_dmxdev_pes_filter_set()