Lines Matching refs:vch

256 	struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev);  in virtio_rpmsg_create_channel()  local
257 struct virtproc_info *vrp = vch->vrp; in virtio_rpmsg_create_channel()
265 struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev); in virtio_rpmsg_release_channel() local
266 struct virtproc_info *vrp = vch->vrp; in virtio_rpmsg_release_channel()
276 struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev); in virtio_rpmsg_create_ept() local
278 return __rpmsg_create_ept(vch->vrp, rpdev, cb, priv, chinfo.src); in virtio_rpmsg_create_ept()
309 struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(ept->rpdev); in virtio_rpmsg_destroy_ept() local
311 __rpmsg_destroy_ept(vch->vrp, ept); in virtio_rpmsg_destroy_ept()
316 struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev); in virtio_rpmsg_announce_create() local
317 struct virtproc_info *vrp = vch->vrp; in virtio_rpmsg_announce_create()
340 struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev); in virtio_rpmsg_announce_destroy() local
341 struct virtproc_info *vrp = vch->vrp; in virtio_rpmsg_announce_destroy()
373 struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev); in virtio_rpmsg_release_device() local
376 kfree(vch); in virtio_rpmsg_release_device()
387 struct virtio_rpmsg_channel *vch; in __rpmsg_create_channel() local
402 vch = kzalloc(sizeof(*vch), GFP_KERNEL); in __rpmsg_create_channel()
403 if (!vch) in __rpmsg_create_channel()
407 vch->vrp = vrp; in __rpmsg_create_channel()
410 rpdev = &vch->rpdev; in __rpmsg_create_channel()
551 struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev); in rpmsg_send_offchannel_raw() local
552 struct virtproc_info *vrp = vch->vrp; in rpmsg_send_offchannel_raw()
682 struct virtio_rpmsg_channel *vch = to_virtio_rpmsg_channel(rpdev); in virtio_rpmsg_get_mtu() local
684 return vch->vrp->buf_size - sizeof(struct rpmsg_hdr); in virtio_rpmsg_get_mtu()
812 struct virtio_rpmsg_channel *vch; in rpmsg_virtio_add_ctrl_dev() local
816 vch = kzalloc(sizeof(*vch), GFP_KERNEL); in rpmsg_virtio_add_ctrl_dev()
817 if (!vch) in rpmsg_virtio_add_ctrl_dev()
821 vch->vrp = vrp; in rpmsg_virtio_add_ctrl_dev()
824 rpdev_ctrl = &vch->rpdev; in rpmsg_virtio_add_ctrl_dev()
855 struct virtio_rpmsg_channel *vch = NULL; in rpmsg_probe() local
938 vch = kzalloc(sizeof(*vch), GFP_KERNEL); in rpmsg_probe()
939 if (!vch) { in rpmsg_probe()
945 vch->vrp = vrp; in rpmsg_probe()
948 rpdev_ns = &vch->rpdev; in rpmsg_probe()