Lines Matching defs:shm
142 struct tee_shm *shm;
168 shm = tee_shm_alloc_kernel_buf(ctx, num_bytes);
169 if (IS_ERR(shm)) {
170 ret = PTR_ERR(shm);
175 param[1].u.memref.shm = shm;
186 shm_buf = tee_shm_get_va(shm, 0);
196 tee_shm_free(shm);
207 { struct tee_shm *shm;
233 shm = tee_shm_alloc_kernel_buf(ctx, bytes);
234 if (IS_ERR(shm)) {
235 ret = PTR_ERR(shm);
240 param[1].u.memref.shm = shm;
243 shm_buf = tee_shm_get_va(shm, 0);
247 tee_shm_free(shm);
292 tee_shm_free(shm);