Lines Matching refs:file

531 	 * request file descriptor.
534 * to avoid signalling the request file descriptor
575 int v4l2_m2m_reqbufs(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
586 vq->owner = reqbufs->count ? file->private_data : NULL;
609 int v4l2_m2m_querybuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
761 int v4l2_m2m_qbuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
764 struct video_device *vdev = video_devdata(file);
800 int v4l2_m2m_dqbuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
807 ret = vb2_dqbuf(vq, buf, file->f_flags & O_NONBLOCK);
818 int v4l2_m2m_prepare_buf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
821 struct video_device *vdev = video_devdata(file);
837 int v4l2_m2m_create_bufs(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
847 int v4l2_m2m_expbuf(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
857 int v4l2_m2m_streamon(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
872 int v4l2_m2m_streamoff(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
912 static __poll_t v4l2_m2m_poll_for_data(struct file *file,
951 __poll_t v4l2_m2m_poll(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
954 struct video_device *vfd = video_devdata(file);
967 poll_wait(file, &src_q->done_wq, wait);
968 poll_wait(file, &dst_q->done_wq, wait);
971 rc = v4l2_m2m_poll_for_data(file, m2m_ctx, wait);
974 struct v4l2_fh *fh = file->private_data;
976 poll_wait(file, &fh->wait, wait);
985 int v4l2_m2m_mmap(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
1003 unsigned long v4l2_m2m_get_unmapped_area(struct file *file, unsigned long addr,
1007 struct v4l2_fh *fh = file->private_data;
1371 int v4l2_m2m_ioctl_reqbufs(struct file *file, void *priv,
1374 struct v4l2_fh *fh = file->private_data;
1376 return v4l2_m2m_reqbufs(file, fh->m2m_ctx, rb);
1380 int v4l2_m2m_ioctl_create_bufs(struct file *file, void *priv,
1383 struct v4l2_fh *fh = file->private_data;
1385 return v4l2_m2m_create_bufs(file, fh->m2m_ctx, create);
1389 int v4l2_m2m_ioctl_querybuf(struct file *file, void *priv,
1392 struct v4l2_fh *fh = file->private_data;
1394 return v4l2_m2m_querybuf(file, fh->m2m_ctx, buf);
1398 int v4l2_m2m_ioctl_qbuf(struct file *file, void *priv,
1401 struct v4l2_fh *fh = file->private_data;
1403 return v4l2_m2m_qbuf(file, fh->m2m_ctx, buf);
1407 int v4l2_m2m_ioctl_dqbuf(struct file *file, void *priv,
1410 struct v4l2_fh *fh = file->private_data;
1412 return v4l2_m2m_dqbuf(file, fh->m2m_ctx, buf);
1416 int v4l2_m2m_ioctl_prepare_buf(struct file *file, void *priv,
1419 struct v4l2_fh *fh = file->private_data;
1421 return v4l2_m2m_prepare_buf(file, fh->m2m_ctx, buf);
1425 int v4l2_m2m_ioctl_expbuf(struct file *file, void *priv,
1428 struct v4l2_fh *fh = file->private_data;
1430 return v4l2_m2m_expbuf(file, fh->m2m_ctx, eb);
1434 int v4l2_m2m_ioctl_streamon(struct file *file, void *priv,
1437 struct v4l2_fh *fh = file->private_data;
1439 return v4l2_m2m_streamon(file, fh->m2m_ctx, type);
1443 int v4l2_m2m_ioctl_streamoff(struct file *file, void *priv,
1446 struct v4l2_fh *fh = file->private_data;
1448 return v4l2_m2m_streamoff(file, fh->m2m_ctx, type);
1452 int v4l2_m2m_ioctl_try_encoder_cmd(struct file *file, void *fh,
1463 int v4l2_m2m_ioctl_try_decoder_cmd(struct file *file, void *fh,
1485 int v4l2_m2m_encoder_cmd(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
1508 int v4l2_m2m_decoder_cmd(struct file *file, struct v4l2_m2m_ctx *m2m_ctx,
1527 int v4l2_m2m_ioctl_encoder_cmd(struct file *file, void *priv,
1530 struct v4l2_fh *fh = file->private_data;
1532 return v4l2_m2m_encoder_cmd(file, fh->m2m_ctx, ec);
1536 int v4l2_m2m_ioctl_decoder_cmd(struct file *file, void *priv,
1539 struct v4l2_fh *fh = file->private_data;
1541 return v4l2_m2m_decoder_cmd(file, fh->m2m_ctx, dc);
1545 int v4l2_m2m_ioctl_stateless_try_decoder_cmd(struct file *file, void *fh,
1557 int v4l2_m2m_ioctl_stateless_decoder_cmd(struct file *file, void *priv,
1560 struct v4l2_fh *fh = file->private_data;
1566 ret = v4l2_m2m_ioctl_stateless_try_decoder_cmd(file, priv, dc);
1603 int v4l2_m2m_fop_mmap(struct file *file, struct vm_area_struct *vma)
1605 struct v4l2_fh *fh = file->private_data;
1607 return v4l2_m2m_mmap(file, fh->m2m_ctx, vma);
1611 __poll_t v4l2_m2m_fop_poll(struct file *file, poll_table *wait)
1613 struct v4l2_fh *fh = file->private_data;
1620 ret = v4l2_m2m_poll(file, m2m_ctx, wait);