Home
last modified time | relevance | path

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

1234

/drivers/media/test-drivers/vivid/
A Dvivid-core.c1428 struct video_device *vfd; in vivid_create_devnodes() local
1433 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes()
1483 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes()
1532 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes()
1563 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes()
1595 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes()
1622 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes()
1641 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes()
1661 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes()
1690 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes()
[all …]
/drivers/media/common/saa7146/
A Dsaa7146_fops.c352 vfd->fops = &video_fops; 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()
366 strscpy(vfd->name, name, sizeof(vfd->name)); in saa7146_register_device()
371 vfd->device_caps &= in saa7146_register_device()
374 vfd->vfl_dir = VFL_DIR_TX; in saa7146_register_device()
395 vfd->queue = q; in saa7146_register_device()
397 video_set_drvdata(vfd, dev); in saa7146_register_device()
406 dev->name, video_device_node_name(vfd)); in saa7146_register_device()
[all …]
/drivers/media/v4l2-core/
A Dv4l2-ioctl.c35 #define is_valid_ioctl(vfd, cmd) test_bit(_IOC_NR(cmd), (vfd)->valid_ioctls) argument
1104 vfd->dev_parent); in v4l_querycap()
2113 *p = vfd->tvnorms; in v4l_querystd()
2427 vfd, vfd->v4l2_dev->mdev, p); in v4l_g_ext_ctrls()
2430 vfd, vfd->v4l2_dev->mdev, p); in v4l_g_ext_ctrls()
2448 vfd, vfd->v4l2_dev->mdev, p); in v4l_s_ext_ctrls()
2451 vfd, vfd->v4l2_dev->mdev, p); in v4l_s_ext_ctrls()
2469 vfd, vfd->v4l2_dev->mdev, p); in v4l_try_ext_ctrls()
2472 vfd, vfd->v4l2_dev->mdev, p); in v4l_try_ext_ctrls()
2647 if (vfd->v4l2_dev) in v4l_log_status()
[all …]
/drivers/staging/media/imx/
A Dimx-media-dev-common.c197 struct video_device *vfd, in imx_media_inherit_controls() argument
207 vfd->entity.name, sd->entity.name); 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()
280 v4l2_ctrl_handler_free(vfd->ctrl_handler); in imx_media_link_notify()
286 vfd = pad_vdev->vdev->vfd; in imx_media_link_notify()
287 if (!vfd->ctrl_handler) in imx_media_link_notify()
291 vfd->entity.name); in imx_media_link_notify()
[all …]
A Dimx-media-capture.c782 struct video_device *vfd = priv->vdev.vfd; in capture_open() local
806 struct video_device *vfd = priv->vdev.vfd; in capture_release() local
911 struct video_device *vfd = vdev->vfd; in imx_media_capture_device_register() local
917 vfd->v4l2_dev = v4l2_dev; in imx_media_capture_device_register()
955 struct video_device *vfd = priv->vdev.vfd; in imx_media_capture_device_unregister() local
967 struct video_device *vfd; in imx_media_capture_device_init() local
986 if (!vfd) in imx_media_capture_device_init()
992 vfd->minor = -1; in imx_media_capture_device_init()
999 vfd->queue = &priv->q; in imx_media_capture_device_init()
1001 snprintf(vfd->name, sizeof(vfd->name), "%s capture", src_sd->name); in imx_media_capture_device_init()
[all …]
A Dimx-media-csc-scaler.c849 struct video_device *vfd = vdev->vfd; in imx_media_csc_scaler_device_register() local
860 v4l2_info(vfd->v4l2_dev, "Registered %s as /dev/%s\n", vfd->name, in imx_media_csc_scaler_device_register()
869 struct video_device *vfd = priv->vdev.vfd; in imx_media_csc_scaler_device_unregister() local
871 video_unregister_device(vfd); in imx_media_csc_scaler_device_unregister()
878 struct video_device *vfd; in imx_media_csc_scaler_device_init() local
890 vfd = video_device_alloc(); in imx_media_csc_scaler_device_init()
891 if (!vfd) { in imx_media_csc_scaler_device_init()
897 vfd->lock = &priv->mutex; in imx_media_csc_scaler_device_init()
898 priv->vdev.vfd = vfd; in imx_media_csc_scaler_device_init()
902 video_set_drvdata(vfd, priv); in imx_media_csc_scaler_device_init()
[all …]
/drivers/media/platform/samsung/exynos4-is/
A Dfimc-m2m.c435 v4l2_err(&fimc->m2m.vfd, in fimc_m2m_try_selection()
716 struct video_device *vfd = &fimc->m2m.vfd; in fimc_register_m2m_device() local
721 memset(vfd, 0, sizeof(*vfd)); in fimc_register_m2m_device()
722 vfd->fops = &fimc_m2m_fops; in fimc_register_m2m_device()
724 vfd->v4l2_dev = v4l2_dev; in fimc_register_m2m_device()
725 vfd->minor = -1; in fimc_register_m2m_device()
727 vfd->lock = &fimc->lock; in fimc_register_m2m_device()
728 vfd->vfl_dir = VFL_DIR_M2M; in fimc_register_m2m_device()
732 snprintf(vfd->name, sizeof(vfd->name), "fimc.%d.m2m", fimc->id); in fimc_register_m2m_device()
733 video_set_drvdata(vfd, fimc); in fimc_register_m2m_device()
[all …]
/drivers/media/platform/amphion/
A Dvpu_v4l2.c818 struct video_device *vfd; in vpu_add_func() local
824 if (func->vfd) in vpu_add_func()
830 func->vfd = NULL; in vpu_add_func()
834 vfd = video_device_alloc(); in vpu_add_func()
835 if (!vfd) { in vpu_add_func()
845 strscpy(vfd->name, "amphion-vpu-encoder", sizeof(vfd->name)); in vpu_add_func()
849 strscpy(vfd->name, "amphion-vpu-decoder", sizeof(vfd->name)); in vpu_add_func()
861 func->vfd = vfd; in vpu_add_func()
868 func->vfd = NULL; in vpu_add_func()
885 if (func->vfd) { in vpu_remove_func()
[all …]
/drivers/media/pci/solo6x10/
A Dsolo6x10-v4l2.c422 input->std = solo_dev->vfd->tvnorms; in solo_enum_input()
645 solo_dev->vfd = video_device_alloc(); in solo_v4l2_init()
646 if (!solo_dev->vfd) in solo_v4l2_init()
649 *solo_dev->vfd = solo_v4l2_template; in solo_v4l2_init()
693 snprintf(solo_dev->vfd->name, sizeof(solo_dev->vfd->name), "%s (%i)", in solo_v4l2_init()
694 SOLO6X10_NAME, solo_dev->vfd->num); in solo_v4l2_init()
697 solo_dev->vfd->num, in solo_v4l2_init()
703 video_device_release(solo_dev->vfd); in solo_v4l2_init()
705 solo_dev->vfd = NULL; in solo_v4l2_init()
711 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()
784 input->std = solo_enc->vfd->tvnorms; in solo_enc_enum_input()
1293 solo_enc->vfd = video_device_alloc(); in solo_enc_alloc()
1294 if (!solo_enc->vfd) in solo_enc_alloc()
1297 *solo_enc->vfd = solo_enc_template; in solo_enc_alloc()
1299 solo_enc->vfd->ctrl_handler = hdl; in solo_enc_alloc()
1301 solo_enc->vfd->lock = &solo_enc->lock; in solo_enc_alloc()
1307 snprintf(solo_enc->vfd->name, sizeof(solo_enc->vfd->name), in solo_enc_alloc()
1309 solo_enc->vfd->num); in solo_enc_alloc()
1314 video_device_release(solo_enc->vfd); in solo_enc_alloc()
[all …]
/drivers/media/test-drivers/visl/
A Dvisl-core.c437 struct video_device *vfd; in visl_probe() local
451 dev->vfd = visl_videodev; in visl_probe()
452 vfd = &dev->vfd; in visl_probe()
453 vfd->lock = &dev->dev_mutex; in visl_probe()
454 vfd->v4l2_dev = &dev->v4l2_dev; in visl_probe()
456 video_set_drvdata(vfd, dev); in visl_probe()
476 ret = video_register_device(vfd, VFL_TYPE_VIDEO, -1); in visl_probe()
483 "Device registered as /dev/video%d\n", vfd->num); in visl_probe()
485 ret = v4l2_m2m_register_media_controller(dev->m2m_dev, vfd, in visl_probe()
508 video_unregister_device(&dev->vfd); in visl_probe()
[all …]
/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 …]
/drivers/media/platform/ti/omap/
A Domap_vout.c1372 vfd = vout->vfd = video_device_alloc(); in omap_vout_setup_video_data()
1374 if (!vfd) { in omap_vout_setup_video_data()
1380 vfd->ctrl_handler = hdl; in omap_vout_setup_video_data()
1384 strscpy(vfd->name, VOUT_NAME, sizeof(vfd->name)); in omap_vout_setup_video_data()
1389 vfd->minor = -1; in omap_vout_setup_video_data()
1406 vfd->queue = vq; in omap_vout_setup_video_data()
1503 vfd = vout->vfd; in omap_vout_create_video_devices()
1507 vfd->minor = -1; in omap_vout_create_video_devices()
1515 vfd->minor); in omap_vout_create_video_devices()
1541 vfd = vout->vfd; in omap_vout_cleanup_device()
[all …]
/drivers/media/platform/ti/cal/
A Dcal-video.c1003 &vfd->entity, 0, in cal_ctx_v4l2_register()
1009 video_unregister_device(vfd); in cal_ctx_v4l2_register()
1017 &vfd->entity, 0, in cal_ctx_v4l2_register()
1023 video_unregister_device(vfd); in cal_ctx_v4l2_register()
1029 video_device_node_name(vfd)); in cal_ctx_v4l2_register()
1070 vfd->fops = &cal_fops; in cal_ctx_v4l2_init()
1074 vfd->queue = q; in cal_ctx_v4l2_init()
1075 snprintf(vfd->name, sizeof(vfd->name), "CAL output %u", ctx->dma_ctx); in cal_ctx_v4l2_init()
1078 vfd->lock = &ctx->mutex; in cal_ctx_v4l2_init()
1079 video_set_drvdata(vfd, ctx); in cal_ctx_v4l2_init()
[all …]
/drivers/media/platform/verisilicon/
A 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()
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()
908 vfd->ioctl_ops = &hantro_ioctl_ops; in hantro_add_func()
909 strscpy(vfd->name, match->compatible, sizeof(vfd->name)); in hantro_add_func()
923 video_set_drvdata(vfd, vpu); in hantro_add_func()
939 vfd->num); in hantro_add_func()
[all …]
/drivers/media/platform/samsung/s5p-mfc/
A Ds5p_mfc.c1305 struct video_device *vfd; in s5p_mfc_probe() local
1372 vfd = video_device_alloc(); in s5p_mfc_probe()
1373 if (!vfd) { in s5p_mfc_probe()
1378 vfd->fops = &s5p_mfc_fops; in s5p_mfc_probe()
1383 vfd->vfl_dir = VFL_DIR_M2M; in s5p_mfc_probe()
1386 snprintf(vfd->name, sizeof(vfd->name), "%s", S5P_MFC_DEC_NAME); in s5p_mfc_probe()
1387 dev->vfd_dec = vfd; in s5p_mfc_probe()
1392 if (!vfd) { in s5p_mfc_probe()
1397 vfd->fops = &s5p_mfc_fops; in s5p_mfc_probe()
1404 snprintf(vfd->name, sizeof(vfd->name), "%s", S5P_MFC_ENC_NAME); in s5p_mfc_probe()
[all …]
/drivers/media/platform/st/stm32/dma2d/
A Ddma2d.c604 struct video_device *vfd; in dma2d_probe() local
649 vfd = video_device_alloc(); in dma2d_probe()
650 if (!vfd) { in dma2d_probe()
656 *vfd = dma2d_videodev; in dma2d_probe()
657 vfd->lock = &dev->mutex; in dma2d_probe()
658 vfd->v4l2_dev = &dev->v4l2_dev; in dma2d_probe()
675 video_set_drvdata(vfd, dev); in dma2d_probe()
676 dev->vfd = vfd; in dma2d_probe()
678 vfd->num); in dma2d_probe()
684 video_device_release(vfd); in dma2d_probe()
[all …]
/drivers/media/platform/samsung/s5p-g2d/
A Dg2d.c623 struct video_device *vfd; in g2d_probe() local
682 vfd = video_device_alloc(); in g2d_probe()
683 if (!vfd) { in g2d_probe()
688 *vfd = g2d_videodev; in g2d_probe()
690 vfd->lock = &dev->mutex; in g2d_probe()
691 vfd->v4l2_dev = &dev->v4l2_dev; in g2d_probe()
716 video_set_drvdata(vfd, dev); in g2d_probe()
717 dev->vfd = vfd; in g2d_probe()
719 vfd->num); in g2d_probe()
726 video_device_release(vfd); in g2d_probe()
[all …]
/drivers/media/test-drivers/vicodec/
A Dvicodec-core.c100 struct video_device vfd; member
1845 if (vfd == &dev->stateful_enc.vfd) in vicodec_open()
1847 else if (vfd == &dev->stateless_dec.vfd) in vicodec_open()
1938 mutex_unlock(vfd->lock); in vicodec_open()
1947 mutex_lock(vfd->lock); in vicodec_release()
1949 mutex_unlock(vfd->lock); in vicodec_release()
2045 struct video_device *vfd; in register_instance() local
2057 vfd = &dev_instance->vfd; in register_instance()
2060 strscpy(vfd->name, name, sizeof(vfd->name)); in register_instance()
2071 video_set_drvdata(vfd, dev); in register_instance()
[all …]
/drivers/media/platform/nxp/
A Dmx2_emmaprp.c198 struct video_device *vfd; member
804 struct video_device *vfd; in emmaprp_probe() local
832 vfd = video_device_alloc(); in emmaprp_probe()
833 if (!vfd) { in emmaprp_probe()
839 *vfd = emmaprp_videodev; in emmaprp_probe()
840 vfd->lock = &pcdev->dev_mutex; in emmaprp_probe()
841 vfd->v4l2_dev = &pcdev->v4l2_dev; in emmaprp_probe()
843 video_set_drvdata(vfd, pcdev); in emmaprp_probe()
844 pcdev->vfd = vfd; in emmaprp_probe()
880 video_device_release(vfd); in emmaprp_probe()
[all …]
/drivers/media/platform/nxp/dw100/
A Ddw100.c69 struct video_device vfd; member
1480 struct video_device *vfd = &dw_dev->vfd; in dw100_init_video_device() local
1482 vfd->vfl_dir = VFL_DIR_M2M; in dw100_init_video_device()
1483 vfd->fops = &dw100_fops; in dw100_init_video_device()
1486 vfd->minor = -1; in dw100_init_video_device()
1489 vfd->lock = &dw_dev->vfd_mutex; in dw100_init_video_device()
1491 strscpy(vfd->name, DRV_NAME, sizeof(vfd->name)); in dw100_init_video_device()
1492 mutex_init(vfd->lock); in dw100_init_video_device()
1495 return vfd; in dw100_init_video_device()
1532 struct video_device *vfd; in dw100_probe() local
[all …]
/drivers/media/platform/rockchip/rga/
A 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()
905 vfd->name, video_device_node_name(vfd)); in rga_probe()
915 video_device_release(vfd); in rga_probe()
[all …]
/drivers/media/platform/samsung/s3c-camif/
A Dcamif-capture.c1106 memset(vfd, 0, sizeof(*vfd)); in s3c_camif_register_video_node()
1107 snprintf(vfd->name, sizeof(vfd->name), "camif-%s", in s3c_camif_register_video_node()
1110 vfd->fops = &s3c_camif_fops; in s3c_camif_register_video_node()
1112 vfd->v4l2_dev = &camif->v4l2_dev; in s3c_camif_register_video_node()
1113 vfd->minor = -1; in s3c_camif_register_video_node()
1115 vfd->lock = &camif->lock; in s3c_camif_register_video_node()
1141 video_set_drvdata(vfd, vp); in s3c_camif_register_video_node()
1165 vfd->name, video_device_node_name(vfd)); in s3c_camif_register_video_node()
1171 media_entity_cleanup(&vfd->entity); in s3c_camif_register_video_node()
1179 if (video_is_registered(vfd)) { in s3c_camif_unregister_video_node()
[all …]
/drivers/media/platform/sunxi/sun8i-rotate/
A Dsun8i_rotate.c737 struct video_device *vfd; in rotate_probe() local
744 dev->vfd = rotate_video_device; in rotate_probe()
793 vfd = &dev->vfd; in rotate_probe()
794 vfd->lock = &dev->dev_mutex; in rotate_probe()
795 vfd->v4l2_dev = &dev->v4l2_dev; in rotate_probe()
797 snprintf(vfd->name, sizeof(vfd->name), "%s", in rotate_probe()
799 video_set_drvdata(vfd, dev); in rotate_probe()
801 ret = video_register_device(vfd, VFL_TYPE_VIDEO, 0); in rotate_probe()
809 "Device registered as /dev/video%d\n", vfd->num); in rotate_probe()
827 video_unregister_device(&dev->vfd); in rotate_probe()
[all …]
/drivers/media/platform/amlogic/meson-ge2d/
A Dge2d.c88 struct video_device *vfd; member
921 struct video_device *vfd; in ge2d_probe() local
980 vfd = video_device_alloc(); in ge2d_probe()
981 if (!vfd) { in ge2d_probe()
987 *vfd = ge2d_videodev; in ge2d_probe()
988 vfd->lock = &ge2d->mutex; in ge2d_probe()
989 vfd->v4l2_dev = &ge2d->v4l2_dev; in ge2d_probe()
991 video_set_drvdata(vfd, ge2d); in ge2d_probe()
992 ge2d->vfd = vfd; in ge2d_probe()
1009 vfd->name, video_device_node_name(vfd)); in ge2d_probe()
[all …]

Completed in 77 milliseconds

1234