Lines Matching full:shm
152 u32 get_buffer_id(struct tee_shm *shm) in get_buffer_id() argument
154 struct amdtee_context_data *ctxdata = shm->ctx->data; in get_buffer_id()
160 if (shmdata->kaddr == shm->kaddr) { in get_buffer_id()
340 int amdtee_map_shmem(struct tee_shm *shm) in amdtee_map_shmem() argument
348 if (!shm) in amdtee_map_shmem()
356 shmem.kaddr = shm->kaddr; in amdtee_map_shmem()
357 shmem.size = shm->size; in amdtee_map_shmem()
370 shmnode->kaddr = shm->kaddr; in amdtee_map_shmem()
372 ctxdata = shm->ctx->data; in amdtee_map_shmem()
382 void amdtee_unmap_shmem(struct tee_shm *shm) in amdtee_unmap_shmem() argument
388 if (!shm) in amdtee_unmap_shmem()
391 buf_id = get_buffer_id(shm); in amdtee_unmap_shmem()
395 ctxdata = shm->ctx->data; in amdtee_unmap_shmem()