Lines Matching refs:p_new
224 heap_t *p_new = heap_caps_malloc(sizeof(heap_t), MALLOC_CAP_INTERNAL|MALLOC_CAP_8BIT); in heap_caps_add_region_with_caps() local
225 if (p_new == NULL) { in heap_caps_add_region_with_caps()
229 memcpy(p_new->caps, caps, sizeof(p_new->caps)); in heap_caps_add_region_with_caps()
230 p_new->start = start; in heap_caps_add_region_with_caps()
231 p_new->end = end; in heap_caps_add_region_with_caps()
232 MULTI_HEAP_LOCK_INIT(&p_new->heap_mux); 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()
234 SLIST_NEXT(p_new, next) = NULL; 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()
246 SLIST_INSERT_HEAD(®istered_heaps, p_new, next); in heap_caps_add_region_with_caps()
253 free(p_new); in heap_caps_add_region_with_caps()