Home
last modified time | relevance | path

Searched refs:next_size (Results 1 – 1 of 1) sorted by relevance

/hal_espressif-3.5.0/components/esp_hw_support/port/esp32/
Dspiram.c227 size_t next_size = heap_caps_get_largest_free_block(MALLOC_CAP_DMA|MALLOC_CAP_INTERNAL); in esp_spiram_reserve_dma_pool() local
228 next_size = MIN(next_size, size); in esp_spiram_reserve_dma_pool()
230 ESP_EARLY_LOGD(TAG, "Allocating block of size %d bytes", next_size); in esp_spiram_reserve_dma_pool()
231 dma_heap = heap_caps_malloc(next_size, MALLOC_CAP_DMA|MALLOC_CAP_INTERNAL); in esp_spiram_reserve_dma_pool()
232 if (!dma_heap || next_size == 0) { in esp_spiram_reserve_dma_pool()
237 …r_t e = heap_caps_add_region_with_caps(caps, (intptr_t) dma_heap, (intptr_t) dma_heap+next_size-1); in esp_spiram_reserve_dma_pool()
241 size -= next_size; in esp_spiram_reserve_dma_pool()