Lines Matching refs:tp
111 const struct tee_param *tp = param; in param_to_msg_param() local
118 for (i = 0; i < num_param; i++, tp++, mtp++) { in param_to_msg_param()
119 if (!tp || !mtp) { in param_to_msg_param()
124 switch (tp->attr) { in param_to_msg_param()
132 mtp->attr = OPTEE_MSG_ATTR_TYPE_VALUE_INPUT + tp->attr - in param_to_msg_param()
134 mtp->u.value.a = tp->a; in param_to_msg_param()
135 mtp->u.value.b = tp->b; in param_to_msg_param()
136 mtp->u.value.c = tp->c; in param_to_msg_param()
141 mtp->attr = OPTEE_MSG_ATTR_TYPE_RMEM_INPUT + tp->attr - in param_to_msg_param()
143 mtp->u.rmem.shm_ref = tp->c; in param_to_msg_param()
144 mtp->u.rmem.size = tp->b; in param_to_msg_param()
145 mtp->u.rmem.offs = tp->a; in param_to_msg_param()
177 struct tee_param *tp = param; in msg_param_to_param() local
184 for (i = 0; i < num_param; i++, tp++, mtp++) { in msg_param_to_param()
187 if (!tp || !mtp) { in msg_param_to_param()
194 memset(tp, 0, sizeof(*tp)); in msg_param_to_param()
195 tp->attr = TEE_PARAM_ATTR_TYPE_NONE; in msg_param_to_param()
200 tp->attr = TEE_PARAM_ATTR_TYPE_VALUE_INPUT + attr - in msg_param_to_param()
202 tp->a = mtp->u.value.a; in msg_param_to_param()
203 tp->b = mtp->u.value.b; in msg_param_to_param()
204 tp->c = mtp->u.value.c; in msg_param_to_param()
209 tp->attr = TEE_PARAM_ATTR_TYPE_MEMREF_INPUT + attr - in msg_param_to_param()
211 tp->b = mtp->u.rmem.size; in msg_param_to_param()
214 tp->a = 0; in msg_param_to_param()
215 tp->c = 0; in msg_param_to_param()
217 tp->a = mtp->u.rmem.offs; in msg_param_to_param()
218 tp->c = mtp->u.rmem.shm_ref; in msg_param_to_param()
225 msg_param_to_tmp_mem(tp, attr, mtp); in msg_param_to_param()