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