Lines Matching refs:fmem
132 p->u.memref.size = mp->u.fmem.size; in from_msg_param_ffa_mem()
134 if (mp->u.fmem.global_id != OPTEE_MSG_FMEM_INVALID_GLOBAL_ID) in from_msg_param_ffa_mem()
135 shm = optee_shm_from_ffa_handle(optee, mp->u.fmem.global_id); in from_msg_param_ffa_mem()
139 offs_low = mp->u.fmem.offs_low; in from_msg_param_ffa_mem()
140 offs_high = mp->u.fmem.offs_high; in from_msg_param_ffa_mem()
200 mp->u.fmem.internal_offs = shm->offset; in to_msg_param_ffa_mem()
202 mp->u.fmem.offs_low = shm_offs; in to_msg_param_ffa_mem()
203 mp->u.fmem.offs_high = shm_offs >> 32; in to_msg_param_ffa_mem()
205 if (mp->u.fmem.offs_high != shm_offs >> 32) in to_msg_param_ffa_mem()
208 mp->u.fmem.global_id = shm->sec_world_id; in to_msg_param_ffa_mem()
211 mp->u.fmem.global_id = OPTEE_MSG_FMEM_INVALID_GLOBAL_ID; in to_msg_param_ffa_mem()
213 mp->u.fmem.size = p->u.memref.size; in to_msg_param_ffa_mem()
458 .u.fmem.size = tee_shm_get_size(shm), in handle_ffa_rpc_func_cmd_shm_alloc()
459 .u.fmem.global_id = shm->sec_world_id, in handle_ffa_rpc_func_cmd_shm_alloc()
460 .u.fmem.internal_offs = shm->offset, in handle_ffa_rpc_func_cmd_shm_alloc()