linux/drivers/media/dvb-core/dmxdev.c

// SPDX-License-Identifier: LGPL-2.1-or-later
/*
 * dmxdev.c - DVB demultiplexer device
 *
 * Copyright (C) 2000 Ralph Metzler & Marcus Metzler
 *		      for convergence integrated media GmbH
 */

#define pr_fmt(fmt)

#include <linux/sched.h>
#include <linux/spinlock.h>
#include <linux/slab.h>
#include <linux/vmalloc.h>
#include <linux/module.h>
#include <linux/poll.h>
#include <linux/ioctl.h>
#include <linux/wait.h>
#include <linux/uaccess.h>
#include <media/dmxdev.h>
#include <media/dvb_vb2.h>

static int debug;

module_param(debug, int, 0644);
MODULE_PARM_DESC();

#define dprintk(fmt, arg...)

static int dvb_dmxdev_buffer_write(struct dvb_ringbuffer *buf,
				   const u8 *src, size_t len)
{}

static ssize_t dvb_dmxdev_buffer_read(struct dvb_ringbuffer *src,
				      int non_blocking, char __user *buf,
				      size_t count, loff_t *ppos)
{}

static struct dmx_frontend *get_fe(struct dmx_demux *demux, int type)
{}

static int dvb_dvr_open(struct inode *inode, struct file *file)
{}

static int dvb_dvr_release(struct inode *inode, struct file *file)
{}

static ssize_t dvb_dvr_write(struct file *file, const char __user *buf,
			     size_t count, loff_t *ppos)
{}

static ssize_t dvb_dvr_read(struct file *file, char __user *buf, size_t count,
			    loff_t *ppos)
{}

static int dvb_dvr_set_buffer_size(struct dmxdev *dmxdev,
				      unsigned long size)
{}

static inline void dvb_dmxdev_filter_state_set(struct dmxdev_filter
					       *dmxdevfilter, int state)
{}

static int dvb_dmxdev_set_buffer_size(struct dmxdev_filter *dmxdevfilter,
				      unsigned long size)
{}

static void dvb_dmxdev_filter_timeout(struct timer_list *t)
{}

static void dvb_dmxdev_filter_timer(struct dmxdev_filter *dmxdevfilter)
{}

static int dvb_dmxdev_section_callback(const u8 *buffer1, size_t buffer1_len,
				       const u8 *buffer2, size_t buffer2_len,
				       struct dmx_section_filter *filter,
				       u32 *buffer_flags)
{}

static int dvb_dmxdev_ts_callback(const u8 *buffer1, size_t buffer1_len,
				  const u8 *buffer2, size_t buffer2_len,
				  struct dmx_ts_feed *feed,
				  u32 *buffer_flags)
{}

/* stop feed but only mark the specified filter as stopped (state set) */
static int dvb_dmxdev_feed_stop(struct dmxdev_filter *dmxdevfilter)
{}

/* start feed associated with the specified filter */
static int dvb_dmxdev_feed_start(struct dmxdev_filter *filter)
{}

/* restart section feed if it has filters left associated with it,
   otherwise release the feed */
static int dvb_dmxdev_feed_restart(struct dmxdev_filter *filter)
{}

static int dvb_dmxdev_filter_stop(struct dmxdev_filter *dmxdevfilter)
{}

static void dvb_dmxdev_delete_pids(struct dmxdev_filter *dmxdevfilter)
{}

static inline int dvb_dmxdev_filter_reset(struct dmxdev_filter *dmxdevfilter)
{}

static int dvb_dmxdev_start_feed(struct dmxdev *dmxdev,
				 struct dmxdev_filter *filter,
				 struct dmxdev_feed *feed)
{}

static int dvb_dmxdev_filter_start(struct dmxdev_filter *filter)
{}

static int dvb_demux_open(struct inode *inode, struct file *file)
{}

static int dvb_dmxdev_filter_free(struct dmxdev *dmxdev,
				  struct dmxdev_filter *dmxdevfilter)
{}

static inline void invert_mode(struct dmx_filter *filter)
{}

static int dvb_dmxdev_add_pid(struct dmxdev *dmxdev,
			      struct dmxdev_filter *filter, u16 pid)
{}

static int dvb_dmxdev_remove_pid(struct dmxdev *dmxdev,
				  struct dmxdev_filter *filter, u16 pid)
{}

static int dvb_dmxdev_filter_set(struct dmxdev *dmxdev,
				 struct dmxdev_filter *dmxdevfilter,
				 struct dmx_sct_filter_params *params)
{}

static int dvb_dmxdev_pes_filter_set(struct dmxdev *dmxdev,
				     struct dmxdev_filter *dmxdevfilter,
				     struct dmx_pes_filter_params *params)
{}

static ssize_t dvb_dmxdev_read_sec(struct dmxdev_filter *dfil,
				   struct file *file, char __user *buf,
				   size_t count, loff_t *ppos)
{}

static ssize_t
dvb_demux_read(struct file *file, char __user *buf, size_t count,
	       loff_t *ppos)
{}

static int dvb_demux_do_ioctl(struct file *file,
			      unsigned int cmd, void *parg)
{}

static long dvb_demux_ioctl(struct file *file, unsigned int cmd,
			    unsigned long arg)
{}

static __poll_t dvb_demux_poll(struct file *file, poll_table *wait)
{}

#ifdef CONFIG_DVB_MMAP
static int dvb_demux_mmap(struct file *file, struct vm_area_struct *vma)
{}
#endif

static int dvb_demux_release(struct inode *inode, struct file *file)
{}

static const struct file_operations dvb_demux_fops =;

static const struct dvb_device dvbdev_demux =;

static int dvb_dvr_do_ioctl(struct file *file,
			    unsigned int cmd, void *parg)
{}

static long dvb_dvr_ioctl(struct file *file,
			 unsigned int cmd, unsigned long arg)
{}

static __poll_t dvb_dvr_poll(struct file *file, poll_table *wait)
{}

#ifdef CONFIG_DVB_MMAP
static int dvb_dvr_mmap(struct file *file, struct vm_area_struct *vma)
{}
#endif

static const struct file_operations dvb_dvr_fops =;

static const struct dvb_device dvbdev_dvr =;
int dvb_dmxdev_init(struct dmxdev *dmxdev, struct dvb_adapter *dvb_adapter)
{}

EXPORT_SYMBOL();

void dvb_dmxdev_release(struct dmxdev *dmxdev)
{}

EXPORT_SYMBOL();