/kernel/linux/linux-5.10/drivers/media/test-drivers/vivid/ |
H A D | vivid-core.c | 1347 struct video_device *vfd; in vivid_create_devnodes() local 1351 vfd = &dev->vid_cap_dev; in vivid_create_devnodes() 1352 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes() 1354 vfd->fops = &vivid_fops; in vivid_create_devnodes() 1355 vfd->ioctl_ops = &vivid_ioctl_ops; in vivid_create_devnodes() 1356 vfd->device_caps = dev->vid_cap_caps; in vivid_create_devnodes() 1357 vfd->release = video_device_release_empty; in vivid_create_devnodes() 1358 vfd->v4l2_dev = &dev->v4l2_dev; in vivid_create_devnodes() 1359 vfd in vivid_create_devnodes() [all...] |
/kernel/linux/linux-6.6/drivers/media/test-drivers/vivid/ |
H A D | vivid-core.c | 1387 struct video_device *vfd; in vivid_create_devnodes() local 1391 vfd = &dev->vid_cap_dev; in vivid_create_devnodes() 1392 snprintf(vfd->name, sizeof(vfd->name), in vivid_create_devnodes() 1394 vfd->fops = &vivid_fops; in vivid_create_devnodes() 1395 vfd->ioctl_ops = &vivid_ioctl_ops; in vivid_create_devnodes() 1396 vfd->device_caps = dev->vid_cap_caps; in vivid_create_devnodes() 1397 vfd->release = video_device_release_empty; in vivid_create_devnodes() 1398 vfd->v4l2_dev = &dev->v4l2_dev; in vivid_create_devnodes() 1399 vfd in vivid_create_devnodes() [all...] |
/kernel/linux/linux-6.6/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) 921 struct video_device *vfd = video_devdata(file); in check_fmt() local 922 const struct v4l2_ioctl_ops *ops = vfd->ioctl_ops; in check_fmt() 923 bool is_vid = vfd->vfl_type == VFL_TYPE_VIDEO && in check_fmt() 924 (vfd->device_caps & vid_caps); in check_fmt() 925 bool is_vbi = vfd->vfl_type == VFL_TYPE_VBI; in check_fmt() 926 bool is_sdr = vfd->vfl_type == VFL_TYPE_SDR; in check_fmt() 927 bool is_tch = vfd->vfl_type == VFL_TYPE_TOUCH; in check_fmt() 928 bool is_meta = vfd in check_fmt() 1085 struct video_device *vfd = video_devdata(file); v4l_querycap() local 1118 struct video_device *vfd = video_devdata(file); v4l_g_input() local 1131 struct video_device *vfd = video_devdata(file); v4l_g_output() local 1144 struct video_device *vfd = video_devdata(file); v4l_s_input() local 1160 struct video_device *vfd = video_devdata(file); v4l_s_output() local 1171 struct video_device *vfd; v4l_g_priority() local 1182 struct video_device *vfd; v4l_s_priority() local 1196 struct video_device *vfd = video_devdata(file); v4l_enuminput() local 1222 struct video_device *vfd = video_devdata(file); v4l_enumoutput() local 1624 struct video_device *vfd = video_devdata(file); v4l_g_fmt() local 1683 struct video_device *vfd = video_devdata(file); v4l_s_fmt() local 1794 struct video_device *vfd = video_devdata(file); v4l_try_fmt() local 1913 struct video_device *vfd = video_devdata(file); v4l_g_tuner() local 1928 struct video_device *vfd = video_devdata(file); v4l_s_tuner() local 1943 struct video_device *vfd = video_devdata(file); v4l_g_modulator() local 1959 struct video_device *vfd = video_devdata(file); v4l_s_modulator() local 1971 struct video_device *vfd = video_devdata(file); v4l_g_frequency() local 1985 struct video_device *vfd = video_devdata(file); v4l_s_frequency() local 2008 struct video_device *vfd = video_devdata(file); v4l_enumstd() local 2017 struct video_device *vfd = video_devdata(file); v4l_s_std() local 2035 struct video_device *vfd = video_devdata(file); v4l_querystd() local 2057 struct video_device *vfd = video_devdata(file); v4l_s_hw_freq_seek() local 2166 struct video_device *vfd = video_devdata(file); v4l_g_parm() local 2213 struct video_device *vfd = video_devdata(file); v4l_queryctrl() local 2230 struct video_device *vfd = video_devdata(file); v4l_query_ext_ctrl() local 2247 struct video_device *vfd = video_devdata(file); v4l_querymenu() local 2264 struct video_device *vfd = video_devdata(file); v4l_g_ctrl() local 2298 struct video_device *vfd = video_devdata(file); v4l_s_ctrl() local 2330 struct video_device *vfd = video_devdata(file); v4l_g_ext_ctrls() local 2351 struct video_device *vfd = video_devdata(file); v4l_s_ext_ctrls() local 2372 struct video_device *vfd = video_devdata(file); v4l_try_ext_ctrls() local 2434 struct video_device *vfd = video_devdata(file); v4l_g_crop() local 2464 struct video_device *vfd = video_devdata(file); v4l_s_crop() local 2489 struct video_device *vfd = video_devdata(file); v4l_cropcap() local 2555 struct video_device *vfd = video_devdata(file); v4l_log_status() local 2573 struct video_device *vfd = video_devdata(file); v4l_dbg_g_register() local 2601 struct video_device *vfd = video_devdata(file); v4l_dbg_s_register() local 2628 struct video_device *vfd = video_devdata(file); v4l_dbg_g_chip_info() local 2703 struct video_device *vfd = video_devdata(file); v4l_enum_freq_bands() local 2979 struct video_device *vfd = video_devdata(file); __video_do_ioctl() local [all...] |
/kernel/linux/linux-6.6/drivers/staging/media/imx/ |
H A D | imx-media-dev-common.c | 86 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() 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 in imx_media_link_notify() 196 imx_media_inherit_controls(struct imx_media_dev *imxmd, struct video_device *vfd, struct media_entity *entity) imx_media_inherit_controls() argument [all...] |
H A D | imx-media-capture.c | 781 struct video_device *vfd = priv->vdev.vfd; in capture_open() local 793 ret = v4l2_pipeline_pm_get(&vfd->entity); in capture_open() 805 struct video_device *vfd = priv->vdev.vfd; in capture_release() local 815 v4l2_pipeline_pm_put(&vfd->entity); in capture_release() 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() 924 ret = video_register_device(vfd, VFL_TYPE_VIDE in imx_media_capture_device_register() 954 struct video_device *vfd = priv->vdev.vfd; imx_media_capture_device_unregister() local 966 struct video_device *vfd; imx_media_capture_device_init() local [all...] |
H A D | imx-media-csc-scaler.c | 134 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 in imx_media_csc_scaler_device_register() 871 struct video_device *vfd = priv->vdev.vfd; imx_media_csc_scaler_device_unregister() local 880 struct video_device *vfd; imx_media_csc_scaler_device_init() local [all...] |
/kernel/linux/linux-5.10/drivers/media/v4l2-core/ |
H A D | v4l2-ioctl.c | 38 #define is_valid_ioctl(vfd, cmd) test_bit(_IOC_NR(cmd), (vfd)->valid_ioctls) 965 struct video_device *vfd = video_devdata(file); in check_fmt() local 966 const struct v4l2_ioctl_ops *ops = vfd->ioctl_ops; in check_fmt() 967 bool is_vid = vfd->vfl_type == VFL_TYPE_VIDEO && in check_fmt() 968 (vfd->device_caps & vid_caps); in check_fmt() 969 bool is_vbi = vfd->vfl_type == VFL_TYPE_VBI; in check_fmt() 970 bool is_sdr = vfd->vfl_type == VFL_TYPE_SDR; in check_fmt() 971 bool is_tch = vfd->vfl_type == VFL_TYPE_TOUCH; in check_fmt() 972 bool is_meta = vfd in check_fmt() 1084 struct video_device *vfd = video_devdata(file); v4l_querycap() local 1114 struct video_device *vfd = video_devdata(file); v4l_g_input() local 1127 struct video_device *vfd = video_devdata(file); v4l_g_output() local 1140 struct video_device *vfd = video_devdata(file); v4l_s_input() local 1156 struct video_device *vfd = video_devdata(file); v4l_s_output() local 1167 struct video_device *vfd; v4l_g_priority() local 1178 struct video_device *vfd; v4l_s_priority() local 1192 struct video_device *vfd = video_devdata(file); v4l_enuminput() local 1218 struct video_device *vfd = video_devdata(file); v4l_enumoutput() local 1587 struct video_device *vfd = video_devdata(file); v4l_g_fmt() local 1668 struct video_device *vfd = video_devdata(file); v4l_s_fmt() local 1773 struct video_device *vfd = video_devdata(file); v4l_try_fmt() local 1886 struct video_device *vfd = video_devdata(file); v4l_g_tuner() local 1901 struct video_device *vfd = video_devdata(file); v4l_s_tuner() local 1916 struct video_device *vfd = video_devdata(file); v4l_g_modulator() local 1932 struct video_device *vfd = video_devdata(file); v4l_s_modulator() local 1944 struct video_device *vfd = video_devdata(file); v4l_g_frequency() local 1958 struct video_device *vfd = video_devdata(file); v4l_s_frequency() local 1981 struct video_device *vfd = video_devdata(file); v4l_enumstd() local 1990 struct video_device *vfd = video_devdata(file); v4l_s_std() local 2008 struct video_device *vfd = video_devdata(file); v4l_querystd() local 2030 struct video_device *vfd = video_devdata(file); v4l_s_hw_freq_seek() local 2130 struct video_device *vfd = video_devdata(file); v4l_g_parm() local 2177 struct video_device *vfd = video_devdata(file); v4l_queryctrl() local 2194 struct video_device *vfd = video_devdata(file); v4l_query_ext_ctrl() local 2211 struct video_device *vfd = video_devdata(file); v4l_querymenu() local 2228 struct video_device *vfd = video_devdata(file); v4l_g_ctrl() local 2262 struct video_device *vfd = video_devdata(file); v4l_s_ctrl() local 2294 struct video_device *vfd = video_devdata(file); v4l_g_ext_ctrls() local 2315 struct video_device *vfd = video_devdata(file); v4l_s_ext_ctrls() local 2336 struct video_device *vfd = video_devdata(file); v4l_try_ext_ctrls() local 2398 struct video_device *vfd = video_devdata(file); v4l_g_crop() local 2428 struct video_device *vfd = video_devdata(file); v4l_s_crop() local 2453 struct video_device *vfd = video_devdata(file); v4l_cropcap() local 2519 struct video_device *vfd = video_devdata(file); v4l_log_status() local 2537 struct video_device *vfd = video_devdata(file); v4l_dbg_g_register() local 2565 struct video_device *vfd = video_devdata(file); v4l_dbg_s_register() local 2592 struct video_device *vfd = video_devdata(file); v4l_dbg_g_chip_info() local 2667 struct video_device *vfd = video_devdata(file); v4l_enum_freq_bands() local 2944 struct video_device *vfd = video_devdata(file); __video_do_ioctl() local [all...] |
/kernel/linux/linux-5.10/drivers/staging/media/imx/ |
H A D | imx-media-dev-common.c | 101 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() 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() 292 vfd in imx_media_link_notify() 211 imx_media_inherit_controls(struct imx_media_dev *imxmd, struct video_device *vfd, struct media_entity *entity) imx_media_inherit_controls() argument [all...] |
H A D | imx-media-capture.c | 640 struct video_device *vfd = priv->vdev.vfd; in capture_open() local 650 ret = v4l2_pipeline_pm_get(&vfd->entity); in capture_open() 661 struct video_device *vfd = priv->vdev.vfd; in capture_release() local 671 v4l2_pipeline_pm_put(&vfd->entity); in capture_release() 739 struct video_device *vfd = vdev->vfd; in imx_media_capture_device_register() local 747 vfd->v4l2_dev = v4l2_dev; in imx_media_capture_device_register() 749 ret = video_register_device(vfd, VFL_TYPE_VIDE in imx_media_capture_device_register() 817 struct video_device *vfd = priv->vdev.vfd; imx_media_capture_device_unregister() local 835 struct video_device *vfd; imx_media_capture_device_init() local [all...] |
H A D | imx-media-csc-scaler.c | 134 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 in imx_media_csc_scaler_device_register() 870 struct video_device *vfd = priv->vdev.vfd; imx_media_csc_scaler_device_unregister() local 879 struct video_device *vfd; imx_media_csc_scaler_device_init() local [all...] |
/kernel/linux/linux-6.6/drivers/media/common/saa7146/ |
H A D | saa7146_fops.c | 343 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 in saa7146_register_device() 411 saa7146_unregister_device(struct video_device *vfd, struct saa7146_dev *dev) saa7146_unregister_device() argument [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/amphion/ |
H A D | vpu_v4l2.c | 733 v4l2_fh_init(&inst->fh, func->vfd); in vpu_v4l2_open() 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() 815 vfd->release = video_device_release; in vpu_add_func() 816 vfd->vfl_dir = VFL_DIR_M2M; in vpu_add_func() 817 vfd->v4l2_dev = &vpu->v4l2_dev; in vpu_add_func() 818 vfd in vpu_add_func() [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/exynos4-is/ |
H A D | fimc-m2m.c | 355 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 in fimc_register_m2m_device() [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/samsung/exynos4-is/ |
H A D | fimc-m2m.c | 355 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 in fimc_register_m2m_device() [all...] |
/kernel/linux/linux-5.10/drivers/media/common/saa7146/ |
H A D | saa7146_fops.c | 589 int saa7146_register_device(struct video_device *vfd, struct saa7146_dev *dev, in saa7146_register_device() argument 597 vfd->fops = &video_fops; in saa7146_register_device() 599 vfd->ioctl_ops = &dev->ext_vv_data->vid_ops; in saa7146_register_device() 601 vfd->ioctl_ops = &dev->ext_vv_data->vbi_ops; in saa7146_register_device() 602 vfd->release = video_device_release_empty; in saa7146_register_device() 603 vfd->lock = &dev->v4l2_lock; in saa7146_register_device() 604 vfd->v4l2_dev = &dev->v4l2_dev; in saa7146_register_device() 605 vfd->tvnorms = 0; in saa7146_register_device() 607 vfd->tvnorms |= dev->ext_vv_data->stds[i].id; in saa7146_register_device() 608 strscpy(vfd in saa7146_register_device() 632 saa7146_unregister_device(struct video_device *vfd, struct saa7146_dev *dev) saa7146_unregister_device() argument [all...] |
/kernel/linux/linux-5.10/drivers/media/pci/solo6x10/ |
H A D | solo6x10-v4l2.c | 428 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_VIDE in solo_v4l2_init() [all...] |
/kernel/linux/linux-6.6/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() 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_VIDE in solo_v4l2_init() [all...] |
/kernel/linux/linux-5.10/drivers/staging/media/sunxi/cedrus/ |
H A D | cedrus.c | 395 struct video_device *vfd; in cedrus_probe() local 404 dev->vfd = cedrus_video_device; in cedrus_probe() 426 vfd = &dev->vfd; in cedrus_probe() 427 vfd->lock = &dev->dev_mutex; in cedrus_probe() 428 vfd->v4l2_dev = &dev->v4l2_dev; in cedrus_probe() 430 snprintf(vfd->name, sizeof(vfd->name), "%s", cedrus_video_device.name); in cedrus_probe() 431 video_set_drvdata(vfd, dev); in cedrus_probe() 451 ret = video_register_device(vfd, VFL_TYPE_VIDE in cedrus_probe() [all...] |
/kernel/linux/linux-6.6/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_VIDE in cedrus_probe() [all...] |
/kernel/linux/linux-6.6/drivers/media/test-drivers/visl/ |
H A D | visl-core.c | 245 struct visl_dev *dev = container_of(vdev, struct visl_dev, vfd); in visl_device_release() 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 in visl_probe() [all...] |
/kernel/linux/linux-5.10/drivers/staging/media/hantro/ |
H A D | hantro_drv.c | 638 struct video_device *vfd; in hantro_add_func() local 650 vfd = &func->vdev; in hantro_add_func() 651 vfd->fops = &hantro_fops; in hantro_add_func() 652 vfd->release = video_device_release_empty; in hantro_add_func() 653 vfd->lock = &vpu->vpu_mutex; in hantro_add_func() 654 vfd->v4l2_dev = &vpu->v4l2_dev; in hantro_add_func() 655 vfd->vfl_dir = VFL_DIR_M2M; in hantro_add_func() 656 vfd->device_caps = V4L2_CAP_STREAMING | V4L2_CAP_VIDEO_M2M_MPLANE; in hantro_add_func() 657 vfd->ioctl_ops = &hantro_ioctl_ops; in hantro_add_func() 658 snprintf(vfd in hantro_add_func() [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/omap/ |
H A D | omap_vout.c | 576 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 in omap_vout_setup_video_data() 1443 struct video_device *vfd = NULL; omap_vout_create_video_devices() local 1534 struct video_device *vfd; omap_vout_cleanup_device() local [all...] |
/kernel/linux/linux-6.6/drivers/media/platform/ti/omap/ |
H A D | omap_vout.c | 577 strscpy(cap->card, vout->vfd->name, sizeof(cap->card)); in vidioc_querycap() 1310 struct video_device *vfd; in omap_vout_setup_video_data() local 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() 1382 vfd->release = video_device_release; in omap_vout_setup_video_data() 1383 vfd->ioctl_ops = &vout_ioctl_ops; in omap_vout_setup_video_data() 1385 strscpy(vfd->name, VOUT_NAME, sizeof(vfd in omap_vout_setup_video_data() 1445 struct video_device *vfd = NULL; omap_vout_create_video_devices() local 1536 struct video_device *vfd; omap_vout_cleanup_device() local [all...] |
/kernel/linux/linux-5.10/drivers/media/platform/s5p-g2d/ |
H A D | g2d.c | 625 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, de in g2d_probe() [all...] |
/kernel/linux/linux-6.6/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() 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, de in g2d_probe() [all...] |