Home
last modified time | relevance | path

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

/Zephyr-latest/include/zephyr/drivers/
Dtee.h250 struct tee_shm { struct
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);
507 struct tee_shm **shmp);
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()
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()
580 struct tee_shm **shm);
[all …]
/Zephyr-latest/drivers/tee/
Dtee.c10 uint32_t flags, struct tee_shm **shmp) in tee_add_shm()
14 struct tee_shm *shm; in tee_add_shm()
32 shm = k_malloc(sizeof(struct tee_shm)); in tee_add_shm()
69 int tee_rm_shm(const struct device *dev, struct tee_shm *shm) in tee_rm_shm()
/Zephyr-latest/drivers/tee/optee/
Doptee.c158 struct tee_shm *shm = (struct tee_shm *)mp->u.tmem.shm_ref; 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()
315 static void cmd_free_suppl(const struct device *dev, struct tee_shm *shm) in cmd_free_suppl()
332 struct tee_shm *shm = NULL; in handle_cmd_alloc()
393 rc = tee_rm_shm(dev, (struct tee_shm *)arg->params[0].u.value.b); in handle_cmd_free()
396 cmd_free_suppl(dev, (struct tee_shm *)arg->params[0].u.value.b); in handle_cmd_free()
608 static uint32_t handle_func_rpc_call(const struct device *dev, struct tee_shm *shm, in handle_func_rpc_call()
644 struct tee_shm *shm = NULL; in handle_rpc_call()
662 shm = (struct tee_shm *)regs_to_u64(param->a1, param->a2); in handle_rpc_call()
669 shm = (struct tee_shm *)regs_to_u64(param->a1, param->a2); in handle_rpc_call()
[all …]
/Zephyr-latest/tests/drivers/tee/optee/src/
Dmain.c325 struct tee_shm *shm = NULL; in ZTEST()
391 struct tee_shm *shm; in cmd_alloc_free_call()
430 shm = (struct tee_shm *)regs_to_u64(a1, a2); in cmd_alloc_free_call()
506 struct tee_shm *shm; in cmd_rpc_call()
544 shm = (struct tee_shm *)regs_to_u64(a1, a2); in cmd_rpc_call()
649 struct tee_shm *shm; in cmd_shm_alloc_appl()
690 shm = (struct tee_shm *)regs_to_u64(a1, a2); in cmd_shm_alloc_appl()
827 struct tee_shm *shm; in cmd_gettime_call()
854 shm = (struct tee_shm *)regs_to_u64(a1, a2); in cmd_gettime_call()
927 struct tee_shm *shm; in cmd_suspend_call()
[all …]