Lines Matching defs:mdev
30 struct media_device mdev;
37 to_media_device_instance(struct media_device *mdev)
39 return container_of(mdev, struct media_device_instance, mdev);
47 dev_dbg(mdi->mdev.dev, "%s: releasing Media Device\n", __func__);
51 media_device_unregister(&mdi->mdev);
52 media_device_cleanup(&mdi->mdev);
68 if (mdi->mdev.dev != dev)
81 return &mdi->mdev;
94 return &mdi->mdev;
101 struct media_device *mdev;
104 mdev = __media_device_get(&udev->dev, module_name, owner);
105 if (!mdev) {
111 if (!mdev->dev)
112 __media_device_usb_init(mdev, udev, udev->product,
115 return mdev;
119 void media_device_delete(struct media_device *mdev, const char *module_name,
122 struct media_device_instance *mdi = to_media_device_instance(mdev);
128 dev_dbg(mdi->mdev.dev,