Lines Matching full:3

97  * Case 1: command parameters type are: 1 in/out value, 3 empty.
99 * Case 2: command parameters type are: 3 input value, 1 output value
101 * Case 3: command parameters type are: 1 in/out memref, 3 empty.
113 (TEE_PARAM_TYPE_GET(type, 3) == TEE_PARAM_TYPE_NONE)) { in test_entry_params()
121 (TEE_PARAM_TYPE_GET(type, 3) == TEE_PARAM_TYPE_NONE)) { in test_entry_params()
129 (TEE_PARAM_TYPE_GET(type, 3) == TEE_PARAM_TYPE_NONE)) { in test_entry_params()
137 (TEE_PARAM_TYPE_GET(type, 3) == TEE_PARAM_TYPE_VALUE_INOUT)) { in test_entry_params()
138 p[3].value.a = p[3].value.a + p[3].value.b; in test_entry_params()
142 /* case 2a: 3 input value arguments, 1 output value argument */ in test_entry_params()
146 (TEE_PARAM_TYPE_GET(type, 3) == 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()
155 (TEE_PARAM_TYPE_GET(type, 3) == 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()
164 (TEE_PARAM_TYPE_GET(type, 3) == TEE_PARAM_TYPE_VALUE_INPUT)) { 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()
173 (TEE_PARAM_TYPE_GET(type, 3) == TEE_PARAM_TYPE_VALUE_OUTPUT)) { 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()
182 p[3].memref.buffer, p[3].memref.size); in test_entry_params()
184 /* case 3a: 1 in/out memref argument */ in test_entry_params()
188 (TEE_PARAM_TYPE_GET(type, 3) == TEE_PARAM_TYPE_NONE)) { in test_entry_params()
198 /* case 3b: 1 in/out memref argument */ in test_entry_params()
202 (TEE_PARAM_TYPE_GET(type, 3) == TEE_PARAM_TYPE_NONE)) { in test_entry_params()
212 /* case 3c: 1 in/out memref argument */ in test_entry_params()
216 (TEE_PARAM_TYPE_GET(type, 3) == TEE_PARAM_TYPE_NONE)) { in test_entry_params()
226 /* case 3d: 1 in/out memref argument */ in test_entry_params()
230 (TEE_PARAM_TYPE_GET(type, 3) == TEE_PARAM_TYPE_MEMREF_INOUT)) { in test_entry_params()
231 in = (uint8_t *)p[3].memref.buffer; in test_entry_params()
232 if (test_v2p2v(in, p[3].memref.size)) in test_entry_params()
235 for (i = 0; i < p[3].memref.size; i++) in test_entry_params()
237 *(uint8_t *)p[3].memref.buffer = d8; in test_entry_params()