/openbmc/linux/drivers/media/test-drivers/vivid/ |
H A D | vivid-core.c | 1387 struct video_device *vfd; in vivid_create_devnodes() local 1392 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes() 1442 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes() 1495 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes() 1526 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes() 1558 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes() 1585 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes() 1604 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes() 1624 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes() 1653 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes() [all …]
|
/openbmc/linux/drivers/media/common/saa7146/ |
H A D | saa7146_fops.c | 352 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 …]
|
/openbmc/linux/drivers/staging/media/imx/ |
H A D | imx-media-dev-common.c | 197 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 …]
|
H A D | imx-media-capture.c | 781 struct video_device *vfd = priv->vdev.vfd; in capture_open() local 805 struct video_device *vfd = priv->vdev.vfd; in capture_release() local 910 struct video_device *vfd = vdev->vfd; in imx_media_capture_device_register() local 916 vfd->v4l2_dev = v4l2_dev; in imx_media_capture_device_register() 954 struct video_device *vfd = priv->vdev.vfd; in imx_media_capture_device_unregister() local 966 struct video_device *vfd; in imx_media_capture_device_init() local 985 if (!vfd) in imx_media_capture_device_init() 991 vfd->minor = -1; in imx_media_capture_device_init() 998 vfd->queue = &priv->q; in imx_media_capture_device_init() 1000 snprintf(vfd->name, sizeof(vfd->name), "%s capture", src_sd->name); in imx_media_capture_device_init() [all …]
|
H A D | imx-media-csc-scaler.c | 851 struct video_device *vfd = vdev->vfd; in imx_media_csc_scaler_device_register() local 862 v4l2_info(vfd->v4l2_dev, "Registered %s as /dev/%s\n", vfd->name, in imx_media_csc_scaler_device_register() 871 struct video_device *vfd = priv->vdev.vfd; in imx_media_csc_scaler_device_unregister() local 873 video_unregister_device(vfd); in imx_media_csc_scaler_device_unregister() 880 struct video_device *vfd; in imx_media_csc_scaler_device_init() local 892 vfd = video_device_alloc(); in imx_media_csc_scaler_device_init() 893 if (!vfd) { in imx_media_csc_scaler_device_init() 899 vfd->lock = &priv->mutex; in imx_media_csc_scaler_device_init() 900 priv->vdev.vfd = vfd; in imx_media_csc_scaler_device_init() 904 video_set_drvdata(vfd, priv); in imx_media_csc_scaler_device_init() [all …]
|
/openbmc/linux/drivers/media/v4l2-core/ |
H A D | v4l2-ioctl.c | 35 #define is_valid_ioctl(vfd, cmd) test_bit(_IOC_NR(cmd), (vfd)->valid_ioctls) argument 1093 vfd->dev_parent); in v4l_querycap() 2051 *p = vfd->tvnorms; in v4l_querystd() 2339 vfd, vfd->v4l2_dev->mdev, p); in v4l_g_ext_ctrls() 2342 vfd, vfd->v4l2_dev->mdev, p); in v4l_g_ext_ctrls() 2360 vfd, vfd->v4l2_dev->mdev, p); in v4l_s_ext_ctrls() 2363 vfd, vfd->v4l2_dev->mdev, p); in v4l_s_ext_ctrls() 2381 vfd, vfd->v4l2_dev->mdev, p); in v4l_try_ext_ctrls() 2384 vfd, vfd->v4l2_dev->mdev, p); in v4l_try_ext_ctrls() 2559 if (vfd->v4l2_dev) in v4l_log_status() [all …]
|
/openbmc/linux/drivers/media/platform/samsung/exynos4-is/ |
H A D | fimc-m2m.c | 436 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 …]
|
/openbmc/linux/drivers/media/platform/amphion/ |
H A D | vpu_v4l2.c | 793 struct video_device *vfd; in vpu_add_func() local 799 if (func->vfd) in vpu_add_func() 805 func->vfd = NULL; in vpu_add_func() 809 vfd = video_device_alloc(); in vpu_add_func() 810 if (!vfd) { in vpu_add_func() 820 strscpy(vfd->name, "amphion-vpu-encoder", sizeof(vfd->name)); in vpu_add_func() 824 strscpy(vfd->name, "amphion-vpu-decoder", sizeof(vfd->name)); in vpu_add_func() 836 func->vfd = vfd; in vpu_add_func() 843 func->vfd = NULL; in vpu_add_func() 860 if (func->vfd) { in vpu_remove_func() [all …]
|
/openbmc/linux/drivers/media/test-drivers/visl/ |
H A D | visl-core.c | 399 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 …]
|
/openbmc/linux/drivers/media/pci/solo6x10/ |
H A D | solo6x10-v4l2.c | 424 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 …]
|
H A D | solo6x10-v4l2-enc.c | 539 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 …]
|
/openbmc/linux/drivers/staging/media/sunxi/cedrus/ |
H A D | cedrus.c | 455 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 …]
|
/openbmc/linux/drivers/media/platform/ti/omap/ |
H A D | omap_vout.c | 1373 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 …]
|
/openbmc/linux/drivers/media/platform/ti/cal/ |
H A D | cal-video.c | 968 &vfd->entity, 0, in cal_ctx_v4l2_register() 974 video_unregister_device(vfd); in cal_ctx_v4l2_register() 979 video_device_node_name(vfd)); in cal_ctx_v4l2_register() 1020 vfd->fops = &cal_fops; in cal_ctx_v4l2_init() 1023 vfd->v4l2_dev = &ctx->cal->v4l2_dev; in cal_ctx_v4l2_init() 1024 vfd->queue = q; in cal_ctx_v4l2_init() 1025 snprintf(vfd->name, sizeof(vfd->name), "CAL output %u", ctx->dma_ctx); in cal_ctx_v4l2_init() 1028 vfd->lock = &ctx->mutex; in cal_ctx_v4l2_init() 1029 video_set_drvdata(vfd, ctx); in cal_ctx_v4l2_init() 1046 vfd->ctrl_handler = hdl; in cal_ctx_v4l2_init() [all …]
|
/openbmc/linux/drivers/media/platform/verisilicon/ |
H A D | hantro_drv.c | 882 struct video_device *vfd; in hantro_add_func() local 894 vfd = &func->vdev; in hantro_add_func() 895 vfd->fops = &hantro_fops; in hantro_add_func() 897 vfd->lock = &vpu->vpu_mutex; in hantro_add_func() 898 vfd->v4l2_dev = &vpu->v4l2_dev; in hantro_add_func() 899 vfd->vfl_dir = VFL_DIR_M2M; in hantro_add_func() 901 vfd->ioctl_ops = &hantro_ioctl_ops; in hantro_add_func() 902 snprintf(vfd->name, sizeof(vfd->name), "%s-%s", match->compatible, in hantro_add_func() 915 video_set_drvdata(vfd, vpu); in hantro_add_func() 931 vfd->num); in hantro_add_func() [all …]
|
/openbmc/linux/drivers/media/platform/st/stm32/dma2d/ |
H A D | dma2d.c | 605 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() 676 video_set_drvdata(vfd, dev); in dma2d_probe() 677 dev->vfd = vfd; in dma2d_probe() 679 vfd->num); in dma2d_probe() 685 video_device_release(vfd); in dma2d_probe() [all …]
|
/openbmc/linux/drivers/media/platform/samsung/s5p-mfc/ |
H A D | s5p_mfc.c | 1284 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 …]
|
/openbmc/linux/drivers/media/platform/samsung/s5p-g2d/ |
H A D | g2d.c | 625 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 …]
|
/openbmc/linux/drivers/media/platform/nxp/ |
H A D | mx2_emmaprp.c | 198 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 …]
|
/openbmc/linux/drivers/media/test-drivers/vicodec/ |
H A D | vicodec-core.c | 98 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 …]
|
/openbmc/linux/drivers/media/platform/rockchip/rga/ |
H A D | rga.c | 790 struct video_device *vfd; in rga_probe() local 833 vfd = video_device_alloc(); in rga_probe() 834 if (!vfd) { in rga_probe() 839 *vfd = rga_videodev; in rga_probe() 840 vfd->lock = &rga->mutex; in rga_probe() 841 vfd->v4l2_dev = &rga->v4l2_dev; in rga_probe() 843 video_set_drvdata(vfd, rga); in rga_probe() 844 rga->vfd = vfd; in rga_probe() 898 vfd->name, video_device_node_name(vfd)); in rga_probe() 912 video_device_release(vfd); in rga_probe() [all …]
|
/openbmc/linux/drivers/media/platform/nxp/dw100/ |
H A D | dw100.c | 69 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 …]
|
/openbmc/linux/drivers/media/platform/sunxi/sun8i-rotate/ |
H A D | sun8i_rotate.c | 739 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 …]
|
/openbmc/linux/drivers/media/platform/samsung/s3c-camif/ |
H A D | camif-capture.c | 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() 1114 vfd->v4l2_dev = &camif->v4l2_dev; in s3c_camif_register_video_node() 1115 vfd->minor = -1; in s3c_camif_register_video_node() 1117 vfd->lock = &camif->lock; in s3c_camif_register_video_node() 1143 video_set_drvdata(vfd, vp); in s3c_camif_register_video_node() 1167 vfd->name, video_device_node_name(vfd)); in s3c_camif_register_video_node() 1173 media_entity_cleanup(&vfd->entity); in s3c_camif_register_video_node() 1181 if (video_is_registered(vfd)) { in s3c_camif_unregister_video_node() [all …]
|
/openbmc/linux/drivers/media/platform/amlogic/meson-ge2d/ |
H A D | ge2d.c | 88 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 …]
|