Lines Matching refs:reg_shm
68 struct tee_shm *reg_shm = NULL; in trusted_tee_seal() local
73 reg_shm = tee_shm_register_kernel_buf(pvt_data.ctx, p->key, in trusted_tee_seal()
75 if (IS_ERR(reg_shm)) { in trusted_tee_seal()
77 return PTR_ERR(reg_shm); in trusted_tee_seal()
85 param[0].u.memref.shm = reg_shm; in trusted_tee_seal()
89 param[1].u.memref.shm = reg_shm; in trusted_tee_seal()
102 tee_shm_free(reg_shm); in trusted_tee_seal()
115 struct tee_shm *reg_shm = NULL; in trusted_tee_unseal() local
120 reg_shm = tee_shm_register_kernel_buf(pvt_data.ctx, p->key, in trusted_tee_unseal()
122 if (IS_ERR(reg_shm)) { in trusted_tee_unseal()
124 return PTR_ERR(reg_shm); in trusted_tee_unseal()
132 param[0].u.memref.shm = reg_shm; in trusted_tee_unseal()
136 param[1].u.memref.shm = reg_shm; in trusted_tee_unseal()
149 tee_shm_free(reg_shm); in trusted_tee_unseal()
162 struct tee_shm *reg_shm = NULL; in trusted_tee_get_random() local
167 reg_shm = tee_shm_register_kernel_buf(pvt_data.ctx, key, key_len); in trusted_tee_get_random()
168 if (IS_ERR(reg_shm)) { in trusted_tee_get_random()
170 return PTR_ERR(reg_shm); in trusted_tee_get_random()
178 param[0].u.memref.shm = reg_shm; in trusted_tee_get_random()
191 tee_shm_free(reg_shm); in trusted_tee_get_random()