static unsigned int solo_v4l2_poll(struct file *file, struct poll_table_struct *wait) { struct solo_filehandle *fh = file->private_data; return videobuf_poll_stream(file, &fh->vidq, wait); }
static unsigned int ts_poll(struct file *file, struct poll_table_struct *wait) { struct saa7134_dev *dev = file->private_data; return videobuf_poll_stream(file, &dev->empress_tsq, wait); }
/* * vpif_poll: It is used for select/poll system call */ static unsigned int vpif_poll(struct file *filep, poll_table *wait) { struct vpif_fh *fh = filep->private_data; struct channel_obj *ch = fh->channel; struct common_obj *common = &ch->common[VPIF_VIDEO_INDEX]; if (common->started) return videobuf_poll_stream(filep, &common->buffer_queue, wait); return 0; }
/** * vpif_poll: It is used for select/poll system call * @filep: file pointer * @wait: poll table to wait */ static unsigned int vpif_poll(struct file *filep, poll_table * wait) { int err = 0; struct vpif_fh *fh = filep->private_data; struct channel_obj *channel = fh->channel; struct common_obj *common = &(channel->common[VPIF_VIDEO_INDEX]); vpif_dbg(2, debug, "vpif_poll\n"); if (common->started) err = videobuf_poll_stream(filep, &common->buffer_queue, wait); return 0; }
static unsigned int fimc_capture_poll(struct file *file, struct poll_table_struct *wait) { struct fimc_ctx *ctx = file->private_data; struct fimc_dev *fimc = ctx->fimc_dev; struct fimc_vid_cap *cap = &fimc->vid_cap; int ret; if (mutex_lock_interruptible(&fimc->lock)) return POLLERR; ret = videobuf_poll_stream(file, &cap->vbq, wait); mutex_unlock(&fimc->lock); return ret; }
static unsigned int mx2_camera_poll(struct file *file, poll_table *pt) { struct soc_camera_device *icd = file->private_data; return videobuf_poll_stream(file, &icd->vb_vidq, pt); }
static unsigned int myvivi_poll(struct file *file, struct poll_table_struct *wait) { return videobuf_poll_stream(file, &myvivi_vb_vidquene, wait); }