Lines Matching refs:s_psram_ctx
92 static psram_ctx_t s_psram_ctx; variable
119 if (s_psram_ctx.is_initialised) { in esp_psram_init()
131 s_psram_ctx.is_initialised = true; in esp_psram_init()
221 s_psram_ctx.mapped_regions[PSRAM_MEM_8BIT_ALIGNED].size = size_to_map; in esp_psram_init()
222 s_psram_ctx.mapped_regions[PSRAM_MEM_8BIT_ALIGNED].vaddr_start = (intptr_t)v_start_8bit_aligned; in esp_psram_init()
223 …s_psram_ctx.mapped_regions[PSRAM_MEM_8BIT_ALIGNED].vaddr_end = (intptr_t)v_start_8bit_aligned + si… in esp_psram_init()
224 s_psram_ctx.regions_to_heap[PSRAM_MEM_8BIT_ALIGNED].size = size_to_map; in esp_psram_init()
225 … s_psram_ctx.regions_to_heap[PSRAM_MEM_8BIT_ALIGNED].vaddr_start = (intptr_t)v_start_8bit_aligned; in esp_psram_init()
226 …s_psram_ctx.regions_to_heap[PSRAM_MEM_8BIT_ALIGNED].vaddr_end = (intptr_t)v_start_8bit_aligned + s… in esp_psram_init()
227 …ESP_EARLY_LOGV(TAG, "8bit-aligned-range: 0x%x B, starting from: 0x%x", s_psram_ctx.mapped_regions[… in esp_psram_init()
256 s_psram_ctx.mapped_regions[PSRAM_MEM_32BIT_ALIGNED].size = size_to_map; in esp_psram_init()
257 … s_psram_ctx.mapped_regions[PSRAM_MEM_32BIT_ALIGNED].vaddr_start = (intptr_t)v_start_32bit_aligned; in esp_psram_init()
258 …s_psram_ctx.mapped_regions[PSRAM_MEM_32BIT_ALIGNED].vaddr_end = (intptr_t)v_start_32bit_aligned + … in esp_psram_init()
259 s_psram_ctx.regions_to_heap[PSRAM_MEM_32BIT_ALIGNED].size = size_to_map; in esp_psram_init()
260 …s_psram_ctx.regions_to_heap[PSRAM_MEM_32BIT_ALIGNED].vaddr_start = (intptr_t)v_start_32bit_aligned; in esp_psram_init()
261 …s_psram_ctx.regions_to_heap[PSRAM_MEM_32BIT_ALIGNED].vaddr_end = (intptr_t)v_start_32bit_aligned +… in esp_psram_init()
262 …ESP_EARLY_LOGV(TAG, "32bit-aligned-range: 0x%x B, starting from: 0x%x", s_psram_ctx.mapped_regions… in esp_psram_init()
280 s_psram_ctx.regions_to_heap[PSRAM_MEM_8BIT_ALIGNED].vaddr_start += ext_bss_size; in esp_psram_init()
281 s_psram_ctx.regions_to_heap[PSRAM_MEM_8BIT_ALIGNED].size -= ext_bss_size; in esp_psram_init()
287 s_psram_ctx.regions_to_heap[PSRAM_MEM_8BIT_ALIGNED].vaddr_start += ext_noinit_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()
314 … s_psram_ctx.regions_to_heap[PSRAM_MEM_8BIT_ALIGNED].vaddr_start, in esp_psram_extram_add_to_heap_allocator()
315 … s_psram_ctx.regions_to_heap[PSRAM_MEM_8BIT_ALIGNED].vaddr_end); in esp_psram_extram_add_to_heap_allocator()
320 if (s_psram_ctx.regions_to_heap[PSRAM_MEM_32BIT_ALIGNED].size) { in esp_psram_extram_add_to_heap_allocator()
321 assert(s_psram_ctx.regions_to_heap[PSRAM_MEM_32BIT_ALIGNED].vaddr_start); in esp_psram_extram_add_to_heap_allocator()
324 … s_psram_ctx.regions_to_heap[PSRAM_MEM_32BIT_ALIGNED].vaddr_start, in esp_psram_extram_add_to_heap_allocator()
325 … s_psram_ctx.regions_to_heap[PSRAM_MEM_32BIT_ALIGNED].vaddr_end); in esp_psram_extram_add_to_heap_allocator()
332 …(s_psram_ctx.regions_to_heap[PSRAM_MEM_8BIT_ALIGNED].size + s_psram_ctx.regions_to_heap[PSRAM_MEM_… in esp_psram_extram_add_to_heap_allocator()
340 if (!s_psram_ctx.is_initialised) { in esp_psram_check_ptr_addr()
344 …return ((intptr_t)p >= s_psram_ctx.mapped_regions[PSRAM_MEM_8BIT_ALIGNED].vaddr_start && (intptr_t… in esp_psram_check_ptr_addr()
345 …((intptr_t)p >= s_psram_ctx.mapped_regions[PSRAM_MEM_32BIT_ALIGNED].vaddr_start && (intptr_t)p < s… in esp_psram_check_ptr_addr()
379 return s_psram_ctx.is_initialised; in esp_psram_is_initialized()
448 test_success = s_test_psram(s_psram_ctx.mapped_regions[PSRAM_MEM_8BIT_ALIGNED].vaddr_start, in esp_psram_extram_test()
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()
457 test_success = s_test_psram(s_psram_ctx.mapped_regions[PSRAM_MEM_32BIT_ALIGNED].vaddr_start, in esp_psram_extram_test()
458 s_psram_ctx.mapped_regions[PSRAM_MEM_32BIT_ALIGNED].size, in esp_psram_extram_test()