Lines Matching defs:cdev
12 #include <linux/cdev.h>
37 #define cdev_to_eptdev(i_cdev) container_of(i_cdev, struct rpmsg_eptdev, cdev)
40 #define cdev_to_ctrldev(i_cdev) container_of(i_cdev, struct rpmsg_ctrldev, cdev)
45 * @cdev: cdev for the ctrl device
50 struct cdev cdev;
57 * @cdev: cdev for the endpoint device
68 struct cdev cdev;
95 cdev_device_del(&eptdev->cdev, &eptdev->dev);
365 cdev_init(&eptdev->cdev, &rpmsg_eptdev_fops);
366 eptdev->cdev.owner = THIS_MODULE;
379 ret = cdev_device_add(&eptdev->cdev, &eptdev->dev);
474 cdev_init(&ctrldev->cdev, &rpmsg_ctrldev_fops);
475 ctrldev->cdev.owner = THIS_MODULE;
488 ret = cdev_device_add(&ctrldev->cdev, &ctrldev->dev);
520 cdev_device_del(&ctrldev->cdev, &ctrldev->dev);