Lines Matching full:next
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()
311 new->next->prev = new; in buffer_alloc_calloc()
330 cur->next = new; in buffer_alloc_calloc()
412 hdr->prev->next = hdr->next; in buffer_alloc_free()
416 if (hdr->next != NULL) { in buffer_alloc_free()
417 hdr->next->prev = hdr; in buffer_alloc_free()
425 if (hdr->next != NULL && hdr->next->alloc == 0) { in buffer_alloc_free()
429 hdr->size += sizeof(memory_header) + hdr->next->size; in buffer_alloc_free()
430 old = hdr->next; in buffer_alloc_free()
431 hdr->next = hdr->next->next; in buffer_alloc_free()
458 if (hdr->next != NULL) { in buffer_alloc_free()
459 hdr->next->prev = hdr; in buffer_alloc_free()
466 // (Does not have to stay in same order as prev / next list) in buffer_alloc_free()
503 if (heap.first->next == NULL) { in mbedtls_memory_buffer_alloc_status()
668 /* Memorize end to compare with the next test */ in mbedtls_memory_buffer_alloc_self_test()