Lines Matching refs:filp
297 static ssize_t v4l2_read(struct file *filp, char __user *buf, in v4l2_read() argument
300 struct video_device *vdev = video_devdata(filp); in v4l2_read()
306 ret = vdev->fops->read(filp, buf, sz, off); in v4l2_read()
314 static ssize_t v4l2_write(struct file *filp, const char __user *buf, in v4l2_write() argument
317 struct video_device *vdev = video_devdata(filp); in v4l2_write()
323 ret = vdev->fops->write(filp, buf, sz, off); in v4l2_write()
331 static unsigned int v4l2_poll(struct file *filp, struct poll_table_struct *poll) in v4l2_poll() argument
333 struct video_device *vdev = video_devdata(filp); in v4l2_poll()
339 res = vdev->fops->poll(filp, poll); in v4l2_poll()
346 static long v4l2_ioctl(struct file *filp, unsigned int cmd, unsigned long arg) in v4l2_ioctl() argument
348 struct video_device *vdev = video_devdata(filp); in v4l2_ioctl()
357 ret = vdev->fops->unlocked_ioctl(filp, cmd, arg); in v4l2_ioctl()
369 static unsigned long v4l2_get_unmapped_area(struct file *filp, in v4l2_get_unmapped_area() argument
373 struct video_device *vdev = video_devdata(filp); in v4l2_get_unmapped_area()
380 ret = vdev->fops->get_unmapped_area(filp, addr, len, pgoff, flags); in v4l2_get_unmapped_area()
388 static int v4l2_mmap(struct file *filp, struct vm_area_struct *vm) in v4l2_mmap() argument
390 struct video_device *vdev = video_devdata(filp); in v4l2_mmap()
396 ret = vdev->fops->mmap(filp, vm); in v4l2_mmap()
404 static int v4l2_open(struct inode *inode, struct file *filp) in v4l2_open() argument
411 vdev = video_devdata(filp); in v4l2_open()
422 ret = vdev->fops->open(filp); in v4l2_open()
437 static int v4l2_release(struct inode *inode, struct file *filp) in v4l2_release() argument
439 struct video_device *vdev = video_devdata(filp); in v4l2_release()
443 ret = vdev->fops->release(filp); in v4l2_release()