Home
last modified time | relevance | path

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

1234

/linux-6.12.1/drivers/media/test-drivers/vivid/
Dvivid-core.c1426 struct video_device *vfd; in vivid_create_devnodes() local
1430 vfd = &dev->vid_cap_dev; in vivid_create_devnodes()
1431 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes()
1433 vfd->fops = &vivid_fops; in vivid_create_devnodes()
1434 vfd->ioctl_ops = &vivid_ioctl_ops; in vivid_create_devnodes()
1435 vfd->device_caps = dev->vid_cap_caps; in vivid_create_devnodes()
1436 vfd->release = video_device_release_empty; in vivid_create_devnodes()
1437 vfd->v4l2_dev = &dev->v4l2_dev; in vivid_create_devnodes()
1438 vfd->queue = &dev->vb_vid_cap_q; in vivid_create_devnodes()
1439 vfd->tvnorms = tvnorms_cap; in vivid_create_devnodes()
[all …]
/linux-6.12.1/drivers/media/common/saa7146/
Dsaa7146_fops.c343 int saa7146_register_device(struct video_device *vfd, struct saa7146_dev *dev, in saa7146_register_device() argument
352 vfd->fops = &video_fops; in saa7146_register_device()
354 vfd->ioctl_ops = &dev->ext_vv_data->vid_ops; in saa7146_register_device()
357 vfd->ioctl_ops = &dev->ext_vv_data->vbi_ops; in saa7146_register_device()
360 vfd->release = video_device_release_empty; in saa7146_register_device()
361 vfd->lock = &dev->v4l2_lock; in saa7146_register_device()
362 vfd->v4l2_dev = &dev->v4l2_dev; in saa7146_register_device()
363 vfd->tvnorms = 0; in saa7146_register_device()
365 vfd->tvnorms |= dev->ext_vv_data->stds[i].id; in saa7146_register_device()
366 strscpy(vfd->name, name, sizeof(vfd->name)); in saa7146_register_device()
[all …]
/linux-6.12.1/drivers/staging/media/imx/
Dimx-media-dev-common.c86 vdev->vfd->entity.name, entity->name, srcpad->index); in imx_media_add_vdev_to_pad()
158 link = list_first_entry(&vdev->vfd->entity.links, in imx_media_create_pad_vdev_lists()
197 struct video_device *vfd, in imx_media_inherit_controls() argument
207 vfd->entity.name, sd->entity.name); in imx_media_inherit_controls()
209 ret = v4l2_ctrl_add_handler(vfd->ctrl_handler, in imx_media_inherit_controls()
227 ret = imx_media_inherit_controls(imxmd, vfd, pad->entity); in imx_media_inherit_controls()
243 struct video_device *vfd; in imx_media_link_notify() local
274 vfd = pad_vdev->vdev->vfd; in imx_media_link_notify()
275 if (!vfd->ctrl_handler) in imx_media_link_notify()
279 vfd->entity.name); in imx_media_link_notify()
[all …]
Dimx-media-capture.c784 struct video_device *vfd = priv->vdev.vfd; in capture_open() local
796 ret = v4l2_pipeline_pm_get(&vfd->entity); in capture_open()
808 struct video_device *vfd = priv->vdev.vfd; in capture_release() local
818 v4l2_pipeline_pm_put(&vfd->entity); in capture_release()
913 struct video_device *vfd = vdev->vfd; in imx_media_capture_device_register() local
919 vfd->v4l2_dev = v4l2_dev; in imx_media_capture_device_register()
927 ret = video_register_device(vfd, VFL_TYPE_VIDEO, -1); in imx_media_capture_device_register()
933 dev_info(priv->dev, "Registered %s as /dev/%s\n", vfd->name, in imx_media_capture_device_register()
934 video_device_node_name(vfd)); in imx_media_capture_device_register()
940 &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()
851 struct video_device *vfd = vdev->vfd; in imx_media_csc_scaler_device_register() local
854 vfd->v4l2_dev = &priv->md->v4l2_dev; in imx_media_csc_scaler_device_register()
856 ret = video_register_device(vfd, VFL_TYPE_VIDEO, -1); in imx_media_csc_scaler_device_register()
858 v4l2_err(vfd->v4l2_dev, "Failed to register video device\n"); in imx_media_csc_scaler_device_register()
862 v4l2_info(vfd->v4l2_dev, "Registered %s as /dev/%s\n", vfd->name, in imx_media_csc_scaler_device_register()
863 video_device_node_name(vfd)); in imx_media_csc_scaler_device_register()
[all …]
/linux-6.12.1/drivers/media/v4l2-core/
Dv4l2-ioctl.c35 #define is_valid_ioctl(vfd, cmd) test_bit(_IOC_NR(cmd), (vfd)->valid_ioctls) argument
930 struct video_device *vfd = video_devdata(file); in check_fmt() local
931 const struct v4l2_ioctl_ops *ops = vfd->ioctl_ops; in check_fmt()
932 bool is_vid = vfd->vfl_type == VFL_TYPE_VIDEO && in check_fmt()
933 (vfd->device_caps & vid_caps); in check_fmt()
934 bool is_vbi = vfd->vfl_type == VFL_TYPE_VBI; in check_fmt()
935 bool is_sdr = vfd->vfl_type == VFL_TYPE_SDR; in check_fmt()
936 bool is_tch = vfd->vfl_type == VFL_TYPE_TOUCH; in check_fmt()
937 bool is_meta = vfd->vfl_type == VFL_TYPE_VIDEO && in check_fmt()
938 (vfd->device_caps & meta_caps); in check_fmt()
[all …]
/linux-6.12.1/drivers/media/platform/samsung/exynos4-is/
Dfimc-m2m.c356 v4l2_err(&fimc->m2m.vfd, "queue (%d) busy\n", f->type); in fimc_m2m_s_fmt_mplane()
437 v4l2_err(&fimc->m2m.vfd, in fimc_m2m_try_selection()
512 v4l2_err(&fimc->m2m.vfd, "Out of scaler range\n"); in fimc_m2m_s_selection()
626 v4l2_fh_init(&ctx->fh, &fimc->m2m.vfd); in fimc_m2m_open()
718 struct video_device *vfd = &fimc->m2m.vfd; in fimc_register_m2m_device() local
723 memset(vfd, 0, sizeof(*vfd)); in fimc_register_m2m_device()
724 vfd->fops = &fimc_m2m_fops; in fimc_register_m2m_device()
725 vfd->ioctl_ops = &fimc_m2m_ioctl_ops; in fimc_register_m2m_device()
726 vfd->v4l2_dev = v4l2_dev; in fimc_register_m2m_device()
727 vfd->minor = -1; in fimc_register_m2m_device()
[all …]
/linux-6.12.1/drivers/media/platform/amphion/
Dvpu_v4l2.c749 v4l2_fh_init(&inst->fh, func->vfd); in vpu_v4l2_open()
809 struct video_device *vfd; in vpu_add_func() local
815 if (func->vfd) in vpu_add_func()
821 func->vfd = NULL; in vpu_add_func()
825 vfd = video_device_alloc(); in vpu_add_func()
826 if (!vfd) { in vpu_add_func()
831 vfd->release = video_device_release; in vpu_add_func()
832 vfd->vfl_dir = VFL_DIR_M2M; in vpu_add_func()
833 vfd->v4l2_dev = &vpu->v4l2_dev; in vpu_add_func()
834 vfd->device_caps = V4L2_CAP_VIDEO_M2M_MPLANE | V4L2_CAP_STREAMING; in vpu_add_func()
[all …]
/linux-6.12.1/drivers/media/test-drivers/visl/
Dvisl-core.c271 struct visl_dev *dev = container_of(vdev, struct visl_dev, vfd); in visl_device_release()
425 struct video_device *vfd; in visl_probe() local
439 dev->vfd = visl_videodev; in visl_probe()
440 vfd = &dev->vfd; in visl_probe()
441 vfd->lock = &dev->dev_mutex; in visl_probe()
442 vfd->v4l2_dev = &dev->v4l2_dev; in visl_probe()
444 video_set_drvdata(vfd, dev); in visl_probe()
464 ret = video_register_device(vfd, VFL_TYPE_VIDEO, -1); in visl_probe()
471 "Device registered as /dev/video%d\n", vfd->num); in visl_probe()
473 ret = v4l2_m2m_register_media_controller(dev->m2m_dev, vfd, in visl_probe()
[all …]
/linux-6.12.1/drivers/media/pci/solo6x10/
Dsolo6x10-v4l2.c424 input->std = solo_dev->vfd->tvnorms; in solo_enum_input()
647 solo_dev->vfd = video_device_alloc(); in solo_v4l2_init()
648 if (!solo_dev->vfd) in solo_v4l2_init()
651 *solo_dev->vfd = solo_v4l2_template; in solo_v4l2_init()
652 solo_dev->vfd->v4l2_dev = &solo_dev->v4l2_dev; in solo_v4l2_init()
653 solo_dev->vfd->queue = &solo_dev->vidq; in solo_v4l2_init()
654 solo_dev->vfd->lock = &solo_dev->lock; in solo_v4l2_init()
661 solo_dev->vfd->ctrl_handler = &solo_dev->disp_hdl; in solo_v4l2_init()
663 video_set_drvdata(solo_dev->vfd, solo_dev); in solo_v4l2_init()
691 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()
786 input->std = solo_enc->vfd->tvnorms; in solo_enc_enum_input()
1295 solo_enc->vfd = video_device_alloc(); in solo_enc_alloc()
1296 if (!solo_enc->vfd) in solo_enc_alloc()
1299 *solo_enc->vfd = solo_enc_template; in solo_enc_alloc()
1300 solo_enc->vfd->v4l2_dev = &solo_dev->v4l2_dev; in solo_enc_alloc()
1301 solo_enc->vfd->ctrl_handler = hdl; in solo_enc_alloc()
1302 solo_enc->vfd->queue = &solo_enc->vidq; in solo_enc_alloc()
1303 solo_enc->vfd->lock = &solo_enc->lock; in solo_enc_alloc()
1304 video_set_drvdata(solo_enc->vfd, solo_enc); in solo_enc_alloc()
[all …]
/linux-6.12.1/drivers/staging/media/sunxi/cedrus/
Dcedrus.c455 struct video_device *vfd; in cedrus_probe() local
464 dev->vfd = cedrus_video_device; in cedrus_probe()
484 vfd = &dev->vfd; in cedrus_probe()
485 vfd->lock = &dev->dev_mutex; in cedrus_probe()
486 vfd->v4l2_dev = &dev->v4l2_dev; in cedrus_probe()
488 snprintf(vfd->name, sizeof(vfd->name), "%s", cedrus_video_device.name); in cedrus_probe()
489 video_set_drvdata(vfd, dev); in cedrus_probe()
509 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in cedrus_probe()
516 "Device registered as /dev/video%d\n", vfd->num); in cedrus_probe()
518 ret = v4l2_m2m_register_media_controller(dev->m2m_dev, vfd, in cedrus_probe()
[all …]
/linux-6.12.1/drivers/media/platform/ti/omap/
Domap_vout.c577 strscpy(cap->card, vout->vfd->name, sizeof(cap->card)); in vidioc_querycap()
1311 struct video_device *vfd; in omap_vout_setup_video_data() local
1374 vfd = vout->vfd = video_device_alloc(); in omap_vout_setup_video_data()
1376 if (!vfd) { in omap_vout_setup_video_data()
1382 vfd->ctrl_handler = hdl; in omap_vout_setup_video_data()
1383 vfd->release = video_device_release; in omap_vout_setup_video_data()
1384 vfd->ioctl_ops = &vout_ioctl_ops; in omap_vout_setup_video_data()
1386 strscpy(vfd->name, VOUT_NAME, sizeof(vfd->name)); in omap_vout_setup_video_data()
1388 vfd->fops = &omap_vout_fops; in omap_vout_setup_video_data()
1389 vfd->v4l2_dev = &vout->vid_dev->v4l2_dev; in omap_vout_setup_video_data()
[all …]
/linux-6.12.1/drivers/media/platform/verisilicon/
Dhantro_drv.c889 struct video_device *vfd; in hantro_add_func() local
901 vfd = &func->vdev; in hantro_add_func()
902 vfd->fops = &hantro_fops; in hantro_add_func()
903 vfd->release = video_device_release_empty; in hantro_add_func()
904 vfd->lock = &vpu->vpu_mutex; in hantro_add_func()
905 vfd->v4l2_dev = &vpu->v4l2_dev; in hantro_add_func()
906 vfd->vfl_dir = VFL_DIR_M2M; in hantro_add_func()
907 vfd->device_caps = V4L2_CAP_STREAMING | V4L2_CAP_VIDEO_M2M_MPLANE; in hantro_add_func()
908 vfd->ioctl_ops = &hantro_ioctl_ops; in hantro_add_func()
909 strscpy(vfd->name, match->compatible, sizeof(vfd->name)); in hantro_add_func()
[all …]
/linux-6.12.1/drivers/media/platform/ti/cal/
Dcal-video.c935 struct video_device *vfd = &ctx->vdev; in cal_ctx_v4l2_register() local
961 ret = video_register_device(vfd, VFL_TYPE_VIDEO, cal_video_nr); in cal_ctx_v4l2_register()
969 &vfd->entity, 0, in cal_ctx_v4l2_register()
975 video_unregister_device(vfd); in cal_ctx_v4l2_register()
980 video_device_node_name(vfd)); in cal_ctx_v4l2_register()
995 struct video_device *vfd = &ctx->vdev; in cal_ctx_v4l2_init() local
1021 vfd->fops = &cal_fops; in cal_ctx_v4l2_init()
1022 vfd->device_caps = V4L2_CAP_VIDEO_CAPTURE | V4L2_CAP_STREAMING in cal_ctx_v4l2_init()
1024 vfd->v4l2_dev = &ctx->cal->v4l2_dev; in cal_ctx_v4l2_init()
1025 vfd->queue = q; in cal_ctx_v4l2_init()
[all …]
/linux-6.12.1/drivers/media/platform/samsung/s5p-mfc/
Ds5p_mfc.c1288 struct video_device *vfd; in s5p_mfc_probe() local
1355 vfd = video_device_alloc(); in s5p_mfc_probe()
1356 if (!vfd) { in s5p_mfc_probe()
1361 vfd->fops = &s5p_mfc_fops; in s5p_mfc_probe()
1362 vfd->ioctl_ops = get_dec_v4l2_ioctl_ops(); in s5p_mfc_probe()
1363 vfd->release = video_device_release; in s5p_mfc_probe()
1364 vfd->lock = &dev->mfc_mutex; in s5p_mfc_probe()
1365 vfd->v4l2_dev = &dev->v4l2_dev; in s5p_mfc_probe()
1366 vfd->vfl_dir = VFL_DIR_M2M; in s5p_mfc_probe()
1367 vfd->device_caps = V4L2_CAP_VIDEO_M2M_MPLANE | V4L2_CAP_STREAMING; in s5p_mfc_probe()
[all …]
/linux-6.12.1/drivers/media/platform/st/stm32/dma2d/
Ddma2d.c605 struct video_device *vfd; in dma2d_probe() local
650 vfd = video_device_alloc(); in dma2d_probe()
651 if (!vfd) { in dma2d_probe()
657 *vfd = dma2d_videodev; in dma2d_probe()
658 vfd->lock = &dev->mutex; in dma2d_probe()
659 vfd->v4l2_dev = &dev->v4l2_dev; in dma2d_probe()
660 vfd->device_caps = V4L2_CAP_VIDEO_M2M | V4L2_CAP_STREAMING; in dma2d_probe()
670 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in dma2d_probe()
676 video_set_drvdata(vfd, dev); in dma2d_probe()
677 dev->vfd = vfd; in dma2d_probe()
[all …]
/linux-6.12.1/drivers/media/platform/samsung/s5p-g2d/
Dg2d.c625 struct video_device *vfd; in g2d_probe() local
684 vfd = video_device_alloc(); in g2d_probe()
685 if (!vfd) { in g2d_probe()
690 *vfd = g2d_videodev; in g2d_probe()
691 set_bit(V4L2_FL_QUIRK_INVERTED_CROP, &vfd->flags); in g2d_probe()
692 vfd->lock = &dev->mutex; in g2d_probe()
693 vfd->v4l2_dev = &dev->v4l2_dev; in g2d_probe()
694 vfd->device_caps = V4L2_CAP_VIDEO_M2M | V4L2_CAP_STREAMING; in g2d_probe()
713 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in g2d_probe()
718 video_set_drvdata(vfd, dev); in g2d_probe()
[all …]
/linux-6.12.1/drivers/media/platform/nxp/
Dmx2_emmaprp.c198 struct video_device *vfd; member
806 struct video_device *vfd; in emmaprp_probe() local
834 vfd = video_device_alloc(); in emmaprp_probe()
835 if (!vfd) { in emmaprp_probe()
841 *vfd = emmaprp_videodev; in emmaprp_probe()
842 vfd->lock = &pcdev->dev_mutex; in emmaprp_probe()
843 vfd->v4l2_dev = &pcdev->v4l2_dev; in emmaprp_probe()
845 video_set_drvdata(vfd, pcdev); in emmaprp_probe()
846 pcdev->vfd = vfd; in emmaprp_probe()
848 " Device registered as /dev/video%d\n", vfd->num); in emmaprp_probe()
[all …]
/linux-6.12.1/drivers/media/test-drivers/vicodec/
Dvicodec-core.c98 struct video_device vfd; member
1825 struct video_device *vfd = video_devdata(file); in vicodec_open() local
1833 if (mutex_lock_interruptible(vfd->lock)) in vicodec_open()
1841 if (vfd == &dev->stateful_enc.vfd) in vicodec_open()
1843 else if (vfd == &dev->stateless_dec.vfd) in vicodec_open()
1929 mutex_unlock(vfd->lock); in vicodec_open()
1935 struct video_device *vfd = video_devdata(file); in vicodec_release() local
1938 mutex_lock(vfd->lock); in vicodec_release()
1940 mutex_unlock(vfd->lock); in vicodec_release()
2036 struct video_device *vfd; in register_instance() local
[all …]
/linux-6.12.1/drivers/media/platform/nxp/dw100/
Ddw100.c69 struct video_device vfd; member
1482 struct video_device *vfd = &dw_dev->vfd; in dw100_init_video_device() local
1484 vfd->vfl_dir = VFL_DIR_M2M; in dw100_init_video_device()
1485 vfd->fops = &dw100_fops; in dw100_init_video_device()
1486 vfd->device_caps = V4L2_CAP_VIDEO_M2M_MPLANE | V4L2_CAP_STREAMING; in dw100_init_video_device()
1487 vfd->ioctl_ops = &dw100_ioctl_ops; in dw100_init_video_device()
1488 vfd->minor = -1; in dw100_init_video_device()
1489 vfd->release = video_device_release_empty; in dw100_init_video_device()
1490 vfd->v4l2_dev = &dw_dev->v4l2_dev; in dw100_init_video_device()
1491 vfd->lock = &dw_dev->vfd_mutex; in dw100_init_video_device()
[all …]
/linux-6.12.1/drivers/media/platform/rockchip/rga/
Drga.c804 struct video_device *vfd; in rga_probe() local
853 vfd = video_device_alloc(); in rga_probe()
854 if (!vfd) { in rga_probe()
859 *vfd = rga_videodev; in rga_probe()
860 vfd->lock = &rga->mutex; in rga_probe()
861 vfd->v4l2_dev = &rga->v4l2_dev; in rga_probe()
863 video_set_drvdata(vfd, rga); in rga_probe()
864 rga->vfd = vfd; in rga_probe()
898 ret = video_register_device(vfd, VFL_TYPE_VIDEO, -1); in rga_probe()
905 vfd->name, video_device_node_name(vfd)); in rga_probe()
[all …]
/linux-6.12.1/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-6.12.1/drivers/media/platform/samsung/s3c-camif/
Dcamif-capture.c1104 struct video_device *vfd = &vp->vdev; in s3c_camif_register_video_node() local
1108 memset(vfd, 0, sizeof(*vfd)); in s3c_camif_register_video_node()
1109 snprintf(vfd->name, sizeof(vfd->name), "camif-%s", in s3c_camif_register_video_node()
1112 vfd->fops = &s3c_camif_fops; in s3c_camif_register_video_node()
1113 vfd->ioctl_ops = &s3c_camif_ioctl_ops; in s3c_camif_register_video_node()
1114 vfd->v4l2_dev = &camif->v4l2_dev; in s3c_camif_register_video_node()
1115 vfd->minor = -1; in s3c_camif_register_video_node()
1116 vfd->release = video_device_release_empty; in s3c_camif_register_video_node()
1117 vfd->lock = &camif->lock; in s3c_camif_register_video_node()
1139 ret = media_entity_pads_init(&vfd->entity, 1, &vp->pad); in s3c_camif_register_video_node()
[all …]
/linux-6.12.1/drivers/media/platform/amlogic/meson-ge2d/
Dge2d.c88 struct video_device *vfd; member
923 struct video_device *vfd; in ge2d_probe() local
982 vfd = video_device_alloc(); in ge2d_probe()
983 if (!vfd) { in ge2d_probe()
989 *vfd = ge2d_videodev; in ge2d_probe()
990 vfd->lock = &ge2d->mutex; in ge2d_probe()
991 vfd->v4l2_dev = &ge2d->v4l2_dev; in ge2d_probe()
993 video_set_drvdata(vfd, ge2d); in ge2d_probe()
994 ge2d->vfd = vfd; in ge2d_probe()
1004 ret = video_register_device(vfd, VFL_TYPE_VIDEO, -1); in ge2d_probe()
[all …]

1234