ESP-IDF
CACHE_BLOCKSIZE
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
CACHE_BLOCKSIZE
CACHE_BLOCKSIZE macro
Syntax
Show:
Summary
Declaration
from
esp_himem.c:51
#define
CACHE_BLOCKSIZE
(
32
*
1024
)
Examples
References
from
examples
Code
Location
#define
CACHE_BLOCKSIZE
(
32
*
1024
)
esp_himem.c:51
#define
VIRT_HIMEM_RANGE_START
(
SOC_EXTRAM_DATA_LOW
+
(
128
-
SPIRAM_BANKSWITCH_RESERVE
)
*
CACHE_BLOCKSIZE
)
esp_himem.c:54
r
=
cache_sram_mmu_set
(
0
,
0
,
SOC_EXTRAM_DATA_LOW
+
CACHE_BLOCKSIZE
*
virt_bank
,
phys_bank
*
CACHE_BLOCKSIZE
,
32
,
ct
)
;
esp_himem.c:107
r
=
cache_sram_mmu_set
(
1
,
0
,
SOC_EXTRAM_DATA_LOW
+
CACHE_BLOCKSIZE
*
virt_bank
,
phys_bank
*
CACHE_BLOCKSIZE
,
32
,
ct
)
;
esp_himem.c:109
int
paddr_start
=
(
4096
*
1024
)
-
(
CACHE_BLOCKSIZE
*
SPIRAM_BANKSWITCH_RESERVE
)
;
esp_himem.c:115
ret
+=
CACHE_BLOCKSIZE
;
esp_himem.c:126
return
CACHE_BLOCKSIZE
*
SPIRAM_BANKSWITCH_RESERVE
;
esp_himem.c:134
int
paddr_start
=
(
4096
*
1024
)
-
(
CACHE_BLOCKSIZE
*
SPIRAM_BANKSWITCH_RESERVE
)
;
esp_himem.c:150
s_ramblockcnt
=
(
(
paddr_end
-
paddr_start
)
/
CACHE_BLOCKSIZE
)
;
esp_himem.c:152
if
(
size
%
CACHE_BLOCKSIZE
!=
0
)
{
esp_himem.c:193
int
blocks
=
size
/
CACHE_BLOCKSIZE
;
esp_himem.c:196
ESP_RETURN_ON_FALSE
(
size
%
CACHE_BLOCKSIZE
==
0
,
ESP_ERR_INVALID_SIZE
,
TAG
,
"requested size not aligned to blocksize"
)
;
esp_himem.c:245
int
blocks
=
size
/
CACHE_BLOCKSIZE
;
esp_himem.c:246
int
ram_block
=
ram_offset
/
CACHE_BLOCKSIZE
;
esp_himem.c:301
int
range_block
=
range_offset
/
CACHE_BLOCKSIZE
;
esp_himem.c:302
int
blockcount
=
len
/
CACHE_BLOCKSIZE
;
esp_himem.c:303
ESP_RETURN_ON_FALSE
(
ram_offset
%
CACHE_BLOCKSIZE
==
0
,
ESP_ERR_INVALID_ARG
,
TAG
,
"ram offset not aligned to blocksize"
)
;
esp_himem.c:306
ESP_RETURN_ON_FALSE
(
range_offset
%
CACHE_BLOCKSIZE
==
0
,
ESP_ERR_INVALID_ARG
,
TAG
,
"range not aligned to blocksize"
)
;
esp_himem.c:307
ESP_RETURN_ON_FALSE
(
len
%
CACHE_BLOCKSIZE
==
0
,
ESP_ERR_INVALID_ARG
,
TAG
,
"length not aligned to blocksize"
)
;
esp_himem.c:308
*
out_ptr
=
(
void
*
)
(
VIRT_HIMEM_RANGE_START
+
(
range
->
block_start
+
range_block
)
*
CACHE_BLOCKSIZE
)
;
esp_himem.c:333
int
range_block
=
(
range_offset
/
CACHE_BLOCKSIZE
)
-
range
->
block_start
;
esp_himem.c:343
int
blockcount
=
len
/
CACHE_BLOCKSIZE
;
esp_himem.c:344
ESP_RETURN_ON_FALSE
(
range_offset
%
CACHE_BLOCKSIZE
==
0
,
ESP_ERR_INVALID_ARG
,
TAG
,
"range offset not block-aligned"
)
;
esp_himem.c:345
ESP_RETURN_ON_FALSE
(
len
%
CACHE_BLOCKSIZE
==
0
,
ESP_ERR_INVALID_ARG
,
TAG
,
"map length not block-aligned"
)
;
esp_himem.c:346
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
All items filtered out
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