Lines Matching refs:reg_shm_out
68 struct tee_shm *reg_shm_in = NULL, *reg_shm_out = NULL; in trusted_tee_seal() local
81 reg_shm_out = tee_shm_register(pvt_data.ctx, (unsigned long)p->blob, in trusted_tee_seal()
84 if (IS_ERR(reg_shm_out)) { in trusted_tee_seal()
86 ret = PTR_ERR(reg_shm_out); in trusted_tee_seal()
99 param[1].u.memref.shm = reg_shm_out; in trusted_tee_seal()
113 if (reg_shm_out) in trusted_tee_seal()
114 tee_shm_free(reg_shm_out); in trusted_tee_seal()
129 struct tee_shm *reg_shm_in = NULL, *reg_shm_out = NULL; in trusted_tee_unseal() local
142 reg_shm_out = tee_shm_register(pvt_data.ctx, (unsigned long)p->key, in trusted_tee_unseal()
145 if (IS_ERR(reg_shm_out)) { in trusted_tee_unseal()
147 ret = PTR_ERR(reg_shm_out); in trusted_tee_unseal()
160 param[1].u.memref.shm = reg_shm_out; in trusted_tee_unseal()
174 if (reg_shm_out) in trusted_tee_unseal()
175 tee_shm_free(reg_shm_out); in trusted_tee_unseal()