Searched refs:protmem (Results 1 – 2 of 2) sorted by relevance
24 struct tee_shm *protmem; member39 rp->protmem = tee_shm_alloc_dma_mem(rp->optee->ctx, rp->page_count); in init_dyn_protmem()40 if (IS_ERR(rp->protmem)) { in init_dyn_protmem()41 rc = PTR_ERR(rp->protmem); in init_dyn_protmem()53 rc = rp->optee->ops->lend_protmem(rp->optee, rp->protmem, in init_dyn_protmem()58 rp->protmem->flags |= TEE_SHM_DYNAMIC; in init_dyn_protmem()66 rc = gen_pool_add(rp->gen_pool, rp->protmem->paddr, in init_dyn_protmem()67 rp->protmem->size, -1); in init_dyn_protmem()78 rp->optee->ops->reclaim_protmem(rp->optee, rp->protmem); in init_dyn_protmem()80 tee_shm_put(rp->protmem); in init_dyn_protmem()[all …]
968 static int optee_smc_lend_protmem(struct optee *optee, struct tee_shm *protmem, in optee_smc_lend_protmem() argument986 msg_arg->params[1].u.tmem.buf_ptr = protmem->paddr; in optee_smc_lend_protmem()987 msg_arg->params[1].u.tmem.size = protmem->size; in optee_smc_lend_protmem()988 msg_arg->params[1].u.tmem.shm_ref = (u_long)protmem; in optee_smc_lend_protmem()997 protmem->sec_world_id = (u_long)protmem; in optee_smc_lend_protmem()1005 struct tee_shm *protmem) in optee_smc_reclaim_protmem() argument1019 msg_arg->params[0].u.rmem.shm_ref = (u_long)protmem; in optee_smc_reclaim_protmem()