Home
last modified time | relevance | path

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

123

/kernel/linux/linux-5.10/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
/kernel/linux/linux-5.10/drivers/staging/media/tegra-video/
Dvideo.c22 media_device_unregister(&vid->media_dev); in tegra_v4l2_dev_release()
23 media_device_cleanup(&vid->media_dev); in tegra_v4l2_dev_release()
38 vid->media_dev.dev = &dev->dev; in host1x_video_probe()
39 strscpy(vid->media_dev.model, "NVIDIA Tegra Video Input Device", in host1x_video_probe()
40 sizeof(vid->media_dev.model)); in host1x_video_probe()
42 media_device_init(&vid->media_dev); in host1x_video_probe()
43 ret = media_device_register(&vid->media_dev); in host1x_video_probe()
50 vid->v4l2_dev.mdev = &vid->media_dev; in host1x_video_probe()
85 media_device_unregister(&vid->media_dev); in host1x_video_probe()
87 media_device_cleanup(&vid->media_dev); in host1x_video_probe()
Dvideo.h19 struct media_device media_dev; member
/kernel/linux/linux-5.10/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 …]
/kernel/linux/linux-5.10/drivers/staging/media/rkisp1/
Drkisp1-dev.c508 strscpy(rkisp1->media_dev.model, RKISP1_DRIVER_NAME, in rkisp1_probe()
509 sizeof(rkisp1->media_dev.model)); in rkisp1_probe()
510 rkisp1->media_dev.dev = &pdev->dev; in rkisp1_probe()
511 strscpy(rkisp1->media_dev.bus_info, RKISP1_BUS_INFO, in rkisp1_probe()
512 sizeof(rkisp1->media_dev.bus_info)); in rkisp1_probe()
513 media_device_init(&rkisp1->media_dev); in rkisp1_probe()
516 v4l2_dev->mdev = &rkisp1->media_dev; in rkisp1_probe()
523 ret = media_device_register(&rkisp1->media_dev); in rkisp1_probe()
538 media_device_unregister(&rkisp1->media_dev); in rkisp1_probe()
558 media_device_unregister(&rkisp1->media_dev); in rkisp1_remove()
/kernel/linux/linux-5.10/drivers/media/platform/xilinx/
Dxilinx-vipp.c310 return media_device_register(&xdev->media_dev); in xvip_graph_notify_complete()
557 media_device_unregister(&xdev->media_dev); in xvip_composite_v4l2_cleanup()
558 media_device_cleanup(&xdev->media_dev); in xvip_composite_v4l2_cleanup()
565 xdev->media_dev.dev = xdev->dev; in xvip_composite_v4l2_init()
566 strscpy(xdev->media_dev.model, "Xilinx Video Composite Device", in xvip_composite_v4l2_init()
567 sizeof(xdev->media_dev.model)); in xvip_composite_v4l2_init()
568 xdev->media_dev.hw_revision = 0; in xvip_composite_v4l2_init()
570 media_device_init(&xdev->media_dev); in xvip_composite_v4l2_init()
572 xdev->v4l2_dev.mdev = &xdev->media_dev; in xvip_composite_v4l2_init()
577 media_device_cleanup(&xdev->media_dev); in xvip_composite_v4l2_init()
Dxilinx-vipp.h33 struct media_device media_dev; member
/kernel/linux/linux-5.10/drivers/staging/media/atomisp/pci/
Datomisp_v4l2.c550 if (isp->media_dev.hw_revision >= in atomisp_save_iunit_reg()
556 if (IS_CHT && (isp->media_dev.hw_revision >= ((ATOMISP_HW_REVISION_ISP2401 << in atomisp_save_iunit_reg()
926 if (isp->media_dev.hw_revision < in atomisp_csi_lane_config()
938 if (isp->media_dev.hw_revision < in atomisp_csi_lane_config()
1186 media_device_unregister(&isp->media_dev); in atomisp_unregister_entities()
1187 media_device_cleanup(&isp->media_dev); in atomisp_unregister_entities()
1195 isp->media_dev.dev = isp->dev; in atomisp_register_entities()
1197 strscpy(isp->media_dev.model, "Intel Atom ISP", in atomisp_register_entities()
1198 sizeof(isp->media_dev.model)); in atomisp_register_entities()
1200 media_device_init(&isp->media_dev); in atomisp_register_entities()
[all …]
Datomisp_internal.h49 (((isp)->media_dev.hw_revision & ATOMISP_HW_REVISION_MASK) == \
221 struct media_device media_dev; member
/kernel/linux/linux-5.10/drivers/media/platform/sunxi/sun6i-csi/
Dsun6i_csi.c688 return media_device_register(&csi->media_dev); in sun6i_subdev_notify_complete()
719 media_device_unregister(&csi->media_dev); in sun6i_csi_v4l2_cleanup()
725 media_device_cleanup(&csi->media_dev); in sun6i_csi_v4l2_cleanup()
732 csi->media_dev.dev = csi->dev; in sun6i_csi_v4l2_init()
733 strscpy(csi->media_dev.model, "Allwinner Video Capture Device", in sun6i_csi_v4l2_init()
734 sizeof(csi->media_dev.model)); in sun6i_csi_v4l2_init()
735 csi->media_dev.hw_revision = 0; in sun6i_csi_v4l2_init()
736 snprintf(csi->media_dev.bus_info, sizeof(csi->media_dev.bus_info), in sun6i_csi_v4l2_init()
739 media_device_init(&csi->media_dev); in sun6i_csi_v4l2_init()
749 csi->v4l2_dev.mdev = &csi->media_dev; in sun6i_csi_v4l2_init()
[all …]
Dsun6i_csi.h39 struct media_device media_dev; member
/kernel/linux/linux-5.10/drivers/media/platform/qcom/camss/
Dcamss.c793 return media_device_register(&camss->media_dev); in camss_subdev_notifier_complete()
878 camss->media_dev.dev = camss->dev; in camss_probe()
879 strscpy(camss->media_dev.model, "Qualcomm Camera Subsystem", in camss_probe()
880 sizeof(camss->media_dev.model)); in camss_probe()
881 camss->media_dev.ops = &camss_media_ops; in camss_probe()
882 media_device_init(&camss->media_dev); in camss_probe()
884 camss->v4l2_dev.mdev = &camss->media_dev; in camss_probe()
914 ret = media_device_register(&camss->media_dev); in camss_probe()
956 media_device_unregister(&camss->media_dev); in camss_delete()
957 media_device_cleanup(&camss->media_dev); in camss_delete()
/kernel/linux/linux-5.10/drivers/media/pci/saa7134/
Dsaa7134-core.c797 if (!dev->media_dev) in saa7134_unregister_media_device()
799 media_device_unregister(dev->media_dev); in saa7134_unregister_media_device()
800 media_device_cleanup(dev->media_dev); in saa7134_unregister_media_device()
801 kfree(dev->media_dev); in saa7134_unregister_media_device()
802 dev->media_dev = NULL; in saa7134_unregister_media_device()
824 media_device_for_each_entity(entity, dev->media_dev) { in saa7134_create_entities()
848 ret = media_device_register_entity(dev->media_dev, &dev->demod); in saa7134_create_entities()
916 ret = media_device_register_entity(dev->media_dev, ent); in saa7134_create_entities()
935 ret = media_device_register_entity(dev->media_dev, ent); in saa7134_create_entities()
1031 dev->media_dev = kzalloc(sizeof(*dev->media_dev), GFP_KERNEL); in saa7134_initdev()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/s3c-camif/
Dcamif-core.c301 struct media_device *md = &camif->media_dev; in camif_media_dev_init()
489 ret = media_device_register(&camif->media_dev); in s3c_camif_probe()
498 media_device_unregister(&camif->media_dev); in s3c_camif_probe()
499 media_device_cleanup(&camif->media_dev); in s3c_camif_probe()
517 media_device_unregister(&camif->media_dev); in s3c_camif_remove()
518 media_device_cleanup(&camif->media_dev); in s3c_camif_remove()
/kernel/linux/linux-5.10/drivers/media/platform/exynos4-is/
Dmedia-dev.c1208 media_dev)->link_setup_graph; in fimc_md_link_notify()
1409 mutex_lock(&fmd->media_dev.graph_mutex); in subdev_notifier_complete()
1417 mutex_unlock(&fmd->media_dev.graph_mutex); in subdev_notifier_complete()
1421 return media_device_register(&fmd->media_dev); in subdev_notifier_complete()
1445 strscpy(fmd->media_dev.model, "Samsung S5P FIMC", in fimc_md_probe()
1446 sizeof(fmd->media_dev.model)); in fimc_md_probe()
1447 fmd->media_dev.ops = &fimc_md_ops; in fimc_md_probe()
1448 fmd->media_dev.dev = dev; in fimc_md_probe()
1451 v4l2_dev->mdev = &fmd->media_dev; in fimc_md_probe()
1458 media_device_init(&fmd->media_dev); in fimc_md_probe()
[all …]
Dmedia-dev.h125 struct media_device media_dev; member
154 container_of(me->graph_obj.mdev, struct fimc_md, media_dev); in entity_to_fimc_mdev()
/kernel/linux/linux-5.10/drivers/staging/media/omap4iss/
Diss.c925 media_device_unregister(&iss->media_dev); in iss_unregister_entities()
983 iss->media_dev.dev = iss->dev; in iss_register_entities()
984 strscpy(iss->media_dev.model, "TI OMAP4 ISS", in iss_register_entities()
985 sizeof(iss->media_dev.model)); in iss_register_entities()
986 iss->media_dev.hw_revision = iss->revision; in iss_register_entities()
987 iss->media_dev.ops = &iss_media_ops; in iss_register_entities()
988 ret = media_device_register(&iss->media_dev); in iss_register_entities()
995 iss->v4l2_dev.mdev = &iss->media_dev; in iss_register_entities()
1298 ret = media_entity_enum_init(&iss->crashed, &iss->media_dev); in iss_probe()
/kernel/linux/linux-5.10/drivers/media/mc/
Dmc-devnode.c232 devnode->media_dev = mdev; in media_devnode_register()
263 devnode->media_dev = NULL; in media_devnode_register()
286 devnode->media_dev = NULL; in media_devnode_unregister()
/kernel/linux/linux-5.10/drivers/media/pci/intel/ipu3/
Dipu3-cio2.c1763 cio2->media_dev.dev = &cio2->pci_dev->dev; in cio2_pci_probe()
1764 strscpy(cio2->media_dev.model, CIO2_DEVICE_NAME, in cio2_pci_probe()
1765 sizeof(cio2->media_dev.model)); in cio2_pci_probe()
1766 snprintf(cio2->media_dev.bus_info, sizeof(cio2->media_dev.bus_info), in cio2_pci_probe()
1768 cio2->media_dev.hw_revision = 0; in cio2_pci_probe()
1770 media_device_init(&cio2->media_dev); in cio2_pci_probe()
1771 r = media_device_register(&cio2->media_dev); in cio2_pci_probe()
1775 cio2->v4l2_dev.mdev = &cio2->media_dev; in cio2_pci_probe()
1813 media_device_unregister(&cio2->media_dev); in cio2_pci_probe()
1814 media_device_cleanup(&cio2->media_dev); in cio2_pci_probe()
[all …]
/kernel/linux/linux-5.10/include/media/
Dmedia-devnode.h76 struct media_device *media_dev; member
/kernel/linux/linux-5.10/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()
Dcx231xx-dvb.c472 dvb_register_media_controller(&dvb->adapter, dev->media_dev); in register_dvb()
828 si2157_config.mdev = dev->media_dev; in dvb_init()
873 si2157_config.mdev = dev->media_dev; in dvb_init()
941 si2157_config.mdev = dev->media_dev; in dvb_init()
1014 si2157_config.mdev = dev->media_dev; in dvb_init()
1077 si2157_config.mdev = dev->media_dev; in dvb_init()
/kernel/linux/linux-5.10/drivers/media/platform/omap3isp/
Disp.c1593 media_device_unregister(&isp->media_dev); in isp_unregister_entities()
1605 media_device_cleanup(&isp->media_dev); in isp_unregister_entities()
1683 isp->media_dev.dev = isp->dev; in isp_register_entities()
1684 strscpy(isp->media_dev.model, "TI OMAP3 ISP", in isp_register_entities()
1685 sizeof(isp->media_dev.model)); in isp_register_entities()
1686 isp->media_dev.hw_revision = isp->revision; in isp_register_entities()
1687 isp->media_dev.ops = &isp_media_ops; in isp_register_entities()
1688 media_device_init(&isp->media_dev); in isp_register_entities()
1690 isp->v4l2_dev.mdev = &isp->media_dev; in isp_register_entities()
2031 ret = media_entity_enum_init(&isp->crashed, &isp->media_dev); in isp_subdev_notifier_complete()
[all …]
/kernel/linux/linux-5.10/drivers/media/platform/vsp1/
Dvsp1.h102 struct media_device media_dev; member

123