Lines Matching defs:mdev
9 * Sample driver that creates mdev device that simulates serial port over PCI
27 #include <linux/mdev.h>
127 /* State of each mdev device */
135 struct mdev_device *mdev;
750 struct mdev_device *mdev = to_mdev_device(vdev->dev);
752 container_of(mdev->type, struct mtty_type, type);
776 mdev_state->mdev = mdev;
785 static int mtty_probe(struct mdev_device *mdev)
790 mdev_state = vfio_alloc_device(mdev_state, vdev, &mdev->dev,
798 dev_set_drvdata(&mdev->dev, mdev_state);
815 static void mtty_remove(struct mdev_device *mdev)
817 struct mdev_state *mdev_state = dev_get_drvdata(&mdev->dev);