Lines Matching +full:11 +full:mp
124 u32 attr, const struct optee_msg_param *mp) in from_msg_param_ffa_mem() argument
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()
163 const struct optee_msg_param *mp = msg_params + n; in optee_ffa_from_msg_param() local
164 u32 attr = mp->attr & OPTEE_MSG_ATTR_TYPE_MASK; in optee_ffa_from_msg_param()
174 optee_from_msg_param_value(p, attr, mp); in optee_ffa_from_msg_param()
179 from_msg_param_ffa_mem(optee, p, attr, mp); in optee_ffa_from_msg_param()
189 static int to_msg_param_ffa_mem(struct optee_msg_param *mp, in to_msg_param_ffa_mem() argument
194 mp->attr = OPTEE_MSG_ATTR_TYPE_FMEM_INPUT + p->attr - in to_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()
210 memset(&mp->u, 0, sizeof(mp->u)); 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()
236 struct optee_msg_param *mp = msg_params + n; in optee_ffa_to_msg_param() local
240 mp->attr = TEE_IOCTL_PARAM_ATTR_TYPE_NONE; in optee_ffa_to_msg_param()
241 memset(&mp->u, 0, sizeof(mp->u)); in optee_ffa_to_msg_param()
246 optee_to_msg_param_value(mp, p); in optee_ffa_to_msg_param()
251 if (to_msg_param_ffa_mem(mp, p)) in optee_ffa_to_msg_param()
986 /* 486178e0-e7f8-11e3-bc5e0002a5d5c51b */