Home
last modified time | relevance | path

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

/Zephyr-latest/samples/drivers/virtualization/ivshmem/doorbell/src/
Divshmem.c63 APP_A_BSS static struct ivshmem_ctx shmem_ctx; variable
143 shmem_ctx.dev = DEVICE_DT_GET(DT_NODELABEL(ivshmem0)); in setup_ivshmem()
144 if (!device_is_ready(shmem_ctx.dev)) { in setup_ivshmem()
149 shmem_ctx.size = ivshmem_get_mem(shmem_ctx.dev, (uintptr_t *)&shmem_ctx.mem); in setup_ivshmem()
150 if (shmem_ctx.size == 0) { in setup_ivshmem()
154 if (shmem_ctx.mem == NULL) { in setup_ivshmem()
159 shmem_ctx.id = ivshmem_get_id(shmem_ctx.dev); in setup_ivshmem()
160 LOG_DBG("id for doorbell: %u", shmem_ctx.id); in setup_ivshmem()
162 shmem_ctx.vectors = ivshmem_get_vectors(shmem_ctx.dev); in setup_ivshmem()
163 if (shmem_ctx.vectors == 0) { in setup_ivshmem()
[all …]