Lines Matching +full:host +full:- +full:side

4  * SPDX-License-Identifier: Apache-2.0
23 instance = CONTAINER_OF(p_rvdev->shpool, struct ipc_rpmsg_instance, shm_pool); in ns_bind_cb()
26 ept = &instance->endpoint[i]; in ns_bind_cb()
28 if (strcmp(name, ept->name) == 0) { in ns_bind_cb()
31 * *NOT* called on the REMOTE side. The bound_cb() in ns_bind_cb()
33 * REMOTE side if needed. in ns_bind_cb()
35 err = rpmsg_create_ept(&ept->ep, rdev, name, RPMSG_ADDR_ANY, in ns_bind_cb()
36 dest, instance->cb, rpmsg_service_unbind); in ns_bind_cb()
41 ept->bound = true; in ns_bind_cb()
42 if (instance->bound_cb) { in ns_bind_cb()
43 instance->bound_cb(ept); in ns_bind_cb()
55 return -EINVAL; in ipc_rpmsg_register_ept()
58 rdev = rpmsg_virtio_get_rpmsg_device(&instance->rvdev); in ipc_rpmsg_register_ept()
63 * the ns_bind_cb() callback function on the HOST side. in ipc_rpmsg_register_ept()
65 return rpmsg_create_ept(&ept->ep, rdev, ept->name, RPMSG_ADDR_ANY, in ipc_rpmsg_register_ept()
66 RPMSG_ADDR_ANY, instance->cb, rpmsg_service_unbind); in ipc_rpmsg_register_ept()
83 return -EINVAL; in ipc_rpmsg_init()
96 rpmsg_virtio_init_shm_pool(&instance->shm_pool, shb, size); in ipc_rpmsg_init()
98 return rpmsg_init_vdev_with_config(&instance->rvdev, vdev, bind_cb, in ipc_rpmsg_init()
99 shm_io, &instance->shm_pool, in ipc_rpmsg_init()
102 return rpmsg_init_vdev(&instance->rvdev, vdev, bind_cb, shm_io, NULL); in ipc_rpmsg_init()
110 return -EINVAL; in ipc_rpmsg_deinit()
113 rpmsg_deinit_vdev(&instance->rvdev); in ipc_rpmsg_deinit()
116 memset(&instance->shm_pool, 0, sizeof(struct rpmsg_virtio_shm_pool)); in ipc_rpmsg_deinit()