| /optee_os/core/mm/ |
| H A D | tee_mm.c | 57 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 D | boot_mem.c | 21 * @next: Next relocation array when @ptrs is fully used 26 struct boot_mem_reloc *next; member 33 * @next: Next padding 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() [all …]
|
| H A D | mobj_dyn_shm.c | 34 SLIST_ENTRY(mobj_reg_shm) next; 50 SLIST_ENTRY(mobj_protmem) next; 148 SLIST_REMOVE(®_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(®_shm_list, mobj_reg_shm, next); in mobj_reg_shm_alloc() 411 SLIST_FOREACH(mobj_reg_shm, ®_shm_list, next) in reg_shm_find_unlocked() 422 SLIST_FOREACH(m, &protmem_list, next) in protmem_find_unlocked() 555 SLIST_FOREACH(r, ®_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/core/lib/libtomcrypt/src/misc/pbes/ |
| H A D | pbes2.c | 89 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 D | pbes1.c | 97 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/lib/libmbedtls/mbedtls/library/ |
| H A D | ssl_cache.c | 48 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() 232 * so we reuse `old` to record `next` temporarily. */ 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() [all …]
|
| H A D | memory_buffer_alloc.c | 38 memory_header *next; member 77 mbedtls_fprintf(stderr, "HDR: PTR(%10zu), PREV(%10zu), NEXT(%10zu), " in debug_header() 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() 138 mbedtls_fprintf(stderr, "FATAL: prev == next\n"); 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() [all …]
|
| H A D | asn1parse.c | 296 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 D | x509_crl.c | 267 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 D | pkcs7.c | 252 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() 528 * at next step of getting signers info and return error as invalid in pkcs7_get_signed_data() 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() [all …]
|
| H A D | x509.c | 465 cur->next = NULL; in x509_get_attr_type_value() 493 * On success, this function may allocate a linked list starting at cur->next 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() [all …]
|
| /optee_os/ta/pkcs11/src/ |
| H A D | serializer.c | 23 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/kernel/ |
| H A D | lockdep.c | 113 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/lib/libtomcrypt/src/pk/ecc/ |
| H A D | ecc_import_pkcs8.c | 32 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/lib/zlib/ |
| H A D | inflate.c | 39 * - Use local copies of stream next and avail values, as well as local bit 139 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; \ [all …]
|
| H A D | inftrees.c | 28 on return points to the next available entry's address. bits is the 55 code FAR *next; /* next available space in table */ local 152 filled is at next and has curr index bits. The code being used is huff 202 next = *table; /* current table to fill in */ 234 min = fill; /* save offset to next table */ 237 next[(huff >> drop) + fill] = here; 251 /* go to next symbol, update count, len */ 265 next += min; /* here min is 1 << curr */ 267 /* determine length of next table */ 287 (*table)[low].val = (unsigned short)(next - *table); [all …]
|
| /optee_os/core/include/kernel/ |
| H A D | callout.h | 17 * @period: ticks to next timeout 40 * @ms: time to next callout in milliseconds 76 * callout_set_next_timeout() - set time to next callout 78 * @ms: time to next callout in milliseconds 81 * This value is used to when to calculate the time of the next callout 91 * @set_next_timeout: sets the next timeout and enables the timer
|
| /optee_os/core/drivers/crypto/caam/ |
| H A D | caam_pwr.c | 49 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/libtomcrypt/src/pk/asn1/der/sequence/ |
| H A D | der_sequence_shrink.c | 35 /* move to next and free current */ in der_sequence_shrink() 36 in = in->next; in der_sequence_shrink()
|
| H A D | der_sequence_free.c | 46 /* move to next and free current */ in der_sequence_free() 47 l = in->next; in der_sequence_free()
|
| /optee_os/core/lib/libtomcrypt/src/pk/asn1/x509/ |
| H A D | x509_decode_public_key_from_certificate.c | 17 && ((l)->next != NULL) \ 18 && ((l)->next->type == LTC_ASN1_BIT_STRING) 96 l = l->next; in x509_decode_public_key_from_certificate()
|
| /optee_os/core/lib/libtomcrypt/src/pk/asn1/pkcs8/ |
| H A D | pkcs8_decode_flexi.c | 44 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/lib/libmbedtls/mbedtls/include/mbedtls/ |
| H A D | x509_crl.h | 53 /** Next element in the linked list of entries. 56 struct mbedtls_x509_crl_entry *next; member 88 /** Next element in the linked list of CRL. 91 struct mbedtls_x509_crl *next; member
|
| /optee_os/core/include/mm/ |
| H A D | vm.h | 21 * initialized to 0 if the next available can be chosen. 25 * instance an ELF file while knowing that the next part which has to be of 37 * initialized to 0 if the next available can be chosen.
|
| /optee_os/core/drivers/clk/ |
| H A D | clk.c | 509 struct clk *next = NULL; in print_tree() local 520 next = find_next_clk(parent, clk); in print_tree() 521 if (next) { in print_tree() 522 print_clk(next, indent + 1); in print_tree() 523 /* Enter the subtree of the next clock */ in print_tree() 524 parent = next; in print_tree() 535 * Move up one level to resume with the next in print_tree()
|