Lines Matching refs:heap
26 region->heap = multi_heap_register((void *)region->start, heap_size); in register_heap()
27 if (region->heap != NULL) { in register_heap()
28 ESP_EARLY_LOGD(TAG, "New heap initialised at %p", region->heap); in register_heap()
34 heap_t *heap; in heap_caps_enable_nonos_stack_heaps() local
35 SLIST_FOREACH(heap, ®istered_heaps, next) { in heap_caps_enable_nonos_stack_heaps()
38 if (heap->heap == NULL) { in heap_caps_enable_nonos_stack_heaps()
39 register_heap(heap); in heap_caps_enable_nonos_stack_heaps()
40 if (heap->heap != NULL) { in heap_caps_enable_nonos_stack_heaps()
41 multi_heap_set_lock(heap->heap, &heap->heap_mux); in heap_caps_enable_nonos_stack_heaps()
94 heap_t *heap = &temp_heaps[heap_idx]; in heap_caps_init() local
101 memcpy(heap->caps, type->caps, sizeof(heap->caps)); in heap_caps_init()
102 heap->start = region->start; in heap_caps_init()
103 heap->end = region->start + region->size; in heap_caps_init()
104 MULTI_HEAP_LOCK_INIT(&heap->heap_mux); in heap_caps_init()
107 heap->heap = NULL; in heap_caps_init()
109 register_heap(heap); in heap_caps_init()
111 SLIST_NEXT(heap, next) = NULL; in heap_caps_init()
128 heaps_array = multi_heap_malloc(temp_heaps[i].heap, sizeof(heap_t) * num_heaps); in heap_caps_init()
140 if (heaps_array[i].heap != NULL) { in heap_caps_init()
141 multi_heap_set_lock(heaps_array[i].heap, &heaps_array[i].heap_mux); in heap_caps_init()
216 heap_t *heap; in heap_caps_add_region_with_caps() local
217 SLIST_FOREACH(heap, ®istered_heaps, next) { in heap_caps_add_region_with_caps()
218 if (!heap_caps_check_add_region_allowed(heap->start, heap->end, start, end)) { in heap_caps_add_region_with_caps()
233 p_new->heap = multi_heap_register((void *)start, end - start); in heap_caps_add_region_with_caps()
235 if (p_new->heap == NULL) { in heap_caps_add_region_with_caps()
239 multi_heap_set_lock(p_new->heap, &p_new->heap_mux); in heap_caps_add_region_with_caps()