Lines Matching refs:p_new
209 heap_t *p_new = heap_caps_malloc(sizeof(heap_t), MALLOC_CAP_INTERNAL|MALLOC_CAP_8BIT); in heap_caps_add_region_with_caps() local
210 if (p_new == NULL) { in heap_caps_add_region_with_caps()
214 memcpy(p_new->caps, caps, sizeof(p_new->caps)); in heap_caps_add_region_with_caps()
215 p_new->start = start; in heap_caps_add_region_with_caps()
216 p_new->end = end; in heap_caps_add_region_with_caps()
217 MULTI_HEAP_LOCK_INIT(&p_new->heap_mux); 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()
219 SLIST_NEXT(p_new, next) = NULL; 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()
231 SLIST_INSERT_HEAD(®istered_heaps, p_new, next); in heap_caps_add_region_with_caps()
238 free(p_new); in heap_caps_add_region_with_caps()