Home
last modified time | relevance | path

Searched refs:type (Results 1 – 25 of 268) sorted by relevance

1234567891011

/optee_os/core/pta/tests/
A Dinvoke.c76 static TEE_Result test_entry_memref_null(uint32_t type, in test_entry_memref_null() argument
84 if (exp_pt != type) in test_entry_memref_null()
111 (TEE_PARAM_TYPE_GET(type, 1) == TEE_PARAM_TYPE_NONE) && in test_entry_params()
112 (TEE_PARAM_TYPE_GET(type, 2) == TEE_PARAM_TYPE_NONE) && in test_entry_params()
113 (TEE_PARAM_TYPE_GET(type, 3) == TEE_PARAM_TYPE_NONE)) { in test_entry_params()
120 (TEE_PARAM_TYPE_GET(type, 2) == TEE_PARAM_TYPE_NONE) && in test_entry_params()
121 (TEE_PARAM_TYPE_GET(type, 3) == TEE_PARAM_TYPE_NONE)) { in test_entry_params()
127 (TEE_PARAM_TYPE_GET(type, 1) == TEE_PARAM_TYPE_NONE) && in test_entry_params()
260 if (exp_pt != type) { in test_inject_sdp()
303 if (exp_pt != type) { in test_transform_sdp()
[all …]
/optee_os/core/pta/
A Dapdu.c16 *type = CRYPTO_APDU_CASE_NO_HINT; in get_apdu_type()
19 *type = CRYPTO_APDU_CASE_1; in get_apdu_type()
22 *type = CRYPTO_APDU_CASE_2; in get_apdu_type()
25 *type = CRYPTO_APDU_CASE_2E; in get_apdu_type()
28 *type = CRYPTO_APDU_CASE_3; in get_apdu_type()
31 *type = CRYPTO_APDU_CASE_3E; in get_apdu_type()
34 *type = CRYPTO_APDU_CASE_4; in get_apdu_type()
37 *type = CRYPTO_APDU_CASE_4E; in get_apdu_type()
53 enum crypto_apdu_type type = CRYPTO_APDU_CASE_NO_HINT; in invoke_command() local
64 ret = get_apdu_type(params[0].value.a, &type); in invoke_command()
[all …]
A Dbenchmark.c39 static TEE_Result alloc_benchmark_buffer(uint32_t type, in alloc_benchmark_buffer() argument
46 (TEE_PARAM_TYPE_GET(type, 2) != TEE_PARAM_TYPE_NONE) || in alloc_benchmark_buffer()
47 (TEE_PARAM_TYPE_GET(type, 3) != TEE_PARAM_TYPE_NONE)) { in alloc_benchmark_buffer()
108 static TEE_Result get_benchmark_memref(uint32_t type, in get_benchmark_memref() argument
112 (TEE_PARAM_TYPE_GET(type, 1) != TEE_PARAM_TYPE_NONE) || in get_benchmark_memref()
113 (TEE_PARAM_TYPE_GET(type, 2) != TEE_PARAM_TYPE_NONE) || in get_benchmark_memref()
114 (TEE_PARAM_TYPE_GET(type, 3) != TEE_PARAM_TYPE_NONE)) { in get_benchmark_memref()
136 static TEE_Result unregister_benchmark(uint32_t type, in unregister_benchmark() argument
142 (TEE_PARAM_TYPE_GET(type, 1) != TEE_PARAM_TYPE_NONE) || in unregister_benchmark()
143 (TEE_PARAM_TYPE_GET(type, 2) != TEE_PARAM_TYPE_NONE) || in unregister_benchmark()
[all …]
/optee_os/core/drivers/crypto/se050/adaptors/apis/
A Dapdu.c76 (SE05x_INS_t)type, in set_rsa_public()
92 (SE05x_INS_t)type, in set_rsa_public()
123 (SE05x_INS_t)type, in set_rsa_private_rsa()
139 (SE05x_INS_t)type, in set_rsa_private_rsa()
171 (SE05x_INS_t)type, in set_rsa_private_rsa_crt()
188 (SE05x_INS_t)type, in set_rsa_private_rsa_crt()
205 (SE05x_INS_t)type, in set_rsa_private_rsa_crt()
222 (SE05x_INS_t)type, in set_rsa_private_rsa_crt()
239 (SE05x_INS_t)type, in set_rsa_private_rsa_crt()
270 (SE05x_INS_t)type, in set_rsa_keypair_rsa()
[all …]
/optee_os/lib/libutee/
A Dtee_api_property.c77 *type = ep->type; in propget_get_ext_prop()
78 switch (*type) { in propget_get_ext_prop()
186 *type = prop_type; in propget_get_property()
196 enum user_ta_prop_type type; in TEE_GetPropertyAsString() local
233 switch (type) { in TEE_GetPropertyAsString()
295 enum user_ta_prop_type type; in TEE_GetPropertyAsBool() local
323 enum user_ta_prop_type type; in TEE_GetPropertyAsU32() local
330 type = USER_TA_PROP_TYPE_U32; in TEE_GetPropertyAsU32()
349 enum user_ta_prop_type type; in TEE_GetPropertyAsBinaryBlock() local
374 enum user_ta_prop_type type; in TEE_GetPropertyAsUUID() local
[all …]
/optee_os/core/kernel/
A Ddt_driver.c33 enum dt_driver_type type; member
55 enum dt_driver_type type; member
104 switch (type) { in assert_type_is_valid()
146 prv->type = type; in dt_driver_register_provider()
168 switch (type) { in fdt_get_dt_driver_cells()
200 if (prv->nodeoffset == nodeoffset && prv->type == type) in dt_driver_get_provider_by_node()
212 if (prv->phandle == phandle && prv->type == type) in dt_driver_get_provider_by_phandle()
379 elt->type = dt_drv->type; in alloc_elt_and_probe()
393 if (drv->type != type) in probe_device_by_compat()
502 candidate->type != elt->type) in driver_probe_compare()
[all …]
/optee_os/ta/pkcs11/src/
A Dattributes.h256 uint32_t type = 0; in get_key_type() local
257 uint32_t size = sizeof(type); in get_key_type()
259 if (get_attribute(head, PKCS11_CKA_KEY_TYPE, &type, &size)) in get_key_type()
262 return type; in get_key_type()
275 uint32_t type = 0; in get_certificate_type() local
277 if (get_u32_attribute(head, PKCS11_CKA_CERTIFICATE_TYPE, &type)) in get_certificate_type()
280 return type; in get_certificate_type()
292 uint32_t type = 0; in get_mechanism_type() local
293 uint32_t size = sizeof(type); in get_mechanism_type()
295 if (get_attribute(head, PKCS11_CKA_MECHANISM_TYPE, &type, &size)) in get_mechanism_type()
[all …]
/optee_os/lib/libutils/isoc/include/sys/
A Dqueue.h89 #define LIST_HEAD(name, type) \ argument
97 #define LIST_ENTRY(type) \ argument
185 #define SLIST_HEAD(name, type) \ argument
193 #define SLIST_ENTRY(type) \ argument
255 #define STAILQ_HEAD(name, type) \ argument
264 #define STAILQ_ENTRY(type) \ argument
347 #define SIMPLEQ_HEAD(name, type) \ argument
356 #define SIMPLEQ_ENTRY(type) \ argument
425 #define TAILQ_HEAD(name, type) _TAILQ_HEAD(name, struct type,) argument
435 #define TAILQ_ENTRY(type) _TAILQ_ENTRY(struct type,) argument
[all …]
/optee_os/out/arm/export-ta_arm64/include/sys/
A Dqueue.h89 #define LIST_HEAD(name, type) \ argument
97 #define LIST_ENTRY(type) \ argument
185 #define SLIST_HEAD(name, type) \ argument
193 #define SLIST_ENTRY(type) \ argument
255 #define STAILQ_HEAD(name, type) \ argument
264 #define STAILQ_ENTRY(type) \ argument
347 #define SIMPLEQ_HEAD(name, type) \ argument
356 #define SIMPLEQ_ENTRY(type) \ argument
425 #define TAILQ_HEAD(name, type) _TAILQ_HEAD(name, struct type,) argument
435 #define TAILQ_ENTRY(type) _TAILQ_ENTRY(struct type,) argument
[all …]
/optee_os/out/arm/export-ta_arm32/include/sys/
A Dqueue.h89 #define LIST_HEAD(name, type) \ argument
97 #define LIST_ENTRY(type) \ argument
185 #define SLIST_HEAD(name, type) \ argument
193 #define SLIST_ENTRY(type) \ argument
255 #define STAILQ_HEAD(name, type) \ argument
264 #define STAILQ_ENTRY(type) \ argument
347 #define SIMPLEQ_HEAD(name, type) \ argument
356 #define SIMPLEQ_ENTRY(type) \ argument
425 #define TAILQ_HEAD(name, type) _TAILQ_HEAD(name, struct type,) argument
435 #define TAILQ_ENTRY(type) _TAILQ_ENTRY(struct type,) argument
[all …]
/optee_os/core/lib/libtomcrypt/src/pk/asn1/der/sequence/
A Dder_encode_sequence_multi.c31 ltc_asn1_type type; in der_encode_sequence_multi() local
44 type = (ltc_asn1_type)va_arg(args, int); in der_encode_sequence_multi()
50 if (type == LTC_ASN1_EOL) { in der_encode_sequence_multi()
54 switch (type) { in der_encode_sequence_multi()
99 type = (ltc_asn1_type)va_arg(args, int); in der_encode_sequence_multi()
103 if (type == LTC_ASN1_EOL) { in der_encode_sequence_multi()
107 switch (type) { in der_encode_sequence_multi()
124 LTC_SET_ASN1(list, x++, type, data, size); in der_encode_sequence_multi()
A Dder_decode_sequence_flexi.c79 if (l->type != LTC_ASN1_EOL) { in der_decode_sequence_flexi()
108 if (l->type == LTC_ASN1_CUSTOM_TYPE) { in der_decode_sequence_flexi()
132 if (l->type != LTC_ASN1_BOOLEAN) { in der_decode_sequence_flexi()
151 if (l->type != LTC_ASN1_INTEGER) { in der_decode_sequence_flexi()
174 if (l->type != LTC_ASN1_BIT_STRING) { in der_decode_sequence_flexi()
197 if (l->type != LTC_ASN1_OCTET_STRING) { in der_decode_sequence_flexi()
220 if (l->type != LTC_ASN1_NULL) { in der_decode_sequence_flexi()
271 if (l->type != LTC_ASN1_UTF8_STRING) { in der_decode_sequence_flexi()
338 if (l->type != LTC_ASN1_IA5_STRING) { in der_decode_sequence_flexi()
361 if (l->type != LTC_ASN1_UTCTIME) { in der_decode_sequence_flexi()
[all …]
A Dder_decode_sequence_multi.c33 ltc_asn1_type type; in _der_decode_sequence_va() local
43 type = (ltc_asn1_type)va_arg(a1, int); in _der_decode_sequence_va()
49 if (type == LTC_ASN1_EOL) { in _der_decode_sequence_va()
53 switch (type) { in _der_decode_sequence_va()
95 type = (ltc_asn1_type)va_arg(a2, int); in _der_decode_sequence_va()
99 if (type == LTC_ASN1_EOL) { in _der_decode_sequence_va()
103 switch (type) { in _der_decode_sequence_va()
122 LTC_SET_ASN1(list, x++, type, data, size); in _der_decode_sequence_va()
/optee_os/core/include/kernel/
A Ddt_driver.h63 void *data, enum dt_driver_type type);
85 enum dt_driver_type type,
107 dt_driver_get_provider_by_node(int nodeoffset, enum dt_driver_type type);
113 dt_driver_get_provider_by_phandle(uint32_t phandle, enum dt_driver_type type);
134 enum dt_driver_type type);
147 enum dt_driver_type type);
/optee_os/core/lib/libtomcrypt/src/pk/rsa/
A Drsa_export.c27 int rsa_export(unsigned char *out, unsigned long *outlen, int type, const rsa_key *key) in rsa_export() argument
35 std = type & PK_STD; in rsa_export()
36 type &= ~PK_STD; in rsa_export()
38 if (type == PK_PRIVATE && key->type != PK_PRIVATE) { in rsa_export()
42 if (type == PK_PRIVATE) { in rsa_export()
60 if (type == PK_PUBLIC) { in rsa_export()
/optee_os/core/lib/libtomcrypt/src/pk/ecc/
A Decc_get_key.c23 int ecc_get_key(unsigned char *out, unsigned long *outlen, int type, const ecc_key *key) in ecc_get_key() argument
33 compressed = type & PK_COMPRESSED ? 1 : 0; in ecc_get_key()
34 type &= ~PK_COMPRESSED; in ecc_get_key()
36 if (type == PK_PUBLIC) { in ecc_get_key()
41 else if (type == PK_PRIVATE) { in ecc_get_key()
42 …if (key->type != PK_PRIVATE) return CRYPT_PK_TYPE_M… in ecc_get_key()
A Decc_set_key.c15 int ecc_set_key(const unsigned char *in, unsigned long inlen, int type, ecc_key *key) in ecc_set_key() argument
28 if (type == PK_PRIVATE) { in ecc_set_key()
40 else if (type == PK_PUBLIC) { in ecc_set_key()
55 key->type = type; in ecc_set_key()
/optee_os/core/lib/libtomcrypt/src/misc/ssh/
A Dssh_decode_sequence_multi.c31 ssh_data_type type; in ssh_decode_sequence_multi() local
44 while ((type = (ssh_data_type)va_arg(args, int)) != LTC_SSHDATA_EOL) { in ssh_decode_sequence_multi()
46 if (type == LTC_SSHDATA_STRING || in ssh_decode_sequence_multi()
47 type == LTC_SSHDATA_NAMELIST || in ssh_decode_sequence_multi()
48 type == LTC_SSHDATA_MPINT) in ssh_decode_sequence_multi()
59 switch (type) { in ssh_decode_sequence_multi()
94 switch (type) { in ssh_decode_sequence_multi()
/optee_os/core/lib/libtomcrypt/src/pk/dsa/
A Ddsa_export.c27 int dsa_export(unsigned char *out, unsigned long *outlen, int type, const dsa_key *key) in dsa_export() argument
37 std = type & PK_STD; in dsa_export()
38 type &= ~PK_STD; in dsa_export()
40 if (type == PK_PRIVATE && key->type != PK_PRIVATE) { in dsa_export()
44 if (type == PK_PRIVATE) { in dsa_export()
66 if (type == PK_PUBLIC) { in dsa_export()
/optee_os/core/arch/arm/include/mm/
A Dcore_mmu.h191 return names[type]; in teecore_memtype_name()
202 enum teecore_memtypes type; member
225 { .name = (_name), .type = (_type), .addr = (_addr), \
231 { .name = (_name), .type = (_type), .lo_addr = (_addr), \
238 #define register_phys_mem(type, addr, size) \ argument
239 __register_memory(#addr, (type), (addr), (size), \
242 #define register_phys_mem_ul(type, addr, size) \ argument
243 __register_memory_ul(#addr, (type), (addr), (size), \
247 #define register_phys_mem_pgdir(type, addr, size) \ argument
577 return mm->type == MEM_AREA_RES_VASPACE || in core_mmu_is_dynamic_vaspace()
[all …]
/optee_os/core/lib/libtomcrypt/src/pk/asn1/x509/
A Dx509_decode_public_key_from_certificate.c21 && ((l)->type == LTC_ASN1_SEQUENCE) \
23 && ((l)->child->type == LTC_ASN1_OBJECT_IDENTIFIER) \
25 && ((l)->next->type == LTC_ASN1_BIT_STRING)
70 if ((l->type == LTC_ASN1_SEQUENCE) && (l->child != NULL)) { in x509_decode_public_key_from_certificate()
72 if ((l->type == LTC_ASN1_SEQUENCE) && (l->child != NULL)) { in x509_decode_public_key_from_certificate()
87 if ((l->type == LTC_ASN1_SEQUENCE) in x509_decode_public_key_from_certificate()
/optee_os/core/lib/libtomcrypt/src/misc/padding/
A Dpadding_depad.c28 enum padding_type type; in padding_depad() local
35 type = mode & LTC_PAD_MASK; in padding_depad()
37 if (type < LTC_PAD_ONE_AND_ZERO) { in padding_depad()
49 switch (type) { in padding_depad()
77 if (type == LTC_PAD_ZERO_ALWAYS) { in padding_depad()
/optee_os/core/lib/libtomcrypt/src/misc/pbes/
A Dpbes.c31 LTC_ARGCHK(arg->type.kdf != NULL); in pbes_decrypt()
35 hid = find_hash(arg->type.h); in pbes_decrypt()
37 cid = find_cipher(arg->type.c); in pbes_decrypt()
40 klen = arg->type.keylen; in pbes_decrypt()
55 klen += arg->type.blocklen; in pbes_decrypt()
60 …if ((err = arg->type.kdf(arg->pwd, arg->pwdlen, arg->salt->data, arg->salt->size, arg->iterations,… in pbes_decrypt()
/optee_os/core/lib/zlib/
A Dinftrees.c33 int ZLIB_INTERNAL inflate_table(type, lens, codes, table, bits, work) in inflate_table() argument
34 codetype type; in inflate_table()
138 if (left > 0 && (type == CODES || max != 1))
182 switch (type) {
210 if ((type == LENS && used > ENOUGH_LENS) ||
211 (type == DISTS && used > ENOUGH_DISTS))
279 if ((type == LENS && used > ENOUGH_LENS) ||
280 (type == DISTS && used > ENOUGH_DISTS))
/optee_os/lib/libutee/include/
A Darm64_user_sysreg.h15 #define DEFINE_REG_READ_FUNC_(reg, type, asmreg) \ argument
16 static inline __noprof type read_##reg(void) \
24 #define DEFINE_REG_WRITE_FUNC_(reg, type, asmreg) \ argument
25 static inline __noprof void write_##reg(type val) \

Completed in 30 milliseconds

1234567891011