Lines Matching refs:vch

257 	struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev);  in virtio_rpmsg_create_channel()  local
258 struct virtproc_info *vrp = vch->vrp; in virtio_rpmsg_create_channel()
266 struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev); in virtio_rpmsg_release_channel() local
267 struct virtproc_info *vrp = vch->vrp; in virtio_rpmsg_release_channel()
277 struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev); in virtio_rpmsg_create_ept() local
279 return __rpmsg_create_ept(vch->vrp, rpdev, cb, priv, chinfo.src); in virtio_rpmsg_create_ept()
310 struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(ept->rpdev); in virtio_rpmsg_destroy_ept() local
312 __rpmsg_destroy_ept(vch->vrp, ept); in virtio_rpmsg_destroy_ept()
317 struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev); in virtio_rpmsg_announce_create() local
318 struct virtproc_info *vrp = vch->vrp; in virtio_rpmsg_announce_create()
341 struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev); in virtio_rpmsg_announce_destroy() local
342 struct virtproc_info *vrp = vch->vrp; in virtio_rpmsg_announce_destroy()
374 struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev); in virtio_rpmsg_release_device() local
377 kfree(vch); in virtio_rpmsg_release_device()
388 struct virtio_rpmsg_channel *vch; in __rpmsg_create_channel() local
403 vch = kzalloc_obj(*vch); in __rpmsg_create_channel()
404 if (!vch) in __rpmsg_create_channel()
408 vch->vrp = vrp; in __rpmsg_create_channel()
411 rpdev = &vch->rpdev; in __rpmsg_create_channel()
495 struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev); in rpmsg_send_offchannel_raw() local
496 struct virtproc_info *vrp = vch->vrp; in rpmsg_send_offchannel_raw()
621 struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev); in virtio_rpmsg_poll() local
622 struct virtproc_info *vrp = vch->vrp; in virtio_rpmsg_poll()
648 struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev); in virtio_rpmsg_get_mtu() local
650 return vch->vrp->buf_size - sizeof(struct rpmsg_hdr); in virtio_rpmsg_get_mtu()
778 struct virtio_rpmsg_channel *vch; in rpmsg_virtio_add_ctrl_dev() local
782 vch = kzalloc_obj(*vch); in rpmsg_virtio_add_ctrl_dev()
783 if (!vch) in rpmsg_virtio_add_ctrl_dev()
787 vch->vrp = vrp; in rpmsg_virtio_add_ctrl_dev()
790 rpdev_ctrl = &vch->rpdev; in rpmsg_virtio_add_ctrl_dev()
821 struct virtio_rpmsg_channel *vch = NULL; in rpmsg_probe() local
901 vch = kzalloc_obj(*vch); in rpmsg_probe()
902 if (!vch) { in rpmsg_probe()
908 vch->vrp = vrp; in rpmsg_probe()
911 rpdev_ns = &vch->rpdev; in rpmsg_probe()