/linux-6.1.9/sound/usb/ |
D | media.c | 44 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 …]
|
D | media.h | 29 struct media_device *media_dev; member 45 struct media_device *media_dev; member
|
/linux-6.1.9/drivers/staging/media/tegra-video/ |
D | video.c | 24 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()
|
D | video.h | 19 struct media_device media_dev; member
|
/linux-6.1.9/drivers/media/usb/au0828/ |
D | au0828-core.c | 128 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.1.9/drivers/media/platform/rockchip/rkisp1/ |
D | rkisp1-dev.c | 571 rkisp1->media_dev.hw_revision = info->isp_ver; in rkisp1_probe() 572 strscpy(rkisp1->media_dev.model, RKISP1_DRIVER_NAME, in rkisp1_probe() 573 sizeof(rkisp1->media_dev.model)); in rkisp1_probe() 574 rkisp1->media_dev.dev = &pdev->dev; in rkisp1_probe() 575 strscpy(rkisp1->media_dev.bus_info, RKISP1_BUS_INFO, in rkisp1_probe() 576 sizeof(rkisp1->media_dev.bus_info)); in rkisp1_probe() 577 media_device_init(&rkisp1->media_dev); in rkisp1_probe() 580 v4l2_dev->mdev = &rkisp1->media_dev; in rkisp1_probe() 587 ret = media_device_register(&rkisp1->media_dev); in rkisp1_probe() 617 media_device_unregister(&rkisp1->media_dev); in rkisp1_probe() [all …]
|
/linux-6.1.9/drivers/staging/media/atomisp/pci/ |
D | atomisp_v4l2.c | 509 if (isp->media_dev.hw_revision >= in atomisp_save_iunit_reg() 515 if (IS_CHT && (isp->media_dev.hw_revision >= ((ATOMISP_HW_REVISION_ISP2401 << in atomisp_save_iunit_reg() 885 if (isp->media_dev.hw_revision < in atomisp_csi_lane_config() 897 if (isp->media_dev.hw_revision < in atomisp_csi_lane_config() 1128 media_device_unregister(&isp->media_dev); in atomisp_unregister_entities() 1129 media_device_cleanup(&isp->media_dev); in atomisp_unregister_entities() 1137 isp->media_dev.dev = isp->dev; in atomisp_register_entities() 1139 strscpy(isp->media_dev.model, "Intel Atom ISP", in atomisp_register_entities() 1140 sizeof(isp->media_dev.model)); in atomisp_register_entities() 1142 media_device_init(&isp->media_dev); in atomisp_register_entities() [all …]
|
D | atomisp_internal.h | 48 (((isp)->media_dev.hw_revision & ATOMISP_HW_REVISION_MASK) == \ 212 struct media_device media_dev; member
|
/linux-6.1.9/drivers/media/platform/sunxi/sun6i-csi/ |
D | sun6i_csi.c | 680 struct media_device *media_dev = &v4l2->media_dev; in sun6i_csi_v4l2_setup() local 688 strscpy(media_dev->model, SUN6I_CSI_DESCRIPTION, in sun6i_csi_v4l2_setup() 689 sizeof(media_dev->model)); in sun6i_csi_v4l2_setup() 690 media_dev->hw_revision = 0; in sun6i_csi_v4l2_setup() 691 media_dev->ops = &sun6i_csi_media_ops; in sun6i_csi_v4l2_setup() 692 media_dev->dev = dev; in sun6i_csi_v4l2_setup() 694 media_device_init(media_dev); in sun6i_csi_v4l2_setup() 696 ret = media_device_register(media_dev); in sun6i_csi_v4l2_setup() 704 v4l2_dev->mdev = media_dev; in sun6i_csi_v4l2_setup() 749 media_device_unregister(media_dev); in sun6i_csi_v4l2_setup() [all …]
|
D | sun6i_csi.h | 46 struct media_device media_dev; member
|
/linux-6.1.9/drivers/media/platform/xilinx/ |
D | xilinx-vipp.c | 310 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()
|
D | xilinx-vipp.h | 33 struct media_device media_dev; member
|
/linux-6.1.9/drivers/media/pci/saa7134/ |
D | saa7134-core.c | 798 if (!dev->media_dev) in saa7134_unregister_media_device() 800 media_device_unregister(dev->media_dev); in saa7134_unregister_media_device() 801 media_device_cleanup(dev->media_dev); in saa7134_unregister_media_device() 802 kfree(dev->media_dev); in saa7134_unregister_media_device() 803 dev->media_dev = NULL; in saa7134_unregister_media_device() 825 media_device_for_each_entity(entity, dev->media_dev) { in saa7134_create_entities() 849 ret = media_device_register_entity(dev->media_dev, &dev->demod); in saa7134_create_entities() 917 ret = media_device_register_entity(dev->media_dev, ent); in saa7134_create_entities() 936 ret = media_device_register_entity(dev->media_dev, ent); in saa7134_create_entities() 1032 dev->media_dev = kzalloc(sizeof(*dev->media_dev), GFP_KERNEL); in saa7134_initdev() [all …]
|
/linux-6.1.9/drivers/staging/media/omap4iss/ |
D | iss.c | 459 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.1.9/drivers/media/platform/samsung/s3c-camif/ |
D | camif-core.c | 301 struct media_device *md = &camif->media_dev; in camif_media_dev_init() 486 ret = media_device_register(&camif->media_dev); in s3c_camif_probe() 495 media_device_unregister(&camif->media_dev); in s3c_camif_probe() 496 media_device_cleanup(&camif->media_dev); in s3c_camif_probe() 515 media_device_unregister(&camif->media_dev); in s3c_camif_remove() 516 media_device_cleanup(&camif->media_dev); in s3c_camif_remove()
|
/linux-6.1.9/drivers/media/platform/qcom/camss/ |
D | camss.c | 1441 return media_device_register(&camss->media_dev); in camss_subdev_notifier_complete() 1635 camss->media_dev.dev = camss->dev; in camss_probe() 1636 strscpy(camss->media_dev.model, "Qualcomm Camera Subsystem", in camss_probe() 1637 sizeof(camss->media_dev.model)); in camss_probe() 1638 camss->media_dev.ops = &camss_media_ops; in camss_probe() 1639 media_device_init(&camss->media_dev); in camss_probe() 1641 camss->v4l2_dev.mdev = &camss->media_dev; in camss_probe() 1671 ret = media_device_register(&camss->media_dev); in camss_probe() 1704 media_device_unregister(&camss->media_dev); in camss_delete() 1705 media_device_cleanup(&camss->media_dev); in camss_delete()
|
/linux-6.1.9/drivers/media/platform/samsung/exynos4-is/ |
D | media-dev.c | 1211 media_dev)->link_setup_graph; in fimc_md_link_notify() 1411 mutex_lock(&fmd->media_dev.graph_mutex); in subdev_notifier_complete() 1419 mutex_unlock(&fmd->media_dev.graph_mutex); in subdev_notifier_complete() 1423 return media_device_register(&fmd->media_dev); in subdev_notifier_complete() 1447 strscpy(fmd->media_dev.model, "Samsung S5P FIMC", in fimc_md_probe() 1448 sizeof(fmd->media_dev.model)); in fimc_md_probe() 1449 fmd->media_dev.ops = &fimc_md_ops; in fimc_md_probe() 1450 fmd->media_dev.dev = dev; in fimc_md_probe() 1453 v4l2_dev->mdev = &fmd->media_dev; in fimc_md_probe() 1460 media_device_init(&fmd->media_dev); in fimc_md_probe() [all …]
|
D | media-dev.h | 130 struct media_device media_dev; member 159 container_of(me->graph_obj.mdev, struct fimc_md, media_dev); in entity_to_fimc_mdev()
|
/linux-6.1.9/drivers/media/platform/ti/omap3isp/ |
D | isp.c | 695 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.1.9/drivers/media/mc/ |
D | mc-devnode.c | 232 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()
|
/linux-6.1.9/include/media/ |
D | media-devnode.h | 76 struct media_device *media_dev; member
|
/linux-6.1.9/drivers/media/usb/cx231xx/ |
D | cx231xx-cards.c | 1342 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()
|
D | cx231xx-dvb.c | 472 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()
|
/linux-6.1.9/drivers/media/pci/intel/ipu3/ |
D | ipu3-cio2-main.c | 1778 cio2->media_dev.dev = dev; in cio2_pci_probe() 1779 strscpy(cio2->media_dev.model, CIO2_DEVICE_NAME, in cio2_pci_probe() 1780 sizeof(cio2->media_dev.model)); in cio2_pci_probe() 1781 cio2->media_dev.hw_revision = 0; in cio2_pci_probe() 1783 media_device_init(&cio2->media_dev); in cio2_pci_probe() 1784 r = media_device_register(&cio2->media_dev); in cio2_pci_probe() 1788 cio2->v4l2_dev.mdev = &cio2->media_dev; in cio2_pci_probe() 1825 media_device_unregister(&cio2->media_dev); in cio2_pci_probe() 1826 media_device_cleanup(&cio2->media_dev); in cio2_pci_probe() 1838 media_device_unregister(&cio2->media_dev); in cio2_pci_remove() [all …]
|
/linux-6.1.9/drivers/media/platform/renesas/vsp1/ |
D | vsp1.h | 106 struct media_device media_dev; member
|