Home
last modified time | relevance | path

Searched refs:vfd (Results 1 – 25 of 72) sorted by relevance

123

/Linux-v5.10/drivers/media/test-drivers/vivid/
Dvivid-core.c1317 struct video_device *vfd; in vivid_create_devnodes() local
1321 vfd = &dev->vid_cap_dev; in vivid_create_devnodes()
1322 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes()
1324 vfd->fops = &vivid_fops; in vivid_create_devnodes()
1325 vfd->ioctl_ops = &vivid_ioctl_ops; in vivid_create_devnodes()
1326 vfd->device_caps = dev->vid_cap_caps; in vivid_create_devnodes()
1327 vfd->release = video_device_release_empty; in vivid_create_devnodes()
1328 vfd->v4l2_dev = &dev->v4l2_dev; in vivid_create_devnodes()
1329 vfd->queue = &dev->vb_vid_cap_q; in vivid_create_devnodes()
1330 vfd->tvnorms = tvnorms_cap; in vivid_create_devnodes()
[all …]
/Linux-v5.10/drivers/media/v4l2-core/
Dv4l2-ioctl.c38 #define is_valid_ioctl(vfd, cmd) test_bit(_IOC_NR(cmd), (vfd)->valid_ioctls) argument
947 struct video_device *vfd = video_devdata(file); in check_fmt() local
948 const struct v4l2_ioctl_ops *ops = vfd->ioctl_ops; in check_fmt()
949 bool is_vid = vfd->vfl_type == VFL_TYPE_VIDEO && in check_fmt()
950 (vfd->device_caps & vid_caps); in check_fmt()
951 bool is_vbi = vfd->vfl_type == VFL_TYPE_VBI; in check_fmt()
952 bool is_sdr = vfd->vfl_type == VFL_TYPE_SDR; in check_fmt()
953 bool is_tch = vfd->vfl_type == VFL_TYPE_TOUCH; in check_fmt()
954 bool is_meta = vfd->vfl_type == VFL_TYPE_VIDEO && in check_fmt()
955 (vfd->device_caps & meta_caps); in check_fmt()
[all …]
/Linux-v5.10/drivers/staging/media/imx/
Dimx-media-dev-common.c101 vdev->vfd->entity.name, entity->name, srcpad->index); in imx_media_add_vdev_to_pad()
173 link = list_first_entry(&vdev->vfd->entity.links, in imx_media_create_pad_vdev_lists()
212 struct video_device *vfd, in imx_media_inherit_controls() argument
222 vfd->entity.name, sd->entity.name); in imx_media_inherit_controls()
224 ret = v4l2_ctrl_add_handler(vfd->ctrl_handler, in imx_media_inherit_controls()
242 ret = imx_media_inherit_controls(imxmd, vfd, pad->entity); in imx_media_inherit_controls()
258 struct video_device *vfd; in imx_media_link_notify() local
289 vfd = pad_vdev->vdev->vfd; in imx_media_link_notify()
292 vfd->entity.name); in imx_media_link_notify()
293 v4l2_ctrl_handler_free(vfd->ctrl_handler); in imx_media_link_notify()
[all …]
Dimx-media-capture.c640 struct video_device *vfd = priv->vdev.vfd; in capture_open() local
650 ret = v4l2_pipeline_pm_get(&vfd->entity); in capture_open()
661 struct video_device *vfd = priv->vdev.vfd; in capture_release() local
671 v4l2_pipeline_pm_put(&vfd->entity); in capture_release()
739 struct video_device *vfd = vdev->vfd; in imx_media_capture_device_register() local
747 vfd->v4l2_dev = v4l2_dev; in imx_media_capture_device_register()
749 ret = video_register_device(vfd, VFL_TYPE_VIDEO, -1); in imx_media_capture_device_register()
776 &vfd->entity, 0, 0); in imx_media_capture_device_register()
799 v4l2_info(sd, "Registered %s as /dev/%s\n", vfd->name, in imx_media_capture_device_register()
800 video_device_node_name(vfd)); in imx_media_capture_device_register()
[all …]
Dimx-media-csc-scaler.c134 v4l2_err(ctx->priv->vdev.vfd->v4l2_dev, in device_run()
250 v4l2_err(ctx->priv->vdev.vfd->v4l2_dev, "%s: queue busy\n", in ipu_csc_scaler_s_fmt()
520 v4l2_warn(ctx->priv->vdev.vfd->v4l2_dev, "removing old ICC\n"); in ipu_csc_scaler_start_streaming()
538 v4l2_err(ctx->priv->vdev.vfd->v4l2_dev, "%s: error %d\n", in ipu_csc_scaler_start_streaming()
850 struct video_device *vfd = vdev->vfd; in imx_media_csc_scaler_device_register() local
853 vfd->v4l2_dev = &priv->md->v4l2_dev; in imx_media_csc_scaler_device_register()
855 ret = video_register_device(vfd, VFL_TYPE_VIDEO, -1); in imx_media_csc_scaler_device_register()
857 v4l2_err(vfd->v4l2_dev, "Failed to register video device\n"); in imx_media_csc_scaler_device_register()
861 v4l2_info(vfd->v4l2_dev, "Registered %s as /dev/%s\n", vfd->name, in imx_media_csc_scaler_device_register()
862 video_device_node_name(vfd)); in imx_media_csc_scaler_device_register()
[all …]
/Linux-v5.10/drivers/media/platform/exynos4-is/
Dfimc-m2m.c358 v4l2_err(&fimc->m2m.vfd, "queue (%d) busy\n", f->type); in fimc_m2m_s_fmt_mplane()
439 v4l2_err(&fimc->m2m.vfd, in fimc_m2m_try_selection()
514 v4l2_err(&fimc->m2m.vfd, "Out of scaler range\n"); in fimc_m2m_s_selection()
628 v4l2_fh_init(&ctx->fh, &fimc->m2m.vfd); in fimc_m2m_open()
720 struct video_device *vfd = &fimc->m2m.vfd; in fimc_register_m2m_device() local
725 memset(vfd, 0, sizeof(*vfd)); in fimc_register_m2m_device()
726 vfd->fops = &fimc_m2m_fops; in fimc_register_m2m_device()
727 vfd->ioctl_ops = &fimc_m2m_ioctl_ops; in fimc_register_m2m_device()
728 vfd->v4l2_dev = v4l2_dev; in fimc_register_m2m_device()
729 vfd->minor = -1; in fimc_register_m2m_device()
[all …]
Dfimc-capture.c1715 struct video_device *vfd = &fimc->vid_cap.ve.vdev; in fimc_register_capture_device() local
1733 memset(vfd, 0, sizeof(*vfd)); in fimc_register_capture_device()
1734 snprintf(vfd->name, sizeof(vfd->name), "fimc.%d.capture", fimc->id); in fimc_register_capture_device()
1736 vfd->fops = &fimc_capture_fops; in fimc_register_capture_device()
1737 vfd->ioctl_ops = &fimc_capture_ioctl_ops; in fimc_register_capture_device()
1738 vfd->v4l2_dev = v4l2_dev; in fimc_register_capture_device()
1739 vfd->minor = -1; in fimc_register_capture_device()
1740 vfd->release = video_device_release_empty; in fimc_register_capture_device()
1741 vfd->queue = q; in fimc_register_capture_device()
1742 vfd->lock = &fimc->lock; in fimc_register_capture_device()
[all …]
/Linux-v5.10/drivers/staging/media/sunxi/cedrus/
Dcedrus.c376 struct video_device *vfd; in cedrus_probe() local
383 dev->vfd = cedrus_video_device; in cedrus_probe()
405 vfd = &dev->vfd; in cedrus_probe()
406 vfd->lock = &dev->dev_mutex; in cedrus_probe()
407 vfd->v4l2_dev = &dev->v4l2_dev; in cedrus_probe()
409 snprintf(vfd->name, sizeof(vfd->name), "%s", cedrus_video_device.name); in cedrus_probe()
410 video_set_drvdata(vfd, dev); in cedrus_probe()
430 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in cedrus_probe()
437 "Device registered as /dev/video%d\n", vfd->num); in cedrus_probe()
439 ret = v4l2_m2m_register_media_controller(dev->m2m_dev, vfd, in cedrus_probe()
[all …]
/Linux-v5.10/drivers/media/common/saa7146/
Dsaa7146_fops.c589 int saa7146_register_device(struct video_device *vfd, struct saa7146_dev *dev, in saa7146_register_device() argument
597 vfd->fops = &video_fops; in saa7146_register_device()
599 vfd->ioctl_ops = &dev->ext_vv_data->vid_ops; in saa7146_register_device()
601 vfd->ioctl_ops = &dev->ext_vv_data->vbi_ops; in saa7146_register_device()
602 vfd->release = video_device_release_empty; in saa7146_register_device()
603 vfd->lock = &dev->v4l2_lock; in saa7146_register_device()
604 vfd->v4l2_dev = &dev->v4l2_dev; in saa7146_register_device()
605 vfd->tvnorms = 0; in saa7146_register_device()
607 vfd->tvnorms |= dev->ext_vv_data->stds[i].id; in saa7146_register_device()
608 strscpy(vfd->name, name, sizeof(vfd->name)); in saa7146_register_device()
[all …]
/Linux-v5.10/drivers/media/pci/solo6x10/
Dsolo6x10-v4l2.c428 input->std = solo_dev->vfd->tvnorms; in solo_enum_input()
651 solo_dev->vfd = video_device_alloc(); in solo_v4l2_init()
652 if (!solo_dev->vfd) in solo_v4l2_init()
655 *solo_dev->vfd = solo_v4l2_template; in solo_v4l2_init()
656 solo_dev->vfd->v4l2_dev = &solo_dev->v4l2_dev; in solo_v4l2_init()
657 solo_dev->vfd->queue = &solo_dev->vidq; in solo_v4l2_init()
658 solo_dev->vfd->lock = &solo_dev->lock; in solo_v4l2_init()
665 solo_dev->vfd->ctrl_handler = &solo_dev->disp_hdl; in solo_v4l2_init()
667 video_set_drvdata(solo_dev->vfd, solo_dev); in solo_v4l2_init()
695 ret = video_register_device(solo_dev->vfd, VFL_TYPE_VIDEO, nr); in solo_v4l2_init()
[all …]
Dsolo6x10-v4l2-enc.c539 v4l2_event_queue(solo_enc->vfd, &ev); in solo_enc_fillbuf()
789 input->std = solo_enc->vfd->tvnorms; in solo_enc_enum_input()
1297 solo_enc->vfd = video_device_alloc(); in solo_enc_alloc()
1298 if (!solo_enc->vfd) in solo_enc_alloc()
1301 *solo_enc->vfd = solo_enc_template; in solo_enc_alloc()
1302 solo_enc->vfd->v4l2_dev = &solo_dev->v4l2_dev; in solo_enc_alloc()
1303 solo_enc->vfd->ctrl_handler = hdl; in solo_enc_alloc()
1304 solo_enc->vfd->queue = &solo_enc->vidq; in solo_enc_alloc()
1305 solo_enc->vfd->lock = &solo_enc->lock; in solo_enc_alloc()
1306 video_set_drvdata(solo_enc->vfd, solo_enc); in solo_enc_alloc()
[all …]
/Linux-v5.10/drivers/media/platform/omap/
Domap_vout.c576 strscpy(cap->card, vout->vfd->name, sizeof(cap->card)); in vidioc_querycap()
1308 struct video_device *vfd; in omap_vout_setup_video_data() local
1371 vfd = vout->vfd = video_device_alloc(); in omap_vout_setup_video_data()
1373 if (!vfd) { in omap_vout_setup_video_data()
1379 vfd->ctrl_handler = hdl; in omap_vout_setup_video_data()
1380 vfd->release = video_device_release; in omap_vout_setup_video_data()
1381 vfd->ioctl_ops = &vout_ioctl_ops; in omap_vout_setup_video_data()
1383 strscpy(vfd->name, VOUT_NAME, sizeof(vfd->name)); in omap_vout_setup_video_data()
1385 vfd->fops = &omap_vout_fops; in omap_vout_setup_video_data()
1386 vfd->v4l2_dev = &vout->vid_dev->v4l2_dev; in omap_vout_setup_video_data()
[all …]
/Linux-v5.10/drivers/staging/media/hantro/
Dhantro_drv.c627 struct video_device *vfd; in hantro_add_func() local
639 vfd = &func->vdev; in hantro_add_func()
640 vfd->fops = &hantro_fops; in hantro_add_func()
641 vfd->release = video_device_release_empty; in hantro_add_func()
642 vfd->lock = &vpu->vpu_mutex; in hantro_add_func()
643 vfd->v4l2_dev = &vpu->v4l2_dev; in hantro_add_func()
644 vfd->vfl_dir = VFL_DIR_M2M; in hantro_add_func()
645 vfd->device_caps = V4L2_CAP_STREAMING | V4L2_CAP_VIDEO_M2M_MPLANE; in hantro_add_func()
646 vfd->ioctl_ops = &hantro_ioctl_ops; in hantro_add_func()
647 snprintf(vfd->name, sizeof(vfd->name), "%s-%s", match->compatible, in hantro_add_func()
[all …]
/Linux-v5.10/drivers/media/platform/s5p-mfc/
Ds5p_mfc.c1273 struct video_device *vfd; in s5p_mfc_probe() local
1340 vfd = video_device_alloc(); in s5p_mfc_probe()
1341 if (!vfd) { in s5p_mfc_probe()
1346 vfd->fops = &s5p_mfc_fops; in s5p_mfc_probe()
1347 vfd->ioctl_ops = get_dec_v4l2_ioctl_ops(); in s5p_mfc_probe()
1348 vfd->release = video_device_release; in s5p_mfc_probe()
1349 vfd->lock = &dev->mfc_mutex; in s5p_mfc_probe()
1350 vfd->v4l2_dev = &dev->v4l2_dev; in s5p_mfc_probe()
1351 vfd->vfl_dir = VFL_DIR_M2M; in s5p_mfc_probe()
1352 vfd->device_caps = V4L2_CAP_VIDEO_M2M_MPLANE | V4L2_CAP_STREAMING; in s5p_mfc_probe()
[all …]
/Linux-v5.10/drivers/media/platform/s5p-g2d/
Dg2d.c622 struct video_device *vfd; in g2d_probe() local
687 vfd = video_device_alloc(); in g2d_probe()
688 if (!vfd) { in g2d_probe()
693 *vfd = g2d_videodev; in g2d_probe()
694 set_bit(V4L2_FL_QUIRK_INVERTED_CROP, &vfd->flags); in g2d_probe()
695 vfd->lock = &dev->mutex; in g2d_probe()
696 vfd->v4l2_dev = &dev->v4l2_dev; in g2d_probe()
697 vfd->device_caps = V4L2_CAP_VIDEO_M2M | V4L2_CAP_STREAMING; in g2d_probe()
716 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in g2d_probe()
721 video_set_drvdata(vfd, dev); in g2d_probe()
[all …]
/Linux-v5.10/drivers/media/platform/
Dmx2_emmaprp.c198 struct video_device *vfd; member
806 struct video_device *vfd; in emmaprp_probe() local
836 vfd = video_device_alloc(); in emmaprp_probe()
837 if (!vfd) { in emmaprp_probe()
843 *vfd = emmaprp_videodev; in emmaprp_probe()
844 vfd->lock = &pcdev->dev_mutex; in emmaprp_probe()
845 vfd->v4l2_dev = &pcdev->v4l2_dev; in emmaprp_probe()
847 video_set_drvdata(vfd, pcdev); in emmaprp_probe()
848 pcdev->vfd = vfd; in emmaprp_probe()
850 " Device registered as /dev/video%d\n", vfd->num); in emmaprp_probe()
[all …]
Dm2m-deinterlace.c123 struct video_device vfd; member
922 struct video_device *vfd; in deinterlace_probe() local
951 vfd = &pcdev->vfd; in deinterlace_probe()
952 *vfd = deinterlace_videodev; in deinterlace_probe()
953 vfd->lock = &pcdev->dev_mutex; in deinterlace_probe()
954 vfd->v4l2_dev = &pcdev->v4l2_dev; in deinterlace_probe()
956 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in deinterlace_probe()
962 video_set_drvdata(vfd, pcdev); in deinterlace_probe()
964 " Device registered as /dev/video%d\n", vfd->num); in deinterlace_probe()
978 video_unregister_device(&pcdev->vfd); in deinterlace_probe()
[all …]
/Linux-v5.10/drivers/media/platform/rockchip/rga/
Drga.c802 struct video_device *vfd; in rga_probe() local
848 vfd = video_device_alloc(); in rga_probe()
849 if (!vfd) { in rga_probe()
854 *vfd = rga_videodev; in rga_probe()
855 vfd->lock = &rga->mutex; in rga_probe()
856 vfd->v4l2_dev = &rga->v4l2_dev; in rga_probe()
858 video_set_drvdata(vfd, rga); in rga_probe()
859 rga->vfd = vfd; in rga_probe()
892 ret = video_register_device(vfd, VFL_TYPE_VIDEO, -1); in rga_probe()
899 vfd->name, video_device_node_name(vfd)); in rga_probe()
[all …]
/Linux-v5.10/drivers/media/test-drivers/vicodec/
Dvicodec-core.c98 struct video_device vfd; member
1828 struct video_device *vfd = video_devdata(file); in vicodec_open() local
1836 if (mutex_lock_interruptible(vfd->lock)) in vicodec_open()
1844 if (vfd == &dev->stateful_enc.vfd) in vicodec_open()
1846 else if (vfd == &dev->stateless_dec.vfd) in vicodec_open()
1932 mutex_unlock(vfd->lock); in vicodec_open()
1938 struct video_device *vfd = video_devdata(file); in vicodec_release() local
1941 mutex_lock(vfd->lock); in vicodec_release()
1943 mutex_unlock(vfd->lock); in vicodec_release()
2039 struct video_device *vfd; in register_instance() local
[all …]
/Linux-v5.10/drivers/media/platform/ti-vpe/
Dcal-video.c792 struct video_device *vfd = &ctx->vdev; in cal_ctx_v4l2_register() local
806 ret = video_register_device(vfd, VFL_TYPE_VIDEO, cal_video_nr); in cal_ctx_v4l2_register()
813 video_device_node_name(vfd)); in cal_ctx_v4l2_register()
829 struct video_device *vfd = &ctx->vdev; in cal_ctx_v4l2_init() local
854 *vfd = cal_videodev; in cal_ctx_v4l2_init()
855 vfd->v4l2_dev = &ctx->cal->v4l2_dev; in cal_ctx_v4l2_init()
856 vfd->queue = q; in cal_ctx_v4l2_init()
857 snprintf(vfd->name, sizeof(vfd->name), "CAL output %u", ctx->index); in cal_ctx_v4l2_init()
858 vfd->lock = &ctx->mutex; in cal_ctx_v4l2_init()
859 video_set_drvdata(vfd, ctx); in cal_ctx_v4l2_init()
[all …]
/Linux-v5.10/drivers/media/platform/s3c-camif/
Dcamif-capture.c1103 struct video_device *vfd = &vp->vdev; in s3c_camif_register_video_node() local
1107 memset(vfd, 0, sizeof(*vfd)); in s3c_camif_register_video_node()
1108 snprintf(vfd->name, sizeof(vfd->name), "camif-%s", in s3c_camif_register_video_node()
1111 vfd->fops = &s3c_camif_fops; in s3c_camif_register_video_node()
1112 vfd->ioctl_ops = &s3c_camif_ioctl_ops; in s3c_camif_register_video_node()
1113 vfd->v4l2_dev = &camif->v4l2_dev; in s3c_camif_register_video_node()
1114 vfd->minor = -1; in s3c_camif_register_video_node()
1115 vfd->release = video_device_release_empty; in s3c_camif_register_video_node()
1116 vfd->lock = &camif->lock; in s3c_camif_register_video_node()
1138 ret = media_entity_pads_init(&vfd->entity, 1, &vp->pad); in s3c_camif_register_video_node()
[all …]
/Linux-v5.10/drivers/media/platform/sunxi/sun8i-rotate/
Dsun8i_rotate.c739 struct video_device *vfd; in rotate_probe() local
746 dev->vfd = rotate_video_device; in rotate_probe()
795 vfd = &dev->vfd; in rotate_probe()
796 vfd->lock = &dev->dev_mutex; in rotate_probe()
797 vfd->v4l2_dev = &dev->v4l2_dev; in rotate_probe()
799 snprintf(vfd->name, sizeof(vfd->name), "%s", in rotate_probe()
801 video_set_drvdata(vfd, dev); in rotate_probe()
803 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in rotate_probe()
811 "Device registered as /dev/video%d\n", vfd->num); in rotate_probe()
829 video_unregister_device(&dev->vfd); in rotate_probe()
[all …]
/Linux-v5.10/drivers/media/platform/sunxi/sun8i-di/
Dsun8i-di.c805 struct video_device *vfd; in deinterlace_probe() local
813 dev->vfd = deinterlace_video_device; in deinterlace_probe()
874 vfd = &dev->vfd; in deinterlace_probe()
875 vfd->lock = &dev->dev_mutex; in deinterlace_probe()
876 vfd->v4l2_dev = &dev->v4l2_dev; in deinterlace_probe()
878 snprintf(vfd->name, sizeof(vfd->name), "%s", in deinterlace_probe()
880 video_set_drvdata(vfd, dev); in deinterlace_probe()
882 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in deinterlace_probe()
890 "Device registered as /dev/video%d\n", vfd->num); in deinterlace_probe()
908 video_unregister_device(&dev->vfd); in deinterlace_probe()
[all …]
/Linux-v5.10/drivers/media/pci/saa7164/
Dsaa7164-vbi.c681 struct video_device *vfd; in saa7164_vbi_alloc() local
686 vfd = video_device_alloc(); in saa7164_vbi_alloc()
687 if (NULL == vfd) in saa7164_vbi_alloc()
690 *vfd = *template; in saa7164_vbi_alloc()
691 snprintf(vfd->name, sizeof(vfd->name), "%s %s (%s)", dev->name, in saa7164_vbi_alloc()
694 vfd->v4l2_dev = &dev->v4l2_dev; in saa7164_vbi_alloc()
695 vfd->release = video_device_release; in saa7164_vbi_alloc()
696 return vfd; in saa7164_vbi_alloc()
/Linux-v5.10/drivers/media/test-drivers/
Dvim2m.c192 struct video_device vfd; member
1266 struct vim2m_dev *dev = container_of(vdev, struct vim2m_dev, vfd); in vim2m_device_release()
1309 struct video_device *vfd; in vim2m_probe() local
1323 dev->vfd = vim2m_videodev; in vim2m_probe()
1324 vfd = &dev->vfd; in vim2m_probe()
1325 vfd->lock = &dev->dev_mutex; in vim2m_probe()
1326 vfd->v4l2_dev = &dev->v4l2_dev; in vim2m_probe()
1328 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in vim2m_probe()
1334 video_set_drvdata(vfd, dev); in vim2m_probe()
1336 "Device registered as /dev/video%d\n", vfd->num); in vim2m_probe()
[all …]

123