Lines Matching refs:file
195 static int fops_open(struct file *file) in fops_open() argument
197 struct video_device *vdev = video_devdata(file); in fops_open()
198 struct saa7146_dev *dev = video_drvdata(file); in fops_open()
202 DEB_EE("file:%p, dev:%s\n", file, video_device_node_name(vdev)); in fops_open()
226 file->private_data = &fh->fh; in fops_open()
232 result = saa7146_vbi_uops.open(dev,file); in fops_open()
234 dev->ext_vv_data->vbi_fops.open(file); in fops_open()
237 result = saa7146_video_uops.open(dev,file); in fops_open()
254 file->private_data = NULL; in fops_open()
260 static int fops_release(struct file *file) in fops_release() argument
262 struct video_device *vdev = video_devdata(file); in fops_release()
263 struct saa7146_fh *fh = file->private_data; in fops_release()
266 DEB_EE("file:%p\n", file); in fops_release()
272 saa7146_vbi_uops.release(dev,file); in fops_release()
274 dev->ext_vv_data->vbi_fops.release(file); in fops_release()
276 saa7146_video_uops.release(dev,file); in fops_release()
282 file->private_data = NULL; in fops_release()
290 static int fops_mmap(struct file *file, struct vm_area_struct * vma) in fops_mmap() argument
292 struct video_device *vdev = video_devdata(file); in fops_mmap()
293 struct saa7146_fh *fh = file->private_data; in fops_mmap()
300 file, vma); in fops_mmap()
306 file, vma); in fops_mmap()
323 static unsigned int __fops_poll(struct file *file, struct poll_table_struct *wait) in __fops_poll() argument
325 struct video_device *vdev = video_devdata(file); in __fops_poll()
326 struct saa7146_fh *fh = file->private_data; in __fops_poll()
329 unsigned int res = v4l2_ctrl_poll(file, wait); in __fops_poll()
331 DEB_EE("file:%p, poll:%p\n", file, wait); in __fops_poll()
337 return res | videobuf_poll_stream(file, &fh->vbi_q, wait); in __fops_poll()
352 poll_wait(file, &buf->done, wait); in __fops_poll()
362 static unsigned int fops_poll(struct file *file, struct poll_table_struct *wait) in fops_poll() argument
364 struct video_device *vdev = video_devdata(file); in fops_poll()
368 res = __fops_poll(file, wait); in fops_poll()
373 static ssize_t fops_read(struct file *file, char __user *data, size_t count, loff_t *ppos) in fops_read() argument
375 struct video_device *vdev = video_devdata(file); in fops_read()
376 struct saa7146_fh *fh = file->private_data; in fops_read()
385 return saa7146_video_uops.read(file,data,count,ppos); in fops_read()
394 ret = saa7146_vbi_uops.read(file, data, count, ppos); in fops_read()
404 static ssize_t fops_write(struct file *file, const char __user *data, size_t count, loff_t *ppos) in fops_write() argument
406 struct video_device *vdev = video_devdata(file); in fops_write()
407 struct saa7146_fh *fh = file->private_data; in fops_write()
417 ret = fh->dev->ext_vv_data->vbi_fops.write(file, data, count, ppos); in fops_write()