Home
last modified time | relevance | path

Searched refs:media_dev (Results 1 – 25 of 67) sorted by relevance

123

/linux-6.12.1/sound/usb/
Dmedia.c44 mdev = subs->stream->chip->media_dev; in snd_media_stream_init()
56 mctl->media_dev = mdev; in snd_media_stream_init()
70 ret = media_device_register_entity(mctl->media_dev, in snd_media_stream_init()
124 mdev = mctl->media_dev; in snd_media_stream_delete()
143 mutex_lock(&mctl->media_dev->graph_mutex); in snd_media_start_pipeline()
144 if (mctl->media_dev->enable_source) in snd_media_start_pipeline()
145 ret = mctl->media_dev->enable_source(&mctl->media_entity, in snd_media_start_pipeline()
147 mutex_unlock(&mctl->media_dev->graph_mutex); in snd_media_start_pipeline()
158 mutex_lock(&mctl->media_dev->graph_mutex); in snd_media_stop_pipeline()
159 if (mctl->media_dev->disable_source) in snd_media_stop_pipeline()
[all …]
Dmedia.h29 struct media_device *media_dev; member
45 struct media_device *media_dev; member
/linux-6.12.1/drivers/media/platform/sunxi/sun6i-csi/
Dsun6i_csi.c35 csi_dev->media_dev = v4l2_dev->mdev; in sun6i_csi_isp_complete()
79 struct media_device *media_dev = &v4l2->media_dev; in sun6i_csi_v4l2_setup() local
86 strscpy(media_dev->model, SUN6I_CSI_DESCRIPTION, in sun6i_csi_v4l2_setup()
87 sizeof(media_dev->model)); in sun6i_csi_v4l2_setup()
88 media_dev->hw_revision = 0; in sun6i_csi_v4l2_setup()
89 media_dev->ops = &sun6i_csi_media_ops; in sun6i_csi_v4l2_setup()
90 media_dev->dev = dev; in sun6i_csi_v4l2_setup()
92 media_device_init(media_dev); in sun6i_csi_v4l2_setup()
94 ret = media_device_register(media_dev); in sun6i_csi_v4l2_setup()
102 v4l2_dev->mdev = media_dev; in sun6i_csi_v4l2_setup()
[all …]
Dsun6i_csi.h34 struct media_device media_dev; member
40 struct media_device *media_dev; member
/linux-6.12.1/drivers/staging/media/tegra-video/
Dvideo.c24 media_device_unregister(&vid->media_dev); in tegra_v4l2_dev_release()
25 media_device_cleanup(&vid->media_dev); in tegra_v4l2_dev_release()
55 vid->media_dev.dev = &dev->dev; in host1x_video_probe()
56 strscpy(vid->media_dev.model, "NVIDIA Tegra Video Input Device", in host1x_video_probe()
57 sizeof(vid->media_dev.model)); in host1x_video_probe()
59 media_device_init(&vid->media_dev); in host1x_video_probe()
60 ret = media_device_register(&vid->media_dev); in host1x_video_probe()
67 vid->v4l2_dev.mdev = &vid->media_dev; in host1x_video_probe()
103 media_device_unregister(&vid->media_dev); in host1x_video_probe()
105 media_device_cleanup(&vid->media_dev); in host1x_video_probe()
Dvideo.h18 struct media_device media_dev; member
/linux-6.12.1/drivers/media/usb/au0828/
Dau0828-core.c128 struct media_device *mdev = dev->media_dev; in au0828_unregister_media_device()
143 dev->media_dev->source_priv = NULL; in au0828_unregister_media_device()
144 dev->media_dev->enable_source = NULL; in au0828_unregister_media_device()
145 dev->media_dev->disable_source = NULL; in au0828_unregister_media_device()
148 media_device_delete(dev->media_dev, KBUILD_MODNAME, THIS_MODULE); in au0828_unregister_media_device()
149 dev->media_dev = NULL; in au0828_unregister_media_device()
205 dev->media_dev = mdev; in au0828_media_device_init()
224 media_device_for_each_entity(entity, dev->media_dev) { in au0828_media_graph_notify()
241 media_device_for_each_entity(entity, dev->media_dev) { in au0828_media_graph_notify()
566 if (!dev->media_dev) in au0828_media_device_register()
[all …]
/linux-6.12.1/drivers/staging/media/sunxi/sun6i-isp/
Dsun6i_isp.c189 struct media_device *media_dev = &v4l2->media_dev; in sun6i_isp_v4l2_setup() local
195 strscpy(media_dev->model, SUN6I_ISP_DESCRIPTION, in sun6i_isp_v4l2_setup()
196 sizeof(media_dev->model)); in sun6i_isp_v4l2_setup()
197 media_dev->ops = &sun6i_isp_media_ops; in sun6i_isp_v4l2_setup()
198 media_dev->hw_revision = 0; in sun6i_isp_v4l2_setup()
199 media_dev->dev = dev; in sun6i_isp_v4l2_setup()
201 media_device_init(media_dev); in sun6i_isp_v4l2_setup()
203 ret = media_device_register(media_dev); in sun6i_isp_v4l2_setup()
211 v4l2_dev->mdev = media_dev; in sun6i_isp_v4l2_setup()
222 media_device_unregister(media_dev); in sun6i_isp_v4l2_setup()
[all …]
/linux-6.12.1/drivers/media/platform/nxp/imx8-isi/
Dimx8-isi-core.c92 return media_device_register(&isi->media_dev); in mxc_isi_async_notifier_complete()
119 struct media_device *media_dev = &isi->media_dev; in mxc_isi_v4l2_init() local
125 strscpy(media_dev->model, "FSL Capture Media Device", in mxc_isi_v4l2_init()
126 sizeof(media_dev->model)); in mxc_isi_v4l2_init()
127 media_dev->dev = isi->dev; in mxc_isi_v4l2_init()
129 media_device_init(media_dev); in mxc_isi_v4l2_init()
132 v4l2_dev->mdev = media_dev; in mxc_isi_v4l2_init()
218 media_device_cleanup(media_dev); in mxc_isi_v4l2_init()
230 media_device_unregister(&isi->media_dev); in mxc_isi_v4l2_cleanup()
239 media_device_cleanup(&isi->media_dev); in mxc_isi_v4l2_cleanup()
/linux-6.12.1/drivers/staging/media/atomisp/pci/
Datomisp_v4l2.c392 if (isp->media_dev.hw_revision >= in atomisp_save_iunit_reg()
398 if (IS_CHT && (isp->media_dev.hw_revision >= ((ATOMISP_HW_REVISION_ISP2401 << in atomisp_save_iunit_reg()
716 if (isp->media_dev.hw_revision < in atomisp_csi_lane_config()
728 if (isp->media_dev.hw_revision < in atomisp_csi_lane_config()
828 media_device_unregister(&isp->media_dev); in atomisp_unregister_entities()
829 media_device_cleanup(&isp->media_dev); in atomisp_unregister_entities()
840 isp->media_dev.dev = isp->dev; in atomisp_register_entities()
842 strscpy(isp->media_dev.model, "Intel Atom ISP", in atomisp_register_entities()
843 sizeof(isp->media_dev.model)); in atomisp_register_entities()
845 media_device_init(&isp->media_dev); in atomisp_register_entities()
[all …]
Datomisp_internal.h48 (((isp)->media_dev.hw_revision & ATOMISP_HW_REVISION_MASK) == \
175 struct media_device media_dev; member
/linux-6.12.1/drivers/staging/media/starfive/camss/
Dstf-camss.c228 stfcamss->media_dev.dev = stfcamss->dev; in stfcamss_mc_init()
229 strscpy(stfcamss->media_dev.model, "Starfive Camera Subsystem", in stfcamss_mc_init()
230 sizeof(stfcamss->media_dev.model)); in stfcamss_mc_init()
231 media_device_init(&stfcamss->media_dev); in stfcamss_mc_init()
233 stfcamss->v4l2_dev.mdev = &stfcamss->media_dev; in stfcamss_mc_init()
320 ret = media_device_register(&stfcamss->media_dev); in stfcamss_probe()
348 media_device_unregister(&stfcamss->media_dev); in stfcamss_probe()
352 media_device_cleanup(&stfcamss->media_dev); in stfcamss_probe()
368 media_device_cleanup(&stfcamss->media_dev); in stfcamss_remove()
/linux-6.12.1/drivers/media/platform/rockchip/rkisp1/
Drkisp1-dev.c672 rkisp1->media_dev.hw_revision = info->isp_ver; in rkisp1_probe()
673 strscpy(rkisp1->media_dev.model, RKISP1_DRIVER_NAME, in rkisp1_probe()
674 sizeof(rkisp1->media_dev.model)); in rkisp1_probe()
675 rkisp1->media_dev.dev = &pdev->dev; in rkisp1_probe()
676 strscpy(rkisp1->media_dev.bus_info, RKISP1_BUS_INFO, in rkisp1_probe()
677 sizeof(rkisp1->media_dev.bus_info)); in rkisp1_probe()
678 media_device_init(&rkisp1->media_dev); in rkisp1_probe()
681 v4l2_dev->mdev = &rkisp1->media_dev; in rkisp1_probe()
688 ret = media_device_register(&rkisp1->media_dev); in rkisp1_probe()
718 media_device_unregister(&rkisp1->media_dev); in rkisp1_probe()
[all …]
/linux-6.12.1/drivers/media/platform/xilinx/
Dxilinx-vipp.c312 return media_device_register(&xdev->media_dev); in xvip_graph_notify_complete()
539 media_device_unregister(&xdev->media_dev); in xvip_composite_v4l2_cleanup()
540 media_device_cleanup(&xdev->media_dev); in xvip_composite_v4l2_cleanup()
547 xdev->media_dev.dev = xdev->dev; in xvip_composite_v4l2_init()
548 strscpy(xdev->media_dev.model, "Xilinx Video Composite Device", in xvip_composite_v4l2_init()
549 sizeof(xdev->media_dev.model)); in xvip_composite_v4l2_init()
550 xdev->media_dev.hw_revision = 0; in xvip_composite_v4l2_init()
552 media_device_init(&xdev->media_dev); in xvip_composite_v4l2_init()
554 xdev->v4l2_dev.mdev = &xdev->media_dev; in xvip_composite_v4l2_init()
559 media_device_cleanup(&xdev->media_dev); in xvip_composite_v4l2_init()
Dxilinx-vipp.h33 struct media_device media_dev; member
/linux-6.12.1/drivers/media/pci/saa7134/
Dsaa7134-core.c787 if (!dev->media_dev) in saa7134_unregister_media_device()
789 media_device_unregister(dev->media_dev); in saa7134_unregister_media_device()
790 media_device_cleanup(dev->media_dev); in saa7134_unregister_media_device()
791 kfree(dev->media_dev); in saa7134_unregister_media_device()
792 dev->media_dev = NULL; in saa7134_unregister_media_device()
814 media_device_for_each_entity(entity, dev->media_dev) { in saa7134_create_entities()
838 ret = media_device_register_entity(dev->media_dev, &dev->demod); in saa7134_create_entities()
906 ret = media_device_register_entity(dev->media_dev, ent); in saa7134_create_entities()
925 ret = media_device_register_entity(dev->media_dev, ent); in saa7134_create_entities()
1021 dev->media_dev = kzalloc(sizeof(*dev->media_dev), GFP_KERNEL); in saa7134_initdev()
[all …]
/linux-6.12.1/drivers/staging/media/omap4iss/
Diss.c459 mutex_lock(&iss->media_dev.graph_mutex); in iss_pipeline_enable()
477 mutex_unlock(&iss->media_dev.graph_mutex); in iss_pipeline_enable()
486 mutex_unlock(&iss->media_dev.graph_mutex); in iss_pipeline_enable()
928 media_device_unregister(&iss->media_dev); in iss_unregister_entities()
986 iss->media_dev.dev = iss->dev; in iss_register_entities()
987 strscpy(iss->media_dev.model, "TI OMAP4 ISS", in iss_register_entities()
988 sizeof(iss->media_dev.model)); in iss_register_entities()
989 iss->media_dev.hw_revision = iss->revision; in iss_register_entities()
990 iss->media_dev.ops = &iss_media_ops; in iss_register_entities()
991 ret = media_device_register(&iss->media_dev); in iss_register_entities()
[all …]
/linux-6.12.1/drivers/media/platform/samsung/s3c-camif/
Dcamif-core.c302 struct media_device *md = &camif->media_dev; in camif_media_dev_init()
487 ret = media_device_register(&camif->media_dev); in s3c_camif_probe()
496 media_device_unregister(&camif->media_dev); in s3c_camif_probe()
497 media_device_cleanup(&camif->media_dev); in s3c_camif_probe()
516 media_device_unregister(&camif->media_dev); in s3c_camif_remove()
517 media_device_cleanup(&camif->media_dev); in s3c_camif_remove()
/linux-6.12.1/drivers/media/platform/samsung/exynos4-is/
Dmedia-dev.c1210 media_dev)->link_setup_graph; in fimc_md_link_notify()
1410 mutex_lock(&fmd->media_dev.graph_mutex); in subdev_notifier_complete()
1418 mutex_unlock(&fmd->media_dev.graph_mutex); in subdev_notifier_complete()
1422 return media_device_register(&fmd->media_dev); in subdev_notifier_complete()
1450 strscpy(fmd->media_dev.model, "Samsung S5P FIMC", in fimc_md_probe()
1451 sizeof(fmd->media_dev.model)); in fimc_md_probe()
1452 fmd->media_dev.ops = &fimc_md_ops; in fimc_md_probe()
1453 fmd->media_dev.dev = dev; in fimc_md_probe()
1456 v4l2_dev->mdev = &fmd->media_dev; in fimc_md_probe()
1463 media_device_init(&fmd->media_dev); in fimc_md_probe()
[all …]
Dmedia-dev.h129 struct media_device media_dev; member
158 container_of(me->graph_obj.mdev, struct fimc_md, media_dev); in entity_to_fimc_mdev()
/linux-6.12.1/drivers/media/platform/ti/omap3isp/
Disp.c695 mutex_lock(&isp->media_dev.graph_mutex); in isp_pipeline_enable()
712 mutex_unlock(&isp->media_dev.graph_mutex); in isp_pipeline_enable()
731 mutex_unlock(&isp->media_dev.graph_mutex); in isp_pipeline_enable()
1598 media_device_unregister(&isp->media_dev); in isp_unregister_entities()
1610 media_device_cleanup(&isp->media_dev); in isp_unregister_entities()
1688 isp->media_dev.dev = isp->dev; in isp_register_entities()
1689 strscpy(isp->media_dev.model, "TI OMAP3 ISP", in isp_register_entities()
1690 sizeof(isp->media_dev.model)); in isp_register_entities()
1691 isp->media_dev.hw_revision = isp->revision; in isp_register_entities()
1692 isp->media_dev.ops = &isp_media_ops; in isp_register_entities()
[all …]
/linux-6.12.1/drivers/media/mc/
Dmc-devnode.c230 devnode->media_dev = mdev; in media_devnode_register()
260 devnode->media_dev = NULL; in media_devnode_register()
283 devnode->media_dev = NULL; in media_devnode_unregister()
/linux-6.12.1/drivers/media/platform/qcom/camss/
Dcamss.c2076 return media_device_register(&camss->media_dev); in camss_subdev_notifier_complete()
2271 camss->media_dev.dev = camss->dev; in camss_probe()
2272 strscpy(camss->media_dev.model, "Qualcomm Camera Subsystem", in camss_probe()
2273 sizeof(camss->media_dev.model)); in camss_probe()
2274 camss->media_dev.ops = &camss_media_ops; in camss_probe()
2275 media_device_init(&camss->media_dev); in camss_probe()
2277 camss->v4l2_dev.mdev = &camss->media_dev; in camss_probe()
2320 ret = media_device_register(&camss->media_dev); in camss_probe()
2345 media_device_unregister(&camss->media_dev); in camss_delete()
2346 media_device_cleanup(&camss->media_dev); in camss_delete()
/linux-6.12.1/drivers/media/pci/intel/ipu6/
Dipu6-isys.c788 isys->media_dev.dev = dev; in isys_register_devices()
789 media_device_pci_init(&isys->media_dev, in isys_register_devices()
792 strscpy(isys->v4l2_dev.name, isys->media_dev.model, in isys_register_devices()
795 ret = media_device_register(&isys->media_dev); in isys_register_devices()
799 isys->v4l2_dev.mdev = &isys->media_dev; in isys_register_devices()
834 media_device_unregister(&isys->media_dev); in isys_register_devices()
835 media_device_cleanup(&isys->media_dev); in isys_register_devices()
847 media_device_unregister(&isys->media_dev); in isys_unregister_devices()
848 media_device_cleanup(&isys->media_dev); in isys_unregister_devices()
/linux-6.12.1/drivers/media/usb/cx231xx/
Dcx231xx-cards.c1342 if (dev->media_dev) { in cx231xx_unregister_media_device()
1343 media_device_unregister(dev->media_dev); in cx231xx_unregister_media_device()
1344 media_device_cleanup(dev->media_dev); in cx231xx_unregister_media_device()
1345 kfree(dev->media_dev); in cx231xx_unregister_media_device()
1346 dev->media_dev = NULL; in cx231xx_unregister_media_device()
1390 dev->media_dev = mdev; in cx231xx_media_device_init()
1812 dev->v4l2_dev.mdev = dev->media_dev; in cx231xx_usb_probe()
1895 retval = v4l2_mc_create_media_graph(dev->media_dev); in cx231xx_usb_probe()
1897 retval = media_device_register(dev->media_dev); in cx231xx_usb_probe()

123