Home
last modified time | relevance | path

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

123

/Linux-v5.15/drivers/media/test-drivers/vivid/
Dvivid-core.c1377 struct video_device *vfd; in vivid_create_devnodes() local
1381 vfd = &dev->vid_cap_dev; in vivid_create_devnodes()
1382 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes()
1384 vfd->fops = &vivid_fops; in vivid_create_devnodes()
1385 vfd->ioctl_ops = &vivid_ioctl_ops; in vivid_create_devnodes()
1386 vfd->device_caps = dev->vid_cap_caps; in vivid_create_devnodes()
1387 vfd->release = video_device_release_empty; in vivid_create_devnodes()
1388 vfd->v4l2_dev = &dev->v4l2_dev; in vivid_create_devnodes()
1389 vfd->queue = &dev->vb_vid_cap_q; in vivid_create_devnodes()
1390 vfd->tvnorms = tvnorms_cap; in vivid_create_devnodes()
[all …]
/Linux-v5.15/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()
290 if (!vfd->ctrl_handler) in imx_media_link_notify()
294 vfd->entity.name); in imx_media_link_notify()
[all …]
Dimx-media-capture.c778 struct video_device *vfd = priv->vdev.vfd; in capture_open() local
790 ret = v4l2_pipeline_pm_get(&vfd->entity); in capture_open()
802 struct video_device *vfd = priv->vdev.vfd; in capture_release() local
812 v4l2_pipeline_pm_put(&vfd->entity); in capture_release()
907 struct video_device *vfd = vdev->vfd; in imx_media_capture_device_register() local
913 vfd->v4l2_dev = v4l2_dev; in imx_media_capture_device_register()
921 ret = video_register_device(vfd, VFL_TYPE_VIDEO, -1); in imx_media_capture_device_register()
927 dev_info(priv->dev, "Registered %s as /dev/%s\n", vfd->name, in imx_media_capture_device_register()
928 video_device_node_name(vfd)); in imx_media_capture_device_register()
934 &vfd->entity, 0, link_flags); 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.15/drivers/media/v4l2-core/
Dv4l2-ioctl.c39 #define is_valid_ioctl(vfd, cmd) test_bit(_IOC_NR(cmd), (vfd)->valid_ioctls) argument
909 struct video_device *vfd = video_devdata(file); in check_fmt() local
910 const struct v4l2_ioctl_ops *ops = vfd->ioctl_ops; in check_fmt()
911 bool is_vid = vfd->vfl_type == VFL_TYPE_VIDEO && in check_fmt()
912 (vfd->device_caps & vid_caps); in check_fmt()
913 bool is_vbi = vfd->vfl_type == VFL_TYPE_VBI; in check_fmt()
914 bool is_sdr = vfd->vfl_type == VFL_TYPE_SDR; in check_fmt()
915 bool is_tch = vfd->vfl_type == VFL_TYPE_TOUCH; in check_fmt()
916 bool is_meta = vfd->vfl_type == VFL_TYPE_VIDEO && in check_fmt()
917 (vfd->device_caps & meta_caps); in check_fmt()
[all …]
/Linux-v5.15/drivers/media/platform/exynos4-is/
Dfimc-m2m.c355 v4l2_err(&fimc->m2m.vfd, "queue (%d) busy\n", f->type); in fimc_m2m_s_fmt_mplane()
436 v4l2_err(&fimc->m2m.vfd, in fimc_m2m_try_selection()
511 v4l2_err(&fimc->m2m.vfd, "Out of scaler range\n"); in fimc_m2m_s_selection()
625 v4l2_fh_init(&ctx->fh, &fimc->m2m.vfd); in fimc_m2m_open()
717 struct video_device *vfd = &fimc->m2m.vfd; in fimc_register_m2m_device() local
722 memset(vfd, 0, sizeof(*vfd)); in fimc_register_m2m_device()
723 vfd->fops = &fimc_m2m_fops; in fimc_register_m2m_device()
724 vfd->ioctl_ops = &fimc_m2m_ioctl_ops; in fimc_register_m2m_device()
725 vfd->v4l2_dev = v4l2_dev; in fimc_register_m2m_device()
726 vfd->minor = -1; in fimc_register_m2m_device()
[all …]
/Linux-v5.15/drivers/media/common/saa7146/
Dsaa7146_fops.c588 int saa7146_register_device(struct video_device *vfd, struct saa7146_dev *dev, in saa7146_register_device() argument
596 vfd->fops = &video_fops; in saa7146_register_device()
598 vfd->ioctl_ops = &dev->ext_vv_data->vid_ops; in saa7146_register_device()
600 vfd->ioctl_ops = &dev->ext_vv_data->vbi_ops; in saa7146_register_device()
601 vfd->release = video_device_release_empty; in saa7146_register_device()
602 vfd->lock = &dev->v4l2_lock; in saa7146_register_device()
603 vfd->v4l2_dev = &dev->v4l2_dev; in saa7146_register_device()
604 vfd->tvnorms = 0; in saa7146_register_device()
606 vfd->tvnorms |= dev->ext_vv_data->stds[i].id; in saa7146_register_device()
607 strscpy(vfd->name, name, sizeof(vfd->name)); in saa7146_register_device()
[all …]
/Linux-v5.15/drivers/staging/media/sunxi/cedrus/
Dcedrus.c365 struct video_device *vfd; in cedrus_probe() local
372 dev->vfd = cedrus_video_device; in cedrus_probe()
395 vfd = &dev->vfd; in cedrus_probe()
396 vfd->lock = &dev->dev_mutex; in cedrus_probe()
397 vfd->v4l2_dev = &dev->v4l2_dev; in cedrus_probe()
399 snprintf(vfd->name, sizeof(vfd->name), "%s", cedrus_video_device.name); in cedrus_probe()
400 video_set_drvdata(vfd, dev); in cedrus_probe()
420 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in cedrus_probe()
427 "Device registered as /dev/video%d\n", vfd->num); in cedrus_probe()
429 ret = v4l2_m2m_register_media_controller(dev->m2m_dev, vfd, in cedrus_probe()
[all …]
/Linux-v5.15/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()
1298 solo_enc->vfd = video_device_alloc(); in solo_enc_alloc()
1299 if (!solo_enc->vfd) in solo_enc_alloc()
1302 *solo_enc->vfd = solo_enc_template; in solo_enc_alloc()
1303 solo_enc->vfd->v4l2_dev = &solo_dev->v4l2_dev; in solo_enc_alloc()
1304 solo_enc->vfd->ctrl_handler = hdl; in solo_enc_alloc()
1305 solo_enc->vfd->queue = &solo_enc->vidq; in solo_enc_alloc()
1306 solo_enc->vfd->lock = &solo_enc->lock; in solo_enc_alloc()
1307 video_set_drvdata(solo_enc->vfd, solo_enc); in solo_enc_alloc()
[all …]
/Linux-v5.15/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.15/drivers/media/platform/ti-vpe/
Dcal-video.c918 struct video_device *vfd = &ctx->vdev; in cal_ctx_v4l2_register() local
944 ret = video_register_device(vfd, VFL_TYPE_VIDEO, cal_video_nr); in cal_ctx_v4l2_register()
952 &vfd->entity, 0, in cal_ctx_v4l2_register()
958 video_unregister_device(vfd); in cal_ctx_v4l2_register()
963 video_device_node_name(vfd)); in cal_ctx_v4l2_register()
978 struct video_device *vfd = &ctx->vdev; in cal_ctx_v4l2_init() local
1004 vfd->fops = &cal_fops; in cal_ctx_v4l2_init()
1005 vfd->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING in cal_ctx_v4l2_init()
1007 vfd->v4l2_dev = &ctx->cal->v4l2_dev; in cal_ctx_v4l2_init()
1008 vfd->queue = q; in cal_ctx_v4l2_init()
[all …]
/Linux-v5.15/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.15/drivers/media/platform/s5p-g2d/
Dg2d.c625 struct video_device *vfd; in g2d_probe() local
690 vfd = video_device_alloc(); in g2d_probe()
691 if (!vfd) { in g2d_probe()
696 *vfd = g2d_videodev; in g2d_probe()
697 set_bit(V4L2_FL_QUIRK_INVERTED_CROP, &vfd->flags); in g2d_probe()
698 vfd->lock = &dev->mutex; in g2d_probe()
699 vfd->v4l2_dev = &dev->v4l2_dev; in g2d_probe()
700 vfd->device_caps = V4L2_CAP_VIDEO_M2M | V4L2_CAP_STREAMING; in g2d_probe()
719 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in g2d_probe()
724 video_set_drvdata(vfd, dev); in g2d_probe()
[all …]
/Linux-v5.15/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.15/drivers/staging/media/hantro/
Dhantro_drv.c744 struct video_device *vfd; in hantro_add_func() local
756 vfd = &func->vdev; in hantro_add_func()
757 vfd->fops = &hantro_fops; in hantro_add_func()
758 vfd->release = video_device_release_empty; in hantro_add_func()
759 vfd->lock = &vpu->vpu_mutex; in hantro_add_func()
760 vfd->v4l2_dev = &vpu->v4l2_dev; in hantro_add_func()
761 vfd->vfl_dir = VFL_DIR_M2M; in hantro_add_func()
762 vfd->device_caps = V4L2_CAP_STREAMING | V4L2_CAP_VIDEO_M2M_MPLANE; in hantro_add_func()
763 vfd->ioctl_ops = &hantro_ioctl_ops; in hantro_add_func()
764 snprintf(vfd->name, sizeof(vfd->name), "%s-%s", match->compatible, in hantro_add_func()
[all …]
/Linux-v5.15/drivers/media/test-drivers/vicodec/
Dvicodec-core.c98 struct video_device vfd; member
1823 struct video_device *vfd = video_devdata(file); in vicodec_open() local
1831 if (mutex_lock_interruptible(vfd->lock)) in vicodec_open()
1839 if (vfd == &dev->stateful_enc.vfd) in vicodec_open()
1841 else if (vfd == &dev->stateless_dec.vfd) in vicodec_open()
1927 mutex_unlock(vfd->lock); in vicodec_open()
1933 struct video_device *vfd = video_devdata(file); in vicodec_release() local
1936 mutex_lock(vfd->lock); in vicodec_release()
1938 mutex_unlock(vfd->lock); in vicodec_release()
2034 struct video_device *vfd; in register_instance() local
[all …]
/Linux-v5.15/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()
906 ret = video_register_device(vfd, VFL_TYPE_VIDEO, -1); in rga_probe()
913 vfd->name, video_device_node_name(vfd)); in rga_probe()
[all …]
/Linux-v5.15/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.15/drivers/media/platform/meson/ge2d/
Dge2d.c88 struct video_device *vfd; member
927 struct video_device *vfd; in ge2d_probe() local
988 vfd = video_device_alloc(); in ge2d_probe()
989 if (!vfd) { in ge2d_probe()
995 *vfd = ge2d_videodev; in ge2d_probe()
996 vfd->lock = &ge2d->mutex; in ge2d_probe()
997 vfd->v4l2_dev = &ge2d->v4l2_dev; in ge2d_probe()
999 video_set_drvdata(vfd, ge2d); in ge2d_probe()
1000 ge2d->vfd = vfd; in ge2d_probe()
1010 ret = video_register_device(vfd, VFL_TYPE_VIDEO, -1); in ge2d_probe()
[all …]
/Linux-v5.15/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.15/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()
870 vfd = &dev->vfd; in deinterlace_probe()
871 vfd->lock = &dev->dev_mutex; in deinterlace_probe()
872 vfd->v4l2_dev = &dev->v4l2_dev; in deinterlace_probe()
874 snprintf(vfd->name, sizeof(vfd->name), "%s", in deinterlace_probe()
876 video_set_drvdata(vfd, dev); in deinterlace_probe()
878 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in deinterlace_probe()
886 "Device registered as /dev/video%d\n", vfd->num); in deinterlace_probe()
904 video_unregister_device(&dev->vfd); in deinterlace_probe()
[all …]
/Linux-v5.15/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.15/drivers/media/test-drivers/
Dvim2m.c192 struct video_device vfd; member
1261 struct vim2m_dev *dev = container_of(vdev, struct vim2m_dev, vfd); in vim2m_device_release()
1304 struct video_device *vfd; in vim2m_probe() local
1318 dev->vfd = vim2m_videodev; in vim2m_probe()
1319 vfd = &dev->vfd; in vim2m_probe()
1320 vfd->lock = &dev->dev_mutex; in vim2m_probe()
1321 vfd->v4l2_dev = &dev->v4l2_dev; in vim2m_probe()
1323 video_set_drvdata(vfd, dev); in vim2m_probe()
1325 "Device registered as /dev/video%d\n", vfd->num); in vim2m_probe()
1347 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in vim2m_probe()
[all …]

123