Searched refs:next_size (Results 1 – 1 of 1) sorted by relevance
358 size_t next_size = heap_caps_get_largest_free_block(MALLOC_CAP_DMA | MALLOC_CAP_INTERNAL); in esp_psram_extram_reserve_dma_pool() local359 next_size = MIN(next_size, size); in esp_psram_extram_reserve_dma_pool()361 ESP_EARLY_LOGD(TAG, "Allocating block of size %d bytes", next_size); in esp_psram_extram_reserve_dma_pool()362 uint8_t *dma_heap = heap_caps_malloc(next_size, MALLOC_CAP_DMA | MALLOC_CAP_INTERNAL); in esp_psram_extram_reserve_dma_pool()363 if (!dma_heap || next_size == 0) { in esp_psram_extram_reserve_dma_pool()368 …t e = heap_caps_add_region_with_caps(caps, (intptr_t)dma_heap, (intptr_t)dma_heap + next_size - 1); in esp_psram_extram_reserve_dma_pool()372 size -= next_size; in esp_psram_extram_reserve_dma_pool()