Lines Matching defs:rpdev_ctrl
835 struct rpmsg_device *rpdev_ctrl;
846 rpdev_ctrl = &vch->rpdev;
847 rpdev_ctrl->ops = &virtio_rpmsg_ops;
849 rpdev_ctrl->dev.parent = &vrp->vdev->dev;
850 rpdev_ctrl->dev.release = virtio_rpmsg_release_device;
851 rpdev_ctrl->little_endian = virtio_is_little_endian(vrp->vdev);
853 err = rpmsg_ctrldev_register_device(rpdev_ctrl);
859 return rpdev_ctrl;
862 static void rpmsg_virtio_del_ctrl_dev(struct rpmsg_device *rpdev_ctrl)
864 if (!rpdev_ctrl)
866 device_unregister(&rpdev_ctrl->dev);
876 struct rpmsg_device *rpdev_ns, *rpdev_ctrl;
950 rpdev_ctrl = rpmsg_virtio_add_ctrl_dev(vdev);
951 if (IS_ERR(rpdev_ctrl)) {
952 err = PTR_ERR(rpdev_ctrl);
1003 rpmsg_virtio_del_ctrl_dev(rpdev_ctrl);