Lines Matching refs:reg_shm_in
68 struct tee_shm *reg_shm_in = NULL, *reg_shm_out = NULL; in trusted_tee_seal() local
73 reg_shm_in = tee_shm_register(pvt_data.ctx, (unsigned long)p->key, in trusted_tee_seal()
76 if (IS_ERR(reg_shm_in)) { in trusted_tee_seal()
78 return PTR_ERR(reg_shm_in); in trusted_tee_seal()
95 param[0].u.memref.shm = reg_shm_in; in trusted_tee_seal()
115 if (reg_shm_in) in trusted_tee_seal()
116 tee_shm_free(reg_shm_in); in trusted_tee_seal()
129 struct tee_shm *reg_shm_in = NULL, *reg_shm_out = NULL; in trusted_tee_unseal() local
134 reg_shm_in = tee_shm_register(pvt_data.ctx, (unsigned long)p->blob, in trusted_tee_unseal()
137 if (IS_ERR(reg_shm_in)) { in trusted_tee_unseal()
139 return PTR_ERR(reg_shm_in); in trusted_tee_unseal()
156 param[0].u.memref.shm = reg_shm_in; in trusted_tee_unseal()
176 if (reg_shm_in) in trusted_tee_unseal()
177 tee_shm_free(reg_shm_in); in trusted_tee_unseal()