Lines Matching refs:shm
11 static int pool_op_alloc(struct tee_shm_pool *pool, struct tee_shm *shm,
26 shm->kaddr = (void *)va;
27 shm->paddr = __psp_pa((void *)va);
28 shm->size = PAGE_SIZE << order;
31 rc = amdtee_map_shmem(shm);
34 shm->kaddr = NULL;
41 static void pool_op_free(struct tee_shm_pool *pool, struct tee_shm *shm)
44 amdtee_unmap_shmem(shm);
45 free_pages((unsigned long)shm->kaddr, get_order(shm->size));
46 shm->kaddr = NULL;