Lines Matching refs:rpdev_ctrl
825 struct rpmsg_device *rpdev_ctrl; in rpmsg_virtio_add_ctrl_dev() local
836 rpdev_ctrl = &vch->rpdev; in rpmsg_virtio_add_ctrl_dev()
837 rpdev_ctrl->ops = &virtio_rpmsg_ops; in rpmsg_virtio_add_ctrl_dev()
839 rpdev_ctrl->dev.parent = &vrp->vdev->dev; in rpmsg_virtio_add_ctrl_dev()
840 rpdev_ctrl->dev.release = virtio_rpmsg_release_device; in rpmsg_virtio_add_ctrl_dev()
841 rpdev_ctrl->little_endian = virtio_is_little_endian(vrp->vdev); in rpmsg_virtio_add_ctrl_dev()
843 err = rpmsg_chrdev_register_device(rpdev_ctrl); in rpmsg_virtio_add_ctrl_dev()
849 return rpdev_ctrl; in rpmsg_virtio_add_ctrl_dev()
852 static void rpmsg_virtio_del_ctrl_dev(struct rpmsg_device *rpdev_ctrl) in rpmsg_virtio_del_ctrl_dev() argument
854 if (!rpdev_ctrl) in rpmsg_virtio_del_ctrl_dev()
856 kfree(to_virtio_rpmsg_channel(rpdev_ctrl)); in rpmsg_virtio_del_ctrl_dev()
866 struct rpmsg_device *rpdev_ns, *rpdev_ctrl; in rpmsg_probe() local
940 rpdev_ctrl = rpmsg_virtio_add_ctrl_dev(vdev); in rpmsg_probe()
941 if (IS_ERR(rpdev_ctrl)) { in rpmsg_probe()
942 err = PTR_ERR(rpdev_ctrl); in rpmsg_probe()
994 rpmsg_virtio_del_ctrl_dev(rpdev_ctrl); in rpmsg_probe()