Lines Matching full:2
1 // SPDX-License-Identifier: BSD-2-Clause
99 * Case 2: command parameters type are: 3 input value, 1 output value
112 (TEE_PARAM_TYPE_GET(type, 2) == TEE_PARAM_TYPE_NONE) && in test_entry_params()
120 (TEE_PARAM_TYPE_GET(type, 2) == TEE_PARAM_TYPE_NONE) && in test_entry_params()
128 (TEE_PARAM_TYPE_GET(type, 2) == TEE_PARAM_TYPE_VALUE_INOUT) && in test_entry_params()
130 p[2].value.a = p[2].value.a + p[2].value.b; in test_entry_params()
136 (TEE_PARAM_TYPE_GET(type, 2) == TEE_PARAM_TYPE_NONE) && in test_entry_params()
142 /* case 2a: 3 input value arguments, 1 output value argument */ in test_entry_params()
145 (TEE_PARAM_TYPE_GET(type, 2) == TEE_PARAM_TYPE_VALUE_INPUT) && in test_entry_params()
147 p[0].value.a = p[1].value.a + p[2].value.a + p[3].value.a; in test_entry_params()
148 p[0].value.b = p[1].value.b + p[2].value.b + p[3].value.b; in test_entry_params()
151 /* case 2a: 3 input value arguments, 1 output value argument */ in test_entry_params()
154 (TEE_PARAM_TYPE_GET(type, 2) == TEE_PARAM_TYPE_VALUE_INPUT) && in test_entry_params()
156 p[1].value.a = p[0].value.a + p[2].value.a + p[3].value.a; in test_entry_params()
157 p[1].value.b = p[0].value.b + p[2].value.b + p[3].value.b; in test_entry_params()
160 /* case 2a: 3 input value arguments, 1 output value argument */ in test_entry_params()
163 (TEE_PARAM_TYPE_GET(type, 2) == TEE_PARAM_TYPE_VALUE_OUTPUT) && in test_entry_params()
165 p[2].value.a = p[0].value.a + p[1].value.a + p[3].value.a; in test_entry_params()
166 p[2].value.b = p[0].value.b + p[1].value.b + p[3].value.b; in test_entry_params()
169 /* case 2a: 3 input value arguments, 1 output value argument */ in test_entry_params()
172 (TEE_PARAM_TYPE_GET(type, 2) == TEE_PARAM_TYPE_VALUE_INPUT) && in test_entry_params()
174 p[3].value.a = p[0].value.a + p[1].value.a + p[2].value.a; in test_entry_params()
175 p[3].value.b = p[0].value.b + p[1].value.b + p[2].value.b; in test_entry_params()
181 p[1].memref.size, p[2].memref.buffer, p[2].memref.size, in test_entry_params()
187 (TEE_PARAM_TYPE_GET(type, 2) == TEE_PARAM_TYPE_NONE) && in test_entry_params()
201 (TEE_PARAM_TYPE_GET(type, 2) == TEE_PARAM_TYPE_NONE) && in test_entry_params()
215 (TEE_PARAM_TYPE_GET(type, 2) == TEE_PARAM_TYPE_MEMREF_INOUT) && in test_entry_params()
217 in = (uint8_t *)p[2].memref.buffer; in test_entry_params()
218 if (test_v2p2v(in, p[2].memref.size)) in test_entry_params()
221 for (i = 0; i < p[2].memref.size; i++) in test_entry_params()
223 *(uint8_t *)p[2].memref.buffer = d8; in test_entry_params()
229 (TEE_PARAM_TYPE_GET(type, 2) == TEE_PARAM_TYPE_NONE) && in test_entry_params()