/Zephyr-latest/lib/posix/options/ |
D | shm.c | 64 struct shm_obj *shm; in shm_obj_find() local 66 SYS_DLIST_FOR_EACH_CONTAINER(&shm_list, shm, node) { in shm_obj_find() 67 if (shm->hash == key) { in shm_obj_find() 68 return shm; in shm_obj_find() 75 static void shm_obj_add(struct shm_obj *shm) in shm_obj_add() argument 77 sys_dlist_init(&shm->node); in shm_obj_add() 78 sys_dlist_append(&shm_list, &shm->node); in shm_obj_add() 81 static void shm_obj_remove(struct shm_obj *shm) in shm_obj_remove() argument 83 sys_dlist_remove(&shm->node); in shm_obj_remove() 84 if (shm->size > 0) { in shm_obj_remove() [all …]
|
D | CMakeLists.txt | 104 zephyr_library_sources_ifdef(CONFIG_POSIX_SHARED_MEMORY_OBJECTS shm.c)
|
/Zephyr-latest/drivers/tee/ |
D | tee.c | 14 struct tee_shm *shm; in tee_add_shm() local 32 shm = k_malloc(sizeof(struct tee_shm)); in tee_add_shm() 33 if (!shm) { in tee_add_shm() 38 shm->addr = p; in tee_add_shm() 39 shm->size = size; in tee_add_shm() 40 shm->flags = flags; in tee_add_shm() 41 shm->dev = dev; in tee_add_shm() 51 rc = api->shm_register(dev, shm); in tee_add_shm() 57 *shmp = shm; in tee_add_shm() 61 k_free(shm); in tee_add_shm() [all …]
|
/Zephyr-latest/include/zephyr/drivers/ |
D | tee.h | 310 typedef int (*tee_shm_register_t)(const struct device *dev, struct tee_shm *shm); 319 typedef int (*tee_shm_unregister_t)(const struct device *dev, struct tee_shm *shm); 519 int tee_rm_shm(const struct device *dev, struct tee_shm *shm); 537 uint32_t flags, struct tee_shm **shm); 540 uint32_t flags, struct tee_shm **shm) in z_impl_tee_shm_register() argument 543 return tee_add_shm(dev, addr, 0, size, flags | TEE_SHM_REGISTER, shm); in z_impl_tee_shm_register() 558 __syscall int tee_shm_unregister(const struct device *dev, struct tee_shm *shm); 560 static inline int z_impl_tee_shm_unregister(const struct device *dev, struct tee_shm *shm) in z_impl_tee_shm_unregister() argument 562 return tee_rm_shm(dev, shm); in z_impl_tee_shm_unregister() 580 struct tee_shm **shm); [all …]
|
/Zephyr-latest/drivers/ipm/ |
D | ipm_esp32.c | 50 struct esp32_ipm_memory shm; member 82 volatile void *shm = dev_data->shm.pro_cpu_shm; in esp32_ipm_isr() local 85 shm = dev_data->shm.app_cpu_shm; in esp32_ipm_isr() 91 shm); in esp32_ipm_isr() 143 memcpy(dev_data->shm.app_cpu_shm, data, size); in esp32_ipm_send() 153 memcpy(dev_data->shm.pro_cpu_shm, data, size); in esp32_ipm_send() 219 LOG_DBG("Address of PRO_CPU IPM shared memory: %p", (void *)data->shm.pro_cpu_shm); in esp32_ipm_init() 220 LOG_DBG("Address of APP_CPU IPM shared memory: %p", (void *)data->shm.app_cpu_shm); in esp32_ipm_init() 298 .shm.pro_cpu_shm = (uint8_t *)ESP32_IPM_SHM_ADDR_BY_IDX(idx), \ 299 .shm.app_cpu_shm = (uint8_t *)ESP32_IPM_SHM_ADDR_BY_IDX(idx) + \
|
/Zephyr-latest/drivers/tee/optee/ |
D | optee.c | 158 struct tee_shm *shm = (struct tee_shm *)mp->u.tmem.shm_ref; in msg_param_to_tmp_mem() local 163 if (!shm) { in msg_param_to_tmp_mem() 169 p->a = mp->u.tmem.buf_ptr - k_mem_phys_addr(shm->addr); in msg_param_to_tmp_mem() 294 static int cmd_alloc_suppl(const struct device *dev, size_t sz, struct tee_shm **shm) in cmd_alloc_suppl() argument 310 ret = tee_add_shm(dev, (void *)param.c, 0, param.b, 0, shm); in cmd_alloc_suppl() 315 static void cmd_free_suppl(const struct device *dev, struct tee_shm *shm) in cmd_free_suppl() argument 321 param.b = (uint64_t)shm; in cmd_free_suppl() 325 tee_rm_shm(dev, shm); in cmd_free_suppl() 332 struct tee_shm *shm = NULL; in handle_cmd_alloc() local 346 rc = tee_add_shm(dev, NULL, 0, arg->params[0].u.value.b, TEE_SHM_ALLOC, &shm); in handle_cmd_alloc() [all …]
|
/Zephyr-latest/drivers/mbox/ |
D | mbox_esp32.c | 51 struct esp32_mbox_memory shm; member 85 msg.data = (dev_data->this_core_id == 0) ? (const void *)dev_data->shm.pro_cpu_shm in esp32_mbox_isr() 86 : (const void *)dev_data->shm.app_cpu_shm; in esp32_mbox_isr() 203 LOG_DBG("Address of PRO_CPU MBOX shared memory: %p", data->shm.pro_cpu_shm); in esp32_mbox_init() 204 LOG_DBG("Address of APP_CPU MBOX shared memory: %p", data->shm.app_cpu_shm); in esp32_mbox_init() 261 .shm.pro_cpu_shm = (uint8_t *)ESP32_MBOX_SHM_ADDR_BY_IDX(idx), \ 262 .shm.app_cpu_shm = (uint8_t *)ESP32_MBOX_SHM_ADDR_BY_IDX(idx) + \
|
/Zephyr-latest/tests/posix/shm/src/ |
D | main.c | 39 ZTEST(shm, test_shm_open) in ZTEST() argument 87 ZTEST(shm, test_shm_unlink) in ZTEST() argument 110 ZTEST(shm, test_shm_read_write) in ZTEST() argument 151 ZTEST(shm, test_shm_mmap) in ZTEST() argument 200 ZTEST_SUITE(shm, NULL, NULL, NULL, NULL, NULL);
|
/Zephyr-latest/tests/drivers/tee/optee/src/ |
D | main.c | 325 struct tee_shm *shm = NULL; in ZTEST() local 338 ret = tee_shm_register(dev, NULL, 1, 0, &shm); in ZTEST() 346 ret = tee_shm_register(dev, &addr, 0, 0, &shm); in ZTEST() 355 ret = tee_shm_register(dev, &addr, 1, 0, &shm); in ZTEST() 359 ret = tee_shm_unregister(dev, shm); in ZTEST() 363 ret = tee_shm_alloc(dev, 1, 0, &shm); in ZTEST() 367 ret = tee_shm_free(dev, shm); in ZTEST() 391 struct tee_shm *shm; in cmd_alloc_free_call() local 430 shm = (struct tee_shm *)regs_to_u64(a1, a2); in cmd_alloc_free_call() 431 arg = (struct optee_msg_arg *)shm->addr; in cmd_alloc_free_call() [all …]
|
/Zephyr-latest/tests/posix/shm/ |
D | CMakeLists.txt | 5 project(shm) project
|
/Zephyr-latest/subsys/emul/espi/ |
D | emul_espi_host.c | 227 uint32_t shm; in emul_espi_host_get_acpi_shm() local 228 int rc = espi_read_lpc_request(espi_dev, EACPI_GET_SHARED_MEMORY, &shm); in emul_espi_host_get_acpi_shm() 232 return (uintptr_t) shm; in emul_espi_host_get_acpi_shm()
|
/Zephyr-latest/samples/drivers/ipm/ipm_ivshmem/ |
D | README.rst | 41 #. Appropriately set ownership of ``/dev/shm/ivshmem`` and 46 $ sudo chgrp $USER /dev/shm/ivshmem 47 $ sudo chmod 060 /dev/shm/ivshmem
|
/Zephyr-latest/samples/drivers/virtualization/ivshmem/doorbell/ |
D | README.rst | 104 #. Appropriately set ownership of :file:`/dev/shm/ivshmem` and 110 $ sudo chgrp ivshmem /dev/shm/ivshmem 111 $ sudo chmod 060 /dev/shm/ivshmem
|
/Zephyr-latest/drivers/espi/ |
D | host_subs_npcx.c | 171 .inst_shm = (struct shm_reg *)DT_INST_REG_ADDR_BY_NAME(0, shm),
|
/Zephyr-latest/cmake/emu/ |
D | qemu.cmake | 359 …backend-file,size=${CONFIG_QEMU_IVSHMEM_PLAIN_MEM_SIZE}M,share,mem-path=/dev/shm/ivshmem,id=hostmem
|
/Zephyr-latest/dts/arm/nuvoton/npcx/ |
D | npcx.dtsi | 364 reg-names = "mswc", "shm", "c2h", "kbc", "pm_acpi",
|