Lines Matching refs:file
194 static int fops_open(struct file *file) in fops_open() argument
196 struct video_device *vdev = video_devdata(file); in fops_open()
197 struct saa7146_dev *dev = video_drvdata(file); in fops_open()
201 DEB_EE("file:%p, dev:%s\n", file, video_device_node_name(vdev)); in fops_open()
225 file->private_data = &fh->fh; in fops_open()
231 result = saa7146_vbi_uops.open(dev,file); in fops_open()
233 dev->ext_vv_data->vbi_fops.open(file); in fops_open()
236 result = saa7146_video_uops.open(dev,file); in fops_open()
253 file->private_data = NULL; in fops_open()
259 static int fops_release(struct file *file) in fops_release() argument
261 struct video_device *vdev = video_devdata(file); in fops_release()
262 struct saa7146_fh *fh = file->private_data; in fops_release()
265 DEB_EE("file:%p\n", file); in fops_release()
271 saa7146_vbi_uops.release(dev,file); in fops_release()
273 dev->ext_vv_data->vbi_fops.release(file); in fops_release()
275 saa7146_video_uops.release(dev,file); in fops_release()
281 file->private_data = NULL; in fops_release()
289 static int fops_mmap(struct file *file, struct vm_area_struct * vma) in fops_mmap() argument
291 struct video_device *vdev = video_devdata(file); in fops_mmap()
292 struct saa7146_fh *fh = file->private_data; in fops_mmap()
299 file, vma); in fops_mmap()
305 file, vma); in fops_mmap()
322 static __poll_t __fops_poll(struct file *file, struct poll_table_struct *wait) in __fops_poll() argument
324 struct video_device *vdev = video_devdata(file); in __fops_poll()
325 struct saa7146_fh *fh = file->private_data; in __fops_poll()
328 __poll_t res = v4l2_ctrl_poll(file, wait); in __fops_poll()
330 DEB_EE("file:%p, poll:%p\n", file, wait); in __fops_poll()
336 return res | videobuf_poll_stream(file, &fh->vbi_q, wait); in __fops_poll()
351 poll_wait(file, &buf->done, wait); in __fops_poll()
361 static __poll_t fops_poll(struct file *file, struct poll_table_struct *wait) in fops_poll() argument
363 struct video_device *vdev = video_devdata(file); in fops_poll()
367 res = __fops_poll(file, wait); in fops_poll()
372 static ssize_t fops_read(struct file *file, char __user *data, size_t count, loff_t *ppos) in fops_read() argument
374 struct video_device *vdev = video_devdata(file); in fops_read()
375 struct saa7146_fh *fh = file->private_data; in fops_read()
384 return saa7146_video_uops.read(file,data,count,ppos); in fops_read()
393 ret = saa7146_vbi_uops.read(file, data, count, ppos); in fops_read()
403 static ssize_t fops_write(struct file *file, const char __user *data, size_t count, loff_t *ppos) in fops_write() argument
405 struct video_device *vdev = video_devdata(file); in fops_write()
406 struct saa7146_fh *fh = file->private_data; in fops_write()
416 ret = fh->dev->ext_vv_data->vbi_fops.write(file, data, count, ppos); in fops_write()