Lines Matching refs:pid_filt
105 struct netup_hw_pid_filter *pid_filt[2]; member
168 if ((temp_int->pid_filt[filt_nr]) == NULL) in check_filter()
171 if (temp_int->pid_filt[filt_nr]->demux == demux_dev) in check_filter()
462 struct netup_hw_pid_filter *pid_filt = NULL; in altera_hw_filt_release() local
467 pid_filt = temp_int->internal->pid_filt[filt_nr - 1]; in altera_hw_filt_release()
469 pid_filt->demux->start_feed = pid_filt->start_feed; in altera_hw_filt_release()
470 pid_filt->demux->stop_feed = pid_filt->stop_feed; in altera_hw_filt_release()
478 kfree(pid_filt->internal); in altera_hw_filt_release()
481 kfree(pid_filt); in altera_hw_filt_release()
519 static void altera_pid_control(struct netup_hw_pid_filter *pid_filt, in altera_pid_control() argument
522 struct fpga_internal *inter = pid_filt->internal; in altera_pid_control()
533 ((pid >> 11) & 0x03) | (pid_filt->nr << 2), 0); in altera_pid_control()
547 pid_filt->nr, pid, pid, onoff ? "off" : "on"); in altera_pid_control()
550 static void altera_toggle_fullts_streaming(struct netup_hw_pid_filter *pid_filt, in altera_toggle_fullts_streaming() argument
553 struct fpga_internal *inter = pid_filt->internal; in altera_toggle_fullts_streaming()
557 pid_dbg_print("%s: pid_filt->nr[%d] now %s\n", __func__, pid_filt->nr, in altera_toggle_fullts_streaming()
571 ((i >> 8) & 0x03) | (pid_filt->nr << 2), 0); in altera_toggle_fullts_streaming()
585 struct netup_hw_pid_filter *pid_filt = inter->pid_filt[filt_nr - 1]; in altera_pid_feed_control() local
587 altera_pid_control(pid_filt, feed->pid, onoff ? 0 : 1); in altera_pid_feed_control()
590 pid_filt->start_feed(feed); in altera_pid_feed_control()
592 pid_filt->stop_feed(feed); in altera_pid_feed_control()
595 altera_toggle_fullts_streaming(pid_filt, filt_nr, in altera_pid_feed_control()
637 struct netup_hw_pid_filter *pid_filt = NULL; in altera_hw_filt_init() local
642 pid_filt = kzalloc(sizeof(struct netup_hw_pid_filter), GFP_KERNEL); in altera_hw_filt_init()
646 if (!pid_filt) { in altera_hw_filt_init()
672 pid_filt, hw_filt_nr - 1); in altera_hw_filt_init()
673 inter->pid_filt[hw_filt_nr - 1] = pid_filt; in altera_hw_filt_init()
674 pid_filt->demux = config->demux; in altera_hw_filt_init()
675 pid_filt->internal = inter; in altera_hw_filt_init()
676 pid_filt->nr = hw_filt_nr - 1; in altera_hw_filt_init()
678 pid_filt->start_feed = config->demux->start_feed; in altera_hw_filt_init()
679 pid_filt->stop_feed = config->demux->stop_feed; in altera_hw_filt_init()
682 pid_filt->demux->start_feed = altera_ci_start_feed_1; in altera_hw_filt_init()
683 pid_filt->demux->stop_feed = altera_ci_stop_feed_1; in altera_hw_filt_init()
685 pid_filt->demux->start_feed = altera_ci_start_feed_2; in altera_hw_filt_init()
686 pid_filt->demux->stop_feed = altera_ci_stop_feed_2; in altera_hw_filt_init()
689 altera_toggle_fullts_streaming(pid_filt, 0, 1); in altera_hw_filt_init()
696 kfree(pid_filt); in altera_hw_filt_init()