Lines Matching +full:11 +full:mp

125 				   u32 attr, const struct optee_msg_param *mp)  in from_msg_param_ffa_mem()  argument
133 p->u.memref.size = mp->u.fmem.size; in from_msg_param_ffa_mem()
135 if (mp->u.fmem.global_id != OPTEE_MSG_FMEM_INVALID_GLOBAL_ID) in from_msg_param_ffa_mem()
136 shm = optee_shm_from_ffa_handle(optee, mp->u.fmem.global_id); in from_msg_param_ffa_mem()
140 offs_low = mp->u.fmem.offs_low; in from_msg_param_ffa_mem()
141 offs_high = mp->u.fmem.offs_high; in from_msg_param_ffa_mem()
164 const struct optee_msg_param *mp = msg_params + n; in optee_ffa_from_msg_param() local
165 u32 attr = mp->attr & OPTEE_MSG_ATTR_TYPE_MASK; in optee_ffa_from_msg_param()
175 optee_from_msg_param_value(p, attr, mp); in optee_ffa_from_msg_param()
180 from_msg_param_ffa_mem(optee, p, attr, mp); in optee_ffa_from_msg_param()
190 static int to_msg_param_ffa_mem(struct optee_msg_param *mp, in to_msg_param_ffa_mem() argument
195 mp->attr = OPTEE_MSG_ATTR_TYPE_FMEM_INPUT + p->attr - in to_msg_param_ffa_mem()
201 mp->u.fmem.internal_offs = shm->offset; in to_msg_param_ffa_mem()
203 mp->u.fmem.offs_low = shm_offs; in to_msg_param_ffa_mem()
204 mp->u.fmem.offs_high = shm_offs >> 32; in to_msg_param_ffa_mem()
206 if (mp->u.fmem.offs_high != shm_offs >> 32) in to_msg_param_ffa_mem()
209 mp->u.fmem.global_id = shm->sec_world_id; in to_msg_param_ffa_mem()
211 memset(&mp->u, 0, sizeof(mp->u)); in to_msg_param_ffa_mem()
212 mp->u.fmem.global_id = OPTEE_MSG_FMEM_INVALID_GLOBAL_ID; in to_msg_param_ffa_mem()
214 mp->u.fmem.size = p->u.memref.size; in to_msg_param_ffa_mem()
237 struct optee_msg_param *mp = msg_params + n; in optee_ffa_to_msg_param() local
241 mp->attr = TEE_IOCTL_PARAM_ATTR_TYPE_NONE; in optee_ffa_to_msg_param()
242 memset(&mp->u, 0, sizeof(mp->u)); in optee_ffa_to_msg_param()
247 optee_to_msg_param_value(mp, p); in optee_ffa_to_msg_param()
252 if (to_msg_param_ffa_mem(mp, p)) in optee_ffa_to_msg_param()
1006 /* 486178e0-e7f8-11e3-bc5e0002a5d5c51b */