Home
last modified time | relevance | path

Searched refs:vr (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/subsys/ipc/ipc_service/lib/
Dipc_static_vrings.c15 struct ipc_static_vrings *vr; in ipc_virtio_notify() local
17 vr = CONTAINER_OF(vq->vq_dev, struct ipc_static_vrings, vdev); in ipc_virtio_notify()
19 if (vr->notify_cb) { in ipc_virtio_notify()
20 vr->notify_cb(vq, vr->priv); in ipc_virtio_notify()
31 struct ipc_static_vrings *vr; in ipc_virtio_set_status() local
37 vr = CONTAINER_OF(p_vdev, struct ipc_static_vrings, vdev); in ipc_virtio_set_status()
39 sys_write8(status, vr->status_reg_addr); in ipc_virtio_set_status()
40 sys_cache_data_flush_range((void *) vr->status_reg_addr, sizeof(status)); in ipc_virtio_set_status()
50 struct ipc_static_vrings *vr; in ipc_virtio_get_status() local
53 vr = CONTAINER_OF(p_vdev, struct ipc_static_vrings, vdev); in ipc_virtio_get_status()
[all …]
/Zephyr-latest/subsys/ipc/ipc_service/backends/
Dipc_rpmsg_static_vrings.c46 struct ipc_static_vrings vr; member
251 static int vr_shm_configure(struct ipc_static_vrings *vr, const struct backend_config_t *conf) in vr_shm_configure() argument
282 vr->shm_addr = ROUND_UP(conf->shm_addr + VDEV_STATUS_SIZE, MEM_ALIGNMENT); in vr_shm_configure()
283 vr->shm_size = shm_size(num_desc, conf->buffer_size); in vr_shm_configure()
285 vr->rx_addr = vr->shm_addr + VRING_COUNT * vq_ring_size(num_desc, conf->buffer_size); in vr_shm_configure()
286 vr->tx_addr = ROUND_UP(vr->rx_addr + vring_size(num_desc, MEM_ALIGNMENT), in vr_shm_configure()
289 vr->status_reg_addr = conf->shm_addr; in vr_shm_configure()
291 vr->vring_size = num_desc; in vr_shm_configure()
313 virtqueue_notification(data->vr.vq[vq_id]); in mbox_callback_process()
573 err = vr_shm_configure(&data->vr, conf); in open()
[all …]
/Zephyr-latest/include/zephyr/ipc/
Dipc_static_vrings.h103 int ipc_static_vrings_init(struct ipc_static_vrings *vr, unsigned int role);
115 int ipc_static_vrings_deinit(struct ipc_static_vrings *vr, unsigned int role);