Lines Matching refs:vch
262 struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev); in virtio_rpmsg_create_channel() local
263 struct virtproc_info *vrp = vch->vrp; in virtio_rpmsg_create_channel()
271 struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev); in virtio_rpmsg_release_channel() local
272 struct virtproc_info *vrp = vch->vrp; in virtio_rpmsg_release_channel()
282 struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev); in virtio_rpmsg_create_ept() local
284 return __rpmsg_create_ept(vch->vrp, rpdev, cb, priv, chinfo.src); in virtio_rpmsg_create_ept()
315 struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(ept->rpdev); in virtio_rpmsg_destroy_ept() local
317 __rpmsg_destroy_ept(vch->vrp, ept); in virtio_rpmsg_destroy_ept()
322 struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev); in virtio_rpmsg_announce_create() local
323 struct virtproc_info *vrp = vch->vrp; in virtio_rpmsg_announce_create()
346 struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev); in virtio_rpmsg_announce_destroy() local
347 struct virtproc_info *vrp = vch->vrp; in virtio_rpmsg_announce_destroy()
379 struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev); in virtio_rpmsg_release_device() local
381 kfree(vch); in virtio_rpmsg_release_device()
392 struct virtio_rpmsg_channel *vch; in __rpmsg_create_channel() local
407 vch = kzalloc(sizeof(*vch), GFP_KERNEL); in __rpmsg_create_channel()
408 if (!vch) in __rpmsg_create_channel()
412 vch->vrp = vrp; in __rpmsg_create_channel()
415 rpdev = &vch->rpdev; in __rpmsg_create_channel()
556 struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev); in rpmsg_send_offchannel_raw() local
557 struct virtproc_info *vrp = vch->vrp; in rpmsg_send_offchannel_raw()
703 struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev); in virtio_rpmsg_get_mtu() local
705 return vch->vrp->buf_size - sizeof(struct rpmsg_hdr); in virtio_rpmsg_get_mtu()
833 struct virtio_rpmsg_channel *vch; in rpmsg_virtio_add_ctrl_dev() local
837 vch = kzalloc(sizeof(*vch), GFP_KERNEL); in rpmsg_virtio_add_ctrl_dev()
838 if (!vch) in rpmsg_virtio_add_ctrl_dev()
842 vch->vrp = vrp; in rpmsg_virtio_add_ctrl_dev()
845 rpdev_ctrl = &vch->rpdev; in rpmsg_virtio_add_ctrl_dev()
874 struct virtio_rpmsg_channel *vch = NULL; in rpmsg_probe() local
957 vch = kzalloc(sizeof(*vch), GFP_KERNEL); in rpmsg_probe()
958 if (!vch) { in rpmsg_probe()
964 vch->vrp = vrp; in rpmsg_probe()
967 rpdev_ns = &vch->rpdev; in rpmsg_probe()