Lines Matching refs:r

229         void *r;  in heap_caps_malloc_default()  local
231 r=heap_caps_malloc_base( size, MALLOC_CAP_DEFAULT | MALLOC_CAP_INTERNAL ); in heap_caps_malloc_default()
233 r=heap_caps_malloc_base( size, MALLOC_CAP_DEFAULT | MALLOC_CAP_SPIRAM ); in heap_caps_malloc_default()
235 if (r==NULL && size > 0) { in heap_caps_malloc_default()
237 r=heap_caps_malloc_base( size, MALLOC_CAP_DEFAULT ); in heap_caps_malloc_default()
241 if (r==NULL && size > 0){ in heap_caps_malloc_default()
245 return r; in heap_caps_malloc_default()
262 void *r; in heap_caps_realloc_default() local
264 r=heap_caps_realloc_base( ptr, size, MALLOC_CAP_DEFAULT | MALLOC_CAP_INTERNAL); in heap_caps_realloc_default()
266 r=heap_caps_realloc_base( ptr, size, MALLOC_CAP_DEFAULT | MALLOC_CAP_SPIRAM); in heap_caps_realloc_default()
269 if (r==NULL && size>0) { in heap_caps_realloc_default()
271 r=heap_caps_realloc_base( ptr, size, MALLOC_CAP_DEFAULT); in heap_caps_realloc_default()
275 if (r==NULL && size>0){ in heap_caps_realloc_default()
278 return r; in heap_caps_realloc_default()
289 void *r = NULL; in heap_caps_malloc_prefer() local
293 r = heap_caps_malloc_base( size, caps ); in heap_caps_malloc_prefer()
294 if (r != NULL || size == 0) { in heap_caps_malloc_prefer()
299 if (r == NULL && size > 0){ in heap_caps_malloc_prefer()
303 return r; in heap_caps_malloc_prefer()
313 void *r = NULL; in heap_caps_realloc_prefer() local
317 r = heap_caps_realloc_base( ptr, size, caps ); in heap_caps_realloc_prefer()
318 if (r != NULL || size == 0) { in heap_caps_realloc_prefer()
323 if (r == NULL && size > 0){ in heap_caps_realloc_prefer()
327 return r; in heap_caps_realloc_prefer()
337 void *r = NULL; in heap_caps_calloc_prefer() local
341 r = heap_caps_calloc_base( n, size, caps ); in heap_caps_calloc_prefer()
342 if (r != NULL || size == 0){ in heap_caps_calloc_prefer()
347 if (r == NULL && size > 0){ in heap_caps_calloc_prefer()
351 return r; in heap_caps_calloc_prefer()
442 void *r = multi_heap_realloc(heap->heap, ptr, size); in heap_caps_realloc_base() local
443 if (r != NULL) { in heap_caps_realloc_base()
444 CALL_HOOK(esp_heap_trace_alloc_hook, r, size, caps); in heap_caps_realloc_base()
445 return r; in heap_caps_realloc_base()