Lines Matching refs:msg_arg
969 struct optee_msg_arg *msg_arg; in optee_shm_register() local
980 msg_arg = shm_arg->addr; in optee_shm_register()
982 memset(msg_arg, 0, OPTEE_MSG_GET_ARG_SIZE(1)); in optee_shm_register()
991 msg_arg->cmd = OPTEE_MSG_CMD_REGISTER_SHM; in optee_shm_register()
993 msg_arg->params->attr = OPTEE_MSG_ATTR_TYPE_TMEM_OUTPUT | OPTEE_MSG_ATTR_NONCONTIG; in optee_shm_register()
994 msg_arg->num_params = 1; in optee_shm_register()
995 msg_arg->params->u.tmem.buf_ptr = pl_phys_and_offset; in optee_shm_register()
996 msg_arg->params->u.tmem.shm_ref = (uint64_t)shm; in optee_shm_register()
997 msg_arg->params->u.tmem.size = shm->size; in optee_shm_register()
999 if (optee_call(dev, msg_arg)) { in optee_shm_register()
1013 struct optee_msg_arg *msg_arg; in optee_shm_unregister() local
1022 msg_arg = shm_arg->addr; in optee_shm_unregister()
1024 memset(msg_arg, 0, OPTEE_MSG_GET_ARG_SIZE(1)); in optee_shm_unregister()
1026 msg_arg->cmd = OPTEE_MSG_CMD_UNREGISTER_SHM; in optee_shm_unregister()
1027 msg_arg->num_params = 1; in optee_shm_unregister()
1028 msg_arg->params[0].attr = OPTEE_MSG_ATTR_TYPE_RMEM_INPUT; in optee_shm_unregister()
1029 msg_arg->params[0].u.rmem.shm_ref = (uint64_t)shm; in optee_shm_unregister()
1031 if (optee_call(dev, msg_arg)) { in optee_shm_unregister()