Home
last modified time | relevance | path

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

1234

/linux-6.3-rc2/drivers/media/test-drivers/vivid/
A Dvivid-core.c1417 struct video_device *vfd; in vivid_create_devnodes() local
1422 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes()
1472 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes()
1525 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes()
1556 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes()
1588 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes()
1615 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes()
1634 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes()
1654 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes()
1683 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes()
[all …]
/linux-6.3-rc2/drivers/staging/media/imx/
A Dimx-media-dev-common.c212 struct video_device *vfd, in imx_media_inherit_controls() argument
222 vfd->entity.name, sd->entity.name); 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()
295 v4l2_ctrl_handler_free(vfd->ctrl_handler); in imx_media_link_notify()
301 vfd = pad_vdev->vdev->vfd; in imx_media_link_notify()
302 if (!vfd->ctrl_handler) in imx_media_link_notify()
306 vfd->entity.name); in imx_media_link_notify()
[all …]
A Dimx-media-capture.c778 struct video_device *vfd = priv->vdev.vfd; in capture_open() local
802 struct video_device *vfd = priv->vdev.vfd; in capture_release() local
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()
951 struct video_device *vfd = priv->vdev.vfd; in imx_media_capture_device_unregister() local
963 struct video_device *vfd; in imx_media_capture_device_init() local
982 if (!vfd) in imx_media_capture_device_init()
988 vfd->minor = -1; in imx_media_capture_device_init()
995 vfd->queue = &priv->q; in imx_media_capture_device_init()
997 snprintf(vfd->name, sizeof(vfd->name), "%s capture", src_sd->name); in imx_media_capture_device_init()
[all …]
A Dimx-media-csc-scaler.c850 struct video_device *vfd = vdev->vfd; in imx_media_csc_scaler_device_register() local
861 v4l2_info(vfd->v4l2_dev, "Registered %s as /dev/%s\n", vfd->name, in imx_media_csc_scaler_device_register()
870 struct video_device *vfd = priv->vdev.vfd; in imx_media_csc_scaler_device_unregister() local
872 video_unregister_device(vfd); in imx_media_csc_scaler_device_unregister()
879 struct video_device *vfd; in imx_media_csc_scaler_device_init() local
891 vfd = video_device_alloc(); in imx_media_csc_scaler_device_init()
892 if (!vfd) { in imx_media_csc_scaler_device_init()
898 vfd->lock = &priv->mutex; in imx_media_csc_scaler_device_init()
899 priv->vdev.vfd = vfd; in imx_media_csc_scaler_device_init()
903 video_set_drvdata(vfd, priv); in imx_media_csc_scaler_device_init()
[all …]
/linux-6.3-rc2/drivers/media/v4l2-core/
A Dv4l2-ioctl.c35 #define is_valid_ioctl(vfd, cmd) test_bit(_IOC_NR(cmd), (vfd)->valid_ioctls) argument
1097 vfd->dev_parent); in v4l_querycap()
2051 *p = vfd->tvnorms; in v4l_querystd()
2330 vfd, vfd->v4l2_dev->mdev, p); in v4l_g_ext_ctrls()
2333 vfd, vfd->v4l2_dev->mdev, p); in v4l_g_ext_ctrls()
2351 vfd, vfd->v4l2_dev->mdev, p); in v4l_s_ext_ctrls()
2354 vfd, vfd->v4l2_dev->mdev, p); in v4l_s_ext_ctrls()
2372 vfd, vfd->v4l2_dev->mdev, p); in v4l_try_ext_ctrls()
2375 vfd, vfd->v4l2_dev->mdev, p); in v4l_try_ext_ctrls()
2550 if (vfd->v4l2_dev) in v4l_log_status()
[all …]
/linux-6.3-rc2/drivers/media/platform/samsung/exynos4-is/
A Dfimc-m2m.c436 v4l2_err(&fimc->m2m.vfd, in fimc_m2m_try_selection()
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()
725 vfd->v4l2_dev = v4l2_dev; in fimc_register_m2m_device()
726 vfd->minor = -1; in fimc_register_m2m_device()
728 vfd->lock = &fimc->lock; in fimc_register_m2m_device()
729 vfd->vfl_dir = VFL_DIR_M2M; in fimc_register_m2m_device()
733 snprintf(vfd->name, sizeof(vfd->name), "fimc.%d.m2m", fimc->id); in fimc_register_m2m_device()
734 video_set_drvdata(vfd, fimc); in fimc_register_m2m_device()
[all …]
/linux-6.3-rc2/drivers/media/platform/amphion/
A Dvpu_v4l2.c786 struct video_device *vfd; in vpu_add_func() local
792 if (func->vfd) in vpu_add_func()
798 func->vfd = NULL; in vpu_add_func()
802 vfd = video_device_alloc(); in vpu_add_func()
803 if (!vfd) { in vpu_add_func()
813 strscpy(vfd->name, "amphion-vpu-encoder", sizeof(vfd->name)); in vpu_add_func()
817 strscpy(vfd->name, "amphion-vpu-decoder", sizeof(vfd->name)); in vpu_add_func()
829 func->vfd = vfd; in vpu_add_func()
836 func->vfd = NULL; in vpu_add_func()
853 if (func->vfd) { in vpu_remove_func()
[all …]
/linux-6.3-rc2/drivers/media/test-drivers/visl/
A Dvisl-core.c399 struct video_device *vfd; in visl_probe() local
413 dev->vfd = visl_videodev; in visl_probe()
414 vfd = &dev->vfd; in visl_probe()
415 vfd->lock = &dev->dev_mutex; in visl_probe()
416 vfd->v4l2_dev = &dev->v4l2_dev; in visl_probe()
418 video_set_drvdata(vfd, dev); in visl_probe()
438 ret = video_register_device(vfd, VFL_TYPE_VIDEO, -1); in visl_probe()
445 "Device registered as /dev/video%d\n", vfd->num); in visl_probe()
447 ret = v4l2_m2m_register_media_controller(dev->m2m_dev, vfd, in visl_probe()
470 video_unregister_device(&dev->vfd); in visl_probe()
[all …]
/linux-6.3-rc2/drivers/media/common/saa7146/
A Dsaa7146_fops.c599 vfd->fops = &video_fops; in saa7146_register_device()
604 vfd->release = video_device_release_empty; in saa7146_register_device()
605 vfd->lock = &dev->v4l2_lock; in saa7146_register_device()
606 vfd->v4l2_dev = &dev->v4l2_dev; in saa7146_register_device()
607 vfd->tvnorms = 0; in saa7146_register_device()
610 strscpy(vfd->name, name, sizeof(vfd->name)); in saa7146_register_device()
615 vfd->device_caps &= in saa7146_register_device()
618 vfd->device_caps &= in saa7146_register_device()
620 video_set_drvdata(vfd, dev); in saa7146_register_device()
629 dev->name, video_device_node_name(vfd)); in saa7146_register_device()
[all …]
/linux-6.3-rc2/drivers/media/pci/solo6x10/
A 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()
695 snprintf(solo_dev->vfd->name, sizeof(solo_dev->vfd->name), "%s (%i)", in solo_v4l2_init()
696 SOLO6X10_NAME, solo_dev->vfd->num); in solo_v4l2_init()
699 solo_dev->vfd->num, in solo_v4l2_init()
705 video_device_release(solo_dev->vfd); in solo_v4l2_init()
707 solo_dev->vfd = NULL; in solo_v4l2_init()
713 if (solo_dev->vfd == NULL) in solo_v4l2_exit()
[all …]
A 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()
1301 solo_enc->vfd->ctrl_handler = hdl; in solo_enc_alloc()
1303 solo_enc->vfd->lock = &solo_enc->lock; in solo_enc_alloc()
1309 snprintf(solo_enc->vfd->name, sizeof(solo_enc->vfd->name), in solo_enc_alloc()
1311 solo_enc->vfd->num); in solo_enc_alloc()
1316 video_device_release(solo_enc->vfd); in solo_enc_alloc()
[all …]
/linux-6.3-rc2/drivers/staging/media/sunxi/cedrus/
A 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()
537 video_unregister_device(&dev->vfd); in cedrus_probe()
[all …]
/linux-6.3-rc2/drivers/media/platform/ti/omap/
A Domap_vout.c1373 vfd = vout->vfd = video_device_alloc(); in omap_vout_setup_video_data()
1375 if (!vfd) { in omap_vout_setup_video_data()
1381 vfd->ctrl_handler = hdl; in omap_vout_setup_video_data()
1385 strscpy(vfd->name, VOUT_NAME, sizeof(vfd->name)); in omap_vout_setup_video_data()
1390 vfd->minor = -1; in omap_vout_setup_video_data()
1407 vfd->queue = vq; in omap_vout_setup_video_data()
1504 vfd = vout->vfd; in omap_vout_create_video_devices()
1508 vfd->minor = -1; in omap_vout_create_video_devices()
1516 vfd->minor); in omap_vout_create_video_devices()
1542 vfd = vout->vfd; in omap_vout_cleanup_device()
[all …]
/linux-6.3-rc2/drivers/media/platform/ti/cal/
A Dcal-video.c952 &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()
1004 vfd->fops = &cal_fops; 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()
1009 snprintf(vfd->name, sizeof(vfd->name), "CAL output %u", ctx->dma_ctx); in cal_ctx_v4l2_init()
1012 vfd->lock = &ctx->mutex; in cal_ctx_v4l2_init()
1013 video_set_drvdata(vfd, ctx); in cal_ctx_v4l2_init()
1030 vfd->ctrl_handler = hdl; in cal_ctx_v4l2_init()
[all …]
/linux-6.3-rc2/drivers/media/platform/st/stm32/dma2d/
A Ddma2d.c605 struct video_device *vfd; in dma2d_probe() local
653 vfd = video_device_alloc(); in dma2d_probe()
654 if (!vfd) { in dma2d_probe()
660 *vfd = dma2d_videodev; in dma2d_probe()
661 vfd->lock = &dev->mutex; in dma2d_probe()
662 vfd->v4l2_dev = &dev->v4l2_dev; in dma2d_probe()
679 video_set_drvdata(vfd, dev); in dma2d_probe()
680 dev->vfd = vfd; in dma2d_probe()
682 vfd->num); in dma2d_probe()
688 video_device_release(vfd); in dma2d_probe()
[all …]
/linux-6.3-rc2/drivers/media/platform/samsung/s5p-mfc/
A Ds5p_mfc.c1284 struct video_device *vfd; in s5p_mfc_probe() local
1351 vfd = video_device_alloc(); in s5p_mfc_probe()
1352 if (!vfd) { in s5p_mfc_probe()
1357 vfd->fops = &s5p_mfc_fops; in s5p_mfc_probe()
1362 vfd->vfl_dir = VFL_DIR_M2M; in s5p_mfc_probe()
1365 snprintf(vfd->name, sizeof(vfd->name), "%s", S5P_MFC_DEC_NAME); in s5p_mfc_probe()
1366 dev->vfd_dec = vfd; in s5p_mfc_probe()
1371 if (!vfd) { in s5p_mfc_probe()
1376 vfd->fops = &s5p_mfc_fops; in s5p_mfc_probe()
1383 snprintf(vfd->name, sizeof(vfd->name), "%s", S5P_MFC_ENC_NAME); in s5p_mfc_probe()
[all …]
/linux-6.3-rc2/drivers/media/platform/samsung/s5p-g2d/
A 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()
692 vfd->lock = &dev->mutex; in g2d_probe()
693 vfd->v4l2_dev = &dev->v4l2_dev; in g2d_probe()
718 video_set_drvdata(vfd, dev); in g2d_probe()
719 dev->vfd = vfd; in g2d_probe()
721 vfd->num); in g2d_probe()
728 video_device_release(vfd); in g2d_probe()
[all …]
/linux-6.3-rc2/drivers/media/platform/verisilicon/
A Dhantro_drv.c790 struct video_device *vfd; in hantro_add_func() local
802 vfd = &func->vdev; in hantro_add_func()
803 vfd->fops = &hantro_fops; in hantro_add_func()
805 vfd->lock = &vpu->vpu_mutex; in hantro_add_func()
806 vfd->v4l2_dev = &vpu->v4l2_dev; in hantro_add_func()
807 vfd->vfl_dir = VFL_DIR_M2M; in hantro_add_func()
809 vfd->ioctl_ops = &hantro_ioctl_ops; in hantro_add_func()
810 snprintf(vfd->name, sizeof(vfd->name), "%s-%s", match->compatible, in hantro_add_func()
821 video_set_drvdata(vfd, vpu); in hantro_add_func()
837 vfd->num); in hantro_add_func()
[all …]
/linux-6.3-rc2/drivers/media/platform/nxp/
A 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()
882 video_device_release(vfd); in emmaprp_probe()
[all …]
/linux-6.3-rc2/drivers/media/test-drivers/vicodec/
A Dvicodec-core.c98 struct video_device vfd; member
1835 if (vfd == &dev->stateful_enc.vfd) in vicodec_open()
1837 else if (vfd == &dev->stateless_dec.vfd) in vicodec_open()
1923 mutex_unlock(vfd->lock); in vicodec_open()
1932 mutex_lock(vfd->lock); in vicodec_release()
1934 mutex_unlock(vfd->lock); in vicodec_release()
2030 struct video_device *vfd; in register_instance() local
2042 vfd = &dev_instance->vfd; in register_instance()
2045 strscpy(vfd->name, name, sizeof(vfd->name)); in register_instance()
2055 video_set_drvdata(vfd, dev); in register_instance()
[all …]
/linux-6.3-rc2/drivers/media/platform/rockchip/rga/
A Drga.c802 struct video_device *vfd; in rga_probe() local
845 vfd = video_device_alloc(); in rga_probe()
846 if (!vfd) { in rga_probe()
851 *vfd = rga_videodev; in rga_probe()
852 vfd->lock = &rga->mutex; in rga_probe()
853 vfd->v4l2_dev = &rga->v4l2_dev; in rga_probe()
855 video_set_drvdata(vfd, rga); in rga_probe()
856 rga->vfd = vfd; in rga_probe()
910 vfd->name, video_device_node_name(vfd)); in rga_probe()
924 video_device_release(vfd); in rga_probe()
[all …]
/linux-6.3-rc2/drivers/media/platform/nxp/dw100/
A 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()
1488 vfd->minor = -1; in dw100_init_video_device()
1491 vfd->lock = &dw_dev->vfd_mutex; in dw100_init_video_device()
1493 strscpy(vfd->name, DRV_NAME, sizeof(vfd->name)); in dw100_init_video_device()
1494 mutex_init(vfd->lock); in dw100_init_video_device()
1497 return vfd; in dw100_init_video_device()
1534 struct video_device *vfd; in dw100_probe() local
[all …]
/linux-6.3-rc2/drivers/media/platform/samsung/s3c-camif/
A Dcamif-capture.c1107 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()
1113 vfd->v4l2_dev = &camif->v4l2_dev; in s3c_camif_register_video_node()
1114 vfd->minor = -1; in s3c_camif_register_video_node()
1116 vfd->lock = &camif->lock; in s3c_camif_register_video_node()
1142 video_set_drvdata(vfd, vp); in s3c_camif_register_video_node()
1166 vfd->name, video_device_node_name(vfd)); in s3c_camif_register_video_node()
1174 video_device_release(vfd); in s3c_camif_register_video_node()
1182 if (video_is_registered(vfd)) { in s3c_camif_unregister_video_node()
[all …]
/linux-6.3-rc2/drivers/media/platform/sunxi/sun8i-rotate/
A 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.3-rc2/drivers/media/platform/amlogic/meson-ge2d/
A 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()
1011 vfd->name, video_device_node_name(vfd)); in ge2d_probe()
[all …]

Completed in 58 milliseconds

1234