ESP-IDF
s_psram_ctx
is only used within ESP-IDF.
Symbol previews are coming soon...
Symbols
loading...
Files
loading...
Summary
Syntax
Examples
References
Call Tree
Data Use
Class Tree
Override Tree
Implementations
Instances
Lifecycle
SourceVu
ESP-IDF Framework and Examples
ESP-IDF
s_psram_ctx
s_psram_ctx variable
Syntax
Show:
Summary
Declaration
from
esp_psram.c:90
static
psram_ctx_t
s_psram_ctx
;
Examples
References
from
examples
Code
Location
Referrer
static
psram_ctx_t
s_psram_ctx
;
esp_psram.c:90
if
(
s_psram_ctx
.
is_initialised
)
{
esp_psram.c:133
s_psram_chip_init()
s_psram_ctx
.
is_initialised
=
true
;
esp_psram.c:145
s_psram_chip_init()
s_psram_ctx
.
mapped_regions
[
PSRAM_MEM_8BIT_ALIGNED
]
.
size
=
size_to_map
;
esp_psram.c:256
s_psram_mapping()
s_psram_ctx
.
mapped_regions
[
PSRAM_MEM_8BIT_ALIGNED
]
.
vaddr_start
=
(
intptr_t
)
v_start_8bit_aligned
;
esp_psram.c:257
s_psram_mapping()
s_psram_ctx
.
mapped_regions
[
PSRAM_MEM_8BIT_ALIGNED
]
.
vaddr_end
=
(
intptr_t
)
v_start_8bit_aligned
+
size_to_map
;
esp_psram.c:258
s_psram_mapping()
s_psram_ctx
.
regions_to_heap
[
PSRAM_MEM_8BIT_ALIGNED
]
.
size
=
size_to_map
;
esp_psram.c:259
s_psram_mapping()
s_psram_ctx
.
regions_to_heap
[
PSRAM_MEM_8BIT_ALIGNED
]
.
vaddr_start
=
(
intptr_t
)
v_start_8bit_aligned
;
esp_psram.c:260
s_psram_mapping()
s_psram_ctx
.
regions_to_heap
[
PSRAM_MEM_8BIT_ALIGNED
]
.
vaddr_end
=
(
intptr_t
)
v_start_8bit_aligned
+
size_to_map
;
esp_psram.c:261
s_psram_mapping()
ESP_EARLY_LOGV
(
TAG
,
"8bit-aligned-range: 0x%x B, starting from: %p"
,
s_psram_ctx
.
mapped_regions
[
PSRAM_MEM_8BIT_ALIGNED
]
.
size
,
v_start_8bit_aligned
)
;
esp_psram.c:262
s_psram_mapping()
s_psram_ctx
.
regions_to_heap
[
PSRAM_MEM_8BIT_ALIGNED
]
.
size
-=
esp_himem_reserved_area_size
(
)
-
1
;
esp_psram.c:327
s_psram_mapping()
s_psram_ctx
.
regions_to_heap
[
PSRAM_MEM_8BIT_ALIGNED
]
.
vaddr_end
-=
esp_himem_reserved_area_size
(
)
;
esp_psram.c:328
s_psram_mapping()
s_psram_ctx
.
regions_to_heap
[
PSRAM_MEM_8BIT_ALIGNED
]
.
vaddr_start
,
esp_psram.c:374
esp_psram_extram_add_to_heap_allocator()
s_psram_ctx
.
regions_to_heap
[
PSRAM_MEM_8BIT_ALIGNED
]
.
vaddr_end
)
;
esp_psram.c:375
esp_psram_extram_add_to_heap_allocator()
if
(
s_psram_ctx
.
regions_to_heap
[
PSRAM_MEM_32BIT_ALIGNED
]
.
size
)
{
esp_psram.c:380
esp_psram_extram_add_to_heap_allocator()
assert
(
s_psram_ctx
.
regions_to_heap
[
PSRAM_MEM_32BIT_ALIGNED
]
.
vaddr_start
)
;
esp_psram.c:381
esp_psram_extram_add_to_heap_allocator()
s_psram_ctx
.
regions_to_heap
[
PSRAM_MEM_32BIT_ALIGNED
]
.
vaddr_start
,
esp_psram.c:384
esp_psram_extram_add_to_heap_allocator()
s_psram_ctx
.
regions_to_heap
[
PSRAM_MEM_32BIT_ALIGNED
]
.
vaddr_end
)
;
esp_psram.c:385
esp_psram_extram_add_to_heap_allocator()
(
s_psram_ctx
.
regions_to_heap
[
PSRAM_MEM_8BIT_ALIGNED
]
.
size
+
s_psram_ctx
.
regions_to_heap
[
PSRAM_MEM_32BIT_ALIGNED
]
.
size
)
/
1024
)
;
esp_psram.c:392
esp_psram_extram_add_to_heap_allocator()
if
(
!
s_psram_ctx
.
is_initialised
)
{
esp_psram.c:399
esp_psram_check_ptr_addr()
return
(
(
intptr_t
)
p
>=
s_psram_ctx
.
mapped_regions
[
PSRAM_MEM_8BIT_ALIGNED
]
.
vaddr_start
&&
(
intptr_t
)
p
<
s_psram_ctx
.
mapped_regions
[
PSRAM_MEM_8BIT_ALIGNED
]
.
vaddr_end
)
||
esp_psram.c:403
esp_psram_check_ptr_addr()
(
(
intptr_t
)
p
>=
s_psram_ctx
.
mapped_regions
[
PSRAM_MEM_32BIT_ALIGNED
]
.
vaddr_start
&&
(
intptr_t
)
p
<
s_psram_ctx
.
mapped_regions
[
PSRAM_MEM_32BIT_ALIGNED
]
.
vaddr_end
)
;
esp_psram.c:404
esp_psram_check_ptr_addr()
return
s_psram_ctx
.
is_initialised
;
esp_psram.c:437
esp_psram_is_initialized()
test_success
=
s_test_psram
(
s_psram_ctx
.
mapped_regions
[
PSRAM_MEM_8BIT_ALIGNED
]
.
vaddr_start
,
esp_psram.c:506
esp_psram_extram_test()
s_psram_ctx
.
mapped_regions
[
PSRAM_MEM_8BIT_ALIGNED
]
.
size
,
esp_psram.c:507
esp_psram_extram_test()
if
(
s_psram_ctx
.
mapped_regions
[
PSRAM_MEM_32BIT_ALIGNED
]
.
size
)
{
esp_psram.c:514
esp_psram_extram_test()
test_success
=
s_test_psram
(
s_psram_ctx
.
mapped_regions
[
PSRAM_MEM_32BIT_ALIGNED
]
.
vaddr_start
,
esp_psram.c:515
esp_psram_extram_test()
s_psram_ctx
.
mapped_regions
[
PSRAM_MEM_32BIT_ALIGNED
]
.
size
,
esp_psram.c:516
esp_psram_extram_test()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
s_psram_ctx
is read by 6 functions:
All items filtered out
s_psram_ctx
s_psram_chip_init()
s_psram_mapping()
esp_psram_extram_add_to_heap_allocator()
esp_psram_check_ptr_addr()
esp_psram_is_initialized()
esp_psram_extram_test()
All items filtered out
Class Tree
from
examples
All items filtered out
All items filtered out
Override Tree
from
examples
All items filtered out
All items filtered out
Implementations
from
examples
All items filtered out
All items filtered out
Instances
from
examples
Lifecycle
from
examples
All items filtered out
All items filtered out