Lines Matching refs:heap
34 region->heap = multi_heap_register((void *)region->start, heap_size); in register_heap()
35 if (region->heap != NULL) { in register_heap()
36 ESP_EARLY_LOGD(TAG, "New heap initialised at %p", region->heap); in register_heap()
42 heap_t *heap; in heap_caps_enable_nonos_stack_heaps() local
43 SLIST_FOREACH(heap, ®istered_heaps, next) { in heap_caps_enable_nonos_stack_heaps()
46 if (heap->heap == NULL) { in heap_caps_enable_nonos_stack_heaps()
47 register_heap(heap); in heap_caps_enable_nonos_stack_heaps()
48 if (heap->heap != NULL) { in heap_caps_enable_nonos_stack_heaps()
49 multi_heap_set_lock(heap->heap, &heap->heap_mux); in heap_caps_enable_nonos_stack_heaps()
98 heap_t *heap = &temp_heaps[heap_idx]; in heap_caps_init() local
105 memcpy(heap->caps, type->caps, sizeof(heap->caps)); in heap_caps_init()
106 heap->start = region->start; in heap_caps_init()
107 heap->end = region->start + region->size; in heap_caps_init()
108 MULTI_HEAP_LOCK_INIT(&heap->heap_mux); in heap_caps_init()
111 heap->heap = NULL; in heap_caps_init()
113 register_heap(heap); in heap_caps_init()
115 SLIST_NEXT(heap, next) = NULL; in heap_caps_init()
132 heaps_array = multi_heap_malloc(temp_heaps[i].heap, sizeof(heap_t) * num_heaps); in heap_caps_init()
144 if (heaps_array[i].heap != NULL) { in heap_caps_init()
145 multi_heap_set_lock(heaps_array[i].heap, &heaps_array[i].heap_mux); in heap_caps_init()
201 heap_t *heap; in heap_caps_add_region_with_caps() local
202 SLIST_FOREACH(heap, ®istered_heaps, next) { in heap_caps_add_region_with_caps()
203 if ((start <= heap->start && end > heap->start) in heap_caps_add_region_with_caps()
204 || (start < heap->end && end > heap->end)) { in heap_caps_add_region_with_caps()
218 p_new->heap = multi_heap_register((void *)start, end - start); in heap_caps_add_region_with_caps()
220 if (p_new->heap == NULL) { in heap_caps_add_region_with_caps()
224 multi_heap_set_lock(p_new->heap, &p_new->heap_mux); in heap_caps_add_region_with_caps()