Lines Matching refs:rpdev_ctrl
834 struct rpmsg_device *rpdev_ctrl; in rpmsg_virtio_add_ctrl_dev() local
845 rpdev_ctrl = &vch->rpdev; in rpmsg_virtio_add_ctrl_dev()
846 rpdev_ctrl->ops = &virtio_rpmsg_ops; in rpmsg_virtio_add_ctrl_dev()
848 rpdev_ctrl->dev.parent = &vrp->vdev->dev; in rpmsg_virtio_add_ctrl_dev()
849 rpdev_ctrl->dev.release = virtio_rpmsg_release_device; in rpmsg_virtio_add_ctrl_dev()
850 rpdev_ctrl->little_endian = virtio_is_little_endian(vrp->vdev); in rpmsg_virtio_add_ctrl_dev()
852 err = rpmsg_ctrldev_register_device(rpdev_ctrl); in rpmsg_virtio_add_ctrl_dev()
858 return rpdev_ctrl; in rpmsg_virtio_add_ctrl_dev()
861 static void rpmsg_virtio_del_ctrl_dev(struct rpmsg_device *rpdev_ctrl) in rpmsg_virtio_del_ctrl_dev() argument
863 if (!rpdev_ctrl) in rpmsg_virtio_del_ctrl_dev()
865 device_unregister(&rpdev_ctrl->dev); in rpmsg_virtio_del_ctrl_dev()
875 struct rpmsg_device *rpdev_ns, *rpdev_ctrl; in rpmsg_probe() local
949 rpdev_ctrl = rpmsg_virtio_add_ctrl_dev(vdev); in rpmsg_probe()
950 if (IS_ERR(rpdev_ctrl)) { in rpmsg_probe()
951 err = PTR_ERR(rpdev_ctrl); in rpmsg_probe()
1002 rpmsg_virtio_del_ctrl_dev(rpdev_ctrl); in rpmsg_probe()