Home
last modified time | relevance | path

Searched refs:next (Results 1 – 25 of 72) sorted by relevance

123

/optee_os/core/lib/libtomcrypt/src/misc/pbes/
H A Dpbes2.c89 if (!LTC_ASN1_IS_TYPE(s->next, LTC_ASN1_SEQUENCE) || in pbes2_extract()
90 !LTC_ASN1_IS_TYPE(s->next->child, LTC_ASN1_SEQUENCE) || in pbes2_extract()
91 !LTC_ASN1_IS_TYPE(s->next->child->child, LTC_ASN1_OBJECT_IDENTIFIER) || in pbes2_extract()
92 !LTC_ASN1_IS_TYPE(s->next->child->child->next, LTC_ASN1_SEQUENCE) || in pbes2_extract()
93 !LTC_ASN1_IS_TYPE(s->next->child->next, LTC_ASN1_SEQUENCE) || in pbes2_extract()
94 !LTC_ASN1_IS_TYPE(s->next->child->next->child, LTC_ASN1_OBJECT_IDENTIFIER)) { in pbes2_extract()
115 lkdf = s->next->child->child; in pbes2_extract()
116 lenc = s->next->child->next->child; in pbes2_extract()
120 if (!LTC_ASN1_IS_TYPE(lkdf->next, LTC_ASN1_SEQUENCE) || in pbes2_extract()
121 !LTC_ASN1_IS_TYPE(lkdf->next->child, LTC_ASN1_OCTET_STRING) || in pbes2_extract()
[all …]
H A Dpbes1.c97 if (!LTC_ASN1_IS_TYPE(s->next, LTC_ASN1_SEQUENCE) || in pbes1_extract()
98 !LTC_ASN1_IS_TYPE(s->next->child, LTC_ASN1_OCTET_STRING) || in pbes1_extract()
99 !LTC_ASN1_IS_TYPE(s->next->child->next, LTC_ASN1_INTEGER)) { in pbes1_extract()
111 res->salt = s->next->child; in pbes1_extract()
112 res->iterations = mp_get_int(s->next->child->next->data); in pbes1_extract()
/optee_os/core/mm/
H A Dtee_mm.c57 while (pool->entry->next != NULL) in tee_mm_final()
58 tee_mm_free(pool->entry->next); in tee_mm_final()
66 nn->next = p->next; in tee_mm_add()
67 p->next = nn; in tee_mm_add()
82 entry = entry->next; in tee_mm_stats_allocated()
152 while (entry->next != NULL && psize > in tee_mm_alloc_flags()
153 (entry->offset - entry->next->offset - in tee_mm_alloc_flags()
154 entry->next->size)) in tee_mm_alloc_flags()
155 entry = entry->next; in tee_mm_alloc_flags()
157 while (entry->next != NULL && psize > in tee_mm_alloc_flags()
[all …]
H A Dboot_mem.c26 struct boot_mem_reloc *next; member
38 struct boot_mem_padding *next; member
97 pad->next = desc->padding; in add_padding()
175 reloc->next = boot_mem_desc->reloc; in boot_mem_add_reloc()
210 for (reloc = boot_mem_desc->reloc;; reloc = reloc->next) { in boot_mem_relocate()
216 if (!reloc->next) in boot_mem_relocate()
218 reloc->next = add_offs(reloc->next, offs); in boot_mem_relocate()
226 if (!pad->next) in boot_mem_relocate()
228 pad->next = add_offs(pad->next, offs); in boot_mem_relocate()
229 pad = pad->next; in boot_mem_relocate()
[all …]
H A Dmobj_dyn_shm.c34 SLIST_ENTRY(mobj_reg_shm) next;
50 SLIST_ENTRY(mobj_protmem) next;
148 SLIST_REMOVE(&reg_shm_list, mobj_reg_shm, mobj_reg_shm, next); in reg_shm_free_helper()
336 SLIST_FOREACH(m, &protmem_list, next) { in check_protmem_conflict()
387 SLIST_INSERT_HEAD(&reg_shm_list, mobj_reg_shm, next); in mobj_reg_shm_alloc()
411 SLIST_FOREACH(mobj_reg_shm, &reg_shm_list, next) in reg_shm_find_unlocked()
422 SLIST_FOREACH(m, &protmem_list, next) in protmem_find_unlocked()
555 SLIST_FOREACH(r, &reg_shm_list, next) { in check_reg_shm_list_conflict()
629 SLIST_REMOVE(&protmem_list, mobj_protmem, mobj_protmem, next); in protmem_free_helper()
722 SLIST_INSERT_HEAD(&protmem_list, m, next); in mobj_protmem_alloc()
[all …]
/optee_os/lib/libmbedtls/mbedtls/library/
H A Dssl_cache.c48 for (cur = cache->chain; cur != NULL; cur = cur->next) { in ssl_cache_find_entry()
152 for (cur = cache->chain; cur != NULL; cur = cur->next) { in ssl_cache_pick_writing_slot()
169 for (cur = cache->chain; cur != NULL; cur = cur->next) { in ssl_cache_pick_writing_slot()
195 last->next = cur; in ssl_cache_pick_writing_slot()
219 cache->chain = old->next; in ssl_cache_pick_writing_slot()
220 old->next = NULL; in ssl_cache_pick_writing_slot()
221 last->next = old; in ssl_cache_pick_writing_slot()
233 old = cur->next; in ssl_cache_pick_writing_slot()
235 cur->next = old; in ssl_cache_pick_writing_slot()
345 cache->chain = entry->next; in mbedtls_ssl_cache_remove()
[all …]
H A Dmemory_buffer_alloc.c38 memory_header *next; member
79 (size_t) hdr, (size_t) hdr->prev, (size_t) hdr->next, in debug_header()
100 cur = cur->next; in debug_chain()
136 if (hdr->prev != NULL && hdr->prev == hdr->next) { in verify_header()
173 cur = heap.first->next; in verify_chain()
193 cur = cur->next; in verify_chain()
302 new->next = cur->next; in buffer_alloc_calloc()
310 if (new->next != NULL) { in buffer_alloc_calloc()
311 new->next->prev = new; in buffer_alloc_calloc()
330 cur->next = new; in buffer_alloc_calloc()
[all …]
H A Dasn1parse.c296 mbedtls_asn1_sequence *next = seq->next; in mbedtls_asn1_sequence_free() local
298 seq = next; in mbedtls_asn1_sequence_free()
318 cur->next = in asn1_get_sequence_of_cb()
321 if (cur->next == NULL) { in asn1_get_sequence_of_cb()
325 cur = cur->next; in asn1_get_sequence_of_cb()
438 *head = cur->next; in mbedtls_asn1_free_named_data_list()
447 for (mbedtls_asn1_named_data *next; name != NULL; name = next) { in mbedtls_asn1_free_named_data_list_shallow() local
448 next = name->next; in mbedtls_asn1_free_named_data_list_shallow()
462 list = list->next; in mbedtls_asn1_find_named_data()
H A Dx509_crl.c267 cur_entry->next = mbedtls_calloc(1, sizeof(mbedtls_x509_crl_entry)); in x509_get_entries()
269 if (cur_entry->next == NULL) { in x509_get_entries()
273 cur_entry = cur_entry->next; in x509_get_entries()
306 while (crl->version != 0 && crl->next != NULL) { in mbedtls_x509_crl_parse_der()
307 crl = crl->next; in mbedtls_x509_crl_parse_der()
310 if (crl->version != 0 && crl->next == NULL) { in mbedtls_x509_crl_parse_der()
311 crl->next = mbedtls_calloc(1, sizeof(mbedtls_x509_crl)); in mbedtls_x509_crl_parse_der()
313 if (crl->next == NULL) { in mbedtls_x509_crl_parse_der()
318 mbedtls_x509_crl_init(crl->next); in mbedtls_x509_crl_parse_der()
319 crl = crl->next; in mbedtls_x509_crl_parse_der()
[all …]
H A Dx509.c465 cur->next = NULL; in x509_get_attr_type_value()
531 cur->next = mbedtls_calloc(1, sizeof(mbedtls_x509_name)); in mbedtls_x509_get_name()
533 if (cur->next == NULL) { in mbedtls_x509_get_name()
538 cur = cur->next; in mbedtls_x509_get_name()
548 cur->next = mbedtls_calloc(1, sizeof(mbedtls_x509_name)); in mbedtls_x509_get_name()
550 if (cur->next == NULL) { in mbedtls_x509_get_name()
555 cur = cur->next; in mbedtls_x509_get_name()
560 mbedtls_asn1_free_named_data_list_shallow(head->next); in mbedtls_x509_get_name()
561 head->next = NULL; in mbedtls_x509_get_name()
834 name = name->next; in mbedtls_x509_dn_gets()
[all …]
H A Dpkcs7.c252 name_cur = signer->issuer.next; in pkcs7_free_signer_info()
255 name_cur = name_cur->next; in pkcs7_free_signer_info()
258 signer->issuer.next = NULL; in pkcs7_free_signer_info()
419 prev->next = signer; in pkcs7_get_signers_info_set()
428 mbedtls_pkcs7_signer_info *signer = signers_set->next; in pkcs7_get_signers_info_set()
431 signer = signer->next; in pkcs7_get_signers_info_set()
435 signers_set->next = NULL; in pkcs7_get_signers_info_set()
707 for (signer = &pkcs7->signed_data.signers; signer; signer = signer->next) { in mbedtls_pkcs7_data_or_hash_verify()
761 signer_cur = pkcs7->signed_data.signers.next; in mbedtls_pkcs7_free()
765 signer_cur = signer_prev->next; in mbedtls_pkcs7_free()
H A Dx509_crt.c364 a = a->next; in x509_name_cmp()
365 b = b->next; in x509_name_cmp()
804 if (cur->next != NULL) { in x509_get_certificate_policies()
808 cur->next = mbedtls_calloc(1, sizeof(mbedtls_asn1_sequence)); in x509_get_certificate_policies()
810 if (cur->next == NULL) { in x509_get_certificate_policies()
815 cur = cur->next; in x509_get_certificate_policies()
848 cur->next = NULL; in x509_get_certificate_policies()
1330 while (crt->version != 0 && crt->next != NULL) { in mbedtls_x509_crt_parse_der_internal()
1332 crt = crt->next; in mbedtls_x509_crt_parse_der_internal()
1338 if (crt->version != 0 && crt->next == NULL) { in mbedtls_x509_crt_parse_der_internal()
[all …]
H A Dx509write.c52 for (cur = san_list; cur != NULL; cur = cur->next) { in mbedtls_x509_write_set_san_common()
76 chunk = chunk->next; in mbedtls_x509_write_set_san_common()
143 cur = cur->next; in mbedtls_x509_write_set_san_common()
/optee_os/ta/pkcs11/src/
H A Dserializer.c23 args->next = in; in serialargs_init()
62 args->next = orig_next; in alloc_and_get()
77 return alloc_and_get(args, args->next, NULL, 0, out, size); in serialargs_alloc_and_get()
83 void *ptr = args->next; in serialargs_get_ptr()
86 if (ADD_OVERFLOW((vaddr_t)args->next, size, &next_end)) in serialargs_get_ptr()
96 args->size, args->size - (args->next - args->start), size); in serialargs_get_ptr()
100 args->next += size; in serialargs_get_ptr()
112 char *orig_next = args->next; in serialargs_alloc_get_one_attribute()
133 char *orig_next = args->next; in serialargs_alloc_get_attributes()
152 return args->next < args->start + args->size; in serialargs_remaining_bytes()
/optee_os/core/lib/libtomcrypt/src/pk/ecc/
H A Decc_import_pkcs8.c32 cur = cur->next; in s_der_flexi_sequence_cmp()
90 if (LTC_ASN1_IS_TYPE(seq->child->next, LTC_ASN1_OBJECT_IDENTIFIER)) { in ecc_import_pkcs8()
99 ltc_asn1_list *curve_oid = seq->child->next; in ecc_import_pkcs8()
105 else if ((err = s_der_flexi_sequence_cmp(seq->child->next, flexi_should)) == CRYPT_OK) { in ecc_import_pkcs8()
131 LTC_ASN1_IS_TYPE(field->child->next, LTC_ASN1_INTEGER) && in ecc_import_pkcs8()
133 LTC_ASN1_IS_TYPE(point->child->next, LTC_ASN1_OCTET_STRING)) { in ecc_import_pkcs8()
135 ltc_asn1_list *prime = field->child->next; in ecc_import_pkcs8()
139 …if ((err = mp_read_unsigned_bin(b, point->child->next->data, point->child->next->size)) != CRYPT_O… in ecc_import_pkcs8()
160 LTC_ASN1_IS_TYPE(p->child->next, LTC_ASN1_OCTET_STRING)) { in ecc_import_pkcs8()
161 ltc_asn1_list *lk = p->child->next; in ecc_import_pkcs8()
/optee_os/core/kernel/
H A Dlockdep.c113 struct lockdep_bfs *next = NULL; in lockdep_bfs_queue_delete() local
115 TAILQ_FOREACH_SAFE(cur, queue, link, next) { in lockdep_bfs_queue_delete()
430 struct lockdep_edge *next = NULL; in lockdep_node_delete() local
432 STAILQ_FOREACH_SAFE(edge, &node->edges, link, next) in lockdep_node_delete()
441 struct lockdep_node *next = NULL; in lockdep_graph_delete() local
443 TAILQ_FOREACH_SAFE(node, graph, link, next) { in lockdep_graph_delete()
452 struct lockdep_lock *next = NULL; in lockdep_queue_delete() local
454 TAILQ_FOREACH_SAFE(lock, owned, link, next) { in lockdep_queue_delete()
464 struct lockdep_edge *next = NULL; in lockdep_node_destroy() local
484 next = STAILQ_NEXT(edge, link); in lockdep_node_destroy()
[all …]
/optee_os/core/drivers/crypto/caam/
H A Dcaam_pwr.c49 while (SLIST_NEXT(elem, next)) in caam_pwr_add_backup()
50 elem = SLIST_NEXT(elem, next); in caam_pwr_add_backup()
52 SLIST_INSERT_AFTER(elem, newelem, next); in caam_pwr_add_backup()
54 SLIST_INSERT_HEAD(&data_list, newelem, next); in caam_pwr_add_backup()
67 SLIST_FOREACH(elem, &data_list, next) { in do_save_regs()
97 SLIST_FOREACH(elem, &data_list, next) { in do_restore_regs()
/optee_os/core/lib/zlib/
H A Dinflate.c139 state->lencode = state->distcode = state->next = state->codes;
291 static code *next; local
299 next = fixed;
300 lenfix = next;
302 inflate_table(LENS, state->lens, 288, &(next), &(bits), state->work);
307 distfix = next;
309 inflate_table(DISTS, state->lens, 32, &(next), &(bits), state->work);
482 next = strm->next_in; \
493 strm->next_in = next; \
512 hold += (unsigned long)(*next++) << bits; \
[all …]
H A Dinftrees.c55 code FAR *next; /* next available space in table */ local
202 next = *table; /* current table to fill in */
237 next[(huff >> drop) + fill] = here;
265 next += min; /* here min is 1 << curr */
287 (*table)[low].val = (unsigned short)(next - *table);
298 next[huff] = here;
/optee_os/core/lib/libtomcrypt/src/pk/asn1/pkcs8/
H A Dpkcs8_decode_flexi.c44 LTC_ASN1_IS_TYPE(l->child->child->next, LTC_ASN1_SEQUENCE) && in pkcs8_decode_flexi()
45 LTC_ASN1_IS_TYPE(l->child->next, LTC_ASN1_OCTET_STRING)) { in pkcs8_decode_flexi()
61 pbes.enc_data = l->child->next; in pkcs8_decode_flexi()
/optee_os/core/lib/libtomcrypt/src/pk/asn1/x509/
H A Dx509_decode_public_key_from_certificate.c17 && ((l)->next != NULL) \
18 && ((l)->next->type == LTC_ASN1_BIT_STRING)
96 l = l->next; in x509_decode_public_key_from_certificate()
/optee_os/lib/libmbedtls/mbedtls/include/mbedtls/
H A Dx509.h305 struct mbedtls_x509_san_list *next; member
357 while (dn->MBEDTLS_PRIVATE(next_merged) && dn->next != NULL) { in mbedtls_x509_dn_get_next()
358 dn = dn->next; in mbedtls_x509_dn_get_next()
360 return dn->next; in mbedtls_x509_dn_get_next()
H A Dx509_crl.h56 struct mbedtls_x509_crl_entry *next; member
91 struct mbedtls_x509_crl *next; member
H A Dasn1.h171 struct mbedtls_asn1_sequence *next; member
189 struct mbedtls_asn1_named_data *next; member
/optee_os/core/lib/libtomcrypt/src/pk/asn1/der/sequence/
H A Dder_decode_sequence_flexi.c21 (*l)->next = XCALLOC(1, sizeof(ltc_asn1_list)); in s_new_element()
22 if ((*l)->next == NULL) { in s_new_element()
25 (*l)->next->prev = *l; in s_new_element()
26 *l = (*l)->next; in s_new_element()
490 XFREE(l->next); in s_der_decode_sequence_flexi()
491 l->next = NULL; in s_der_decode_sequence_flexi()

123