Lines Matching refs:shm_buf
145 u8 *shm_buf; in stm32_bsec_optee_ta_read() local
186 shm_buf = tee_shm_get_va(shm, 0); in stm32_bsec_optee_ta_read()
187 if (IS_ERR(shm_buf)) { in stm32_bsec_optee_ta_read()
188 ret = PTR_ERR(shm_buf); in stm32_bsec_optee_ta_read()
192 memcpy(buf, &shm_buf[offset % 4], bytes); in stm32_bsec_optee_ta_read()
210 u8 *shm_buf; in stm32_bsec_optee_ta_write() local
243 shm_buf = tee_shm_get_va(shm, 0); in stm32_bsec_optee_ta_write()
244 if (IS_ERR(shm_buf)) { in stm32_bsec_optee_ta_write()
245 ret = PTR_ERR(shm_buf); in stm32_bsec_optee_ta_write()
252 memcpy(shm_buf, buf, bytes); in stm32_bsec_optee_ta_write()
265 u32 *lock = (u32 *)shm_buf; in stm32_bsec_optee_ta_write()