Home
last modified time | relevance | path

Searched refs:protmem (Results 1 – 5 of 5) sorted by relevance

/linux/drivers/tee/optee/
H A Dprotmem.c24 struct tee_shm *protmem; member
39 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 …]
H A Dffa_abi.c682 static int optee_ffa_lend_protmem(struct optee *optee, struct tee_shm *protmem, in optee_ffa_lend_protmem() argument
708 page = phys_to_page(protmem->paddr); in optee_ffa_lend_protmem()
710 sg_set_page(&sgl, page, protmem->size, 0); in optee_ffa_lend_protmem()
722 rc = optee_shm_add_ffa_handle(optee, protmem, args.g_handle); in optee_ffa_lend_protmem()
726 protmem->sec_world_id = args.g_handle; in optee_ffa_lend_protmem()
743 struct tee_shm *protmem) in optee_ffa_reclaim_protmem() argument
748 u64 global_handle = protmem->sec_world_id; in optee_ffa_reclaim_protmem()
757 protmem->sec_world_id = 0; in optee_ffa_reclaim_protmem()
H A DMakefile7 optee-objs += protmem.o
H A Dsmc_abi.c968 static int optee_smc_lend_protmem(struct optee *optee, struct tee_shm *protmem, in optee_smc_lend_protmem() argument
986 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() argument
1019 msg_arg->params[0].u.rmem.shm_ref = (u_long)protmem; in optee_smc_reclaim_protmem()
H A Doptee_private.h217 int (*lend_protmem)(struct optee *optee, struct tee_shm *protmem,
220 int (*reclaim_protmem)(struct optee *optee, struct tee_shm *protmem);