Lines Matching refs:size
69 size_t size; //in bytes member
104 static void IRAM_ATTR s_mapping(int v_start, int size) in s_mapping() argument
107 cache_sram_mmu_set(0, 0, v_start, 0, 32, (size / 1024 / 32)); in s_mapping()
111 cache_sram_mmu_set(1, 0, v_start, 0, 32, (size / 1024 / 32)); in s_mapping()
221 s_psram_ctx.mapped_regions[PSRAM_MEM_8BIT_ALIGNED].size = size_to_map; in esp_psram_init()
224 s_psram_ctx.regions_to_heap[PSRAM_MEM_8BIT_ALIGNED].size = size_to_map; in esp_psram_init()
227 … starting from: 0x%x", s_psram_ctx.mapped_regions[PSRAM_MEM_8BIT_ALIGNED].size, v_start_8bit_align… in esp_psram_init()
256 s_psram_ctx.mapped_regions[PSRAM_MEM_32BIT_ALIGNED].size = size_to_map; in esp_psram_init()
259 s_psram_ctx.regions_to_heap[PSRAM_MEM_32BIT_ALIGNED].size = size_to_map; in esp_psram_init()
262 …starting from: 0x%x", s_psram_ctx.mapped_regions[PSRAM_MEM_32BIT_ALIGNED].size, v_start_32bit_alig… in esp_psram_init()
281 s_psram_ctx.regions_to_heap[PSRAM_MEM_8BIT_ALIGNED].size -= ext_bss_size; in esp_psram_init()
288 s_psram_ctx.regions_to_heap[PSRAM_MEM_8BIT_ALIGNED].size -= ext_noinit_size; in esp_psram_init()
292 s_psram_ctx.regions_to_heap[PSRAM_MEM_8BIT_ALIGNED].size -= esp_himem_reserved_area_size() - 1; in esp_psram_init()
320 if (s_psram_ctx.regions_to_heap[PSRAM_MEM_32BIT_ALIGNED].size) { in esp_psram_extram_add_to_heap_allocator()
332 …ctx.regions_to_heap[PSRAM_MEM_8BIT_ALIGNED].size + s_psram_ctx.regions_to_heap[PSRAM_MEM_32BIT_ALI… in esp_psram_extram_add_to_heap_allocator()
349 esp_err_t esp_psram_extram_reserve_dma_pool(size_t size) in esp_psram_extram_reserve_dma_pool() argument
351 if (size == 0) { in esp_psram_extram_reserve_dma_pool()
355 …LY_LOGI(TAG, "Reserving pool of %dK of internal memory for DMA/internal allocations", size / 1024); in esp_psram_extram_reserve_dma_pool()
357 while (size > 0) { in esp_psram_extram_reserve_dma_pool()
359 next_size = MIN(next_size, size); in esp_psram_extram_reserve_dma_pool()
372 size -= next_size; in esp_psram_extram_reserve_dma_pool()
403 static bool s_test_psram(intptr_t v_start, size_t size, intptr_t reserved_start, intptr_t reserved_… in s_test_psram() argument
409 for (p = 0; p < (size / sizeof(int)); p += 8) { in s_test_psram()
416 for (p = 0; p < (size / sizeof(int)); p += 8) { in s_test_psram()
429 …G, "SPI SRAM memory test fail. %d/%d writes failed, first @ %X\n", errct, size/32, initial_err + v… in s_test_psram()
449 s_psram_ctx.mapped_regions[PSRAM_MEM_8BIT_ALIGNED].size, in esp_psram_extram_test()
456 if (s_psram_ctx.mapped_regions[PSRAM_MEM_32BIT_ALIGNED].size) { in esp_psram_extram_test()
458 s_psram_ctx.mapped_regions[PSRAM_MEM_32BIT_ALIGNED].size, in esp_psram_extram_test()