OpenOCD
flash_bank::prot_blocks
is only used within OpenOCD.
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
Development Tools
OpenOCD
flash_bank::prot_blocks
flash_bank::prot_blocks field
Array of protection blocks, allocated and initialized by the flash driver
Syntax
Show:
Summary
Declaration
from
core.h:126
struct
flash_sector
*
prot_blocks
;
Examples
References
from
examples
Code
Location
Referrer
struct
flash_sector
*
prot_blocks
;
core.h:126
bank
->
prot_blocks
=
alloc_block_array
(
0
,
block_size
,
bank
->
num_prot_blocks
)
;
aducm302x.c:152
aducm302x_probe()
if
(
bank
->
prot_blocks
==
NULL
)
{
aducm302x.c:153
aducm302x_probe()
bank
->
prot_blocks
[
i
]
.
is_protected
=
!
(
wrprot
&
(
1
<
<
i
)
)
;
aducm302x.c:331
aducm302x_protect_check()
bank
->
prot_blocks
[
prot_block
]
.
is_protected
=
!
(
lock
&
(
1u
<
<
prot_block
)
)
;
at91samd.c:410
samd_protect_check()
bank
->
prot_blocks
=
alloc_block_array
(
0
,
chip
->
prot_block_size
,
bank
->
num_prot_blocks
)
;
at91samd.c:490
samd_probe()
if
(
!
bank
->
prot_blocks
)
at91samd.c:491
samd_probe()
if
(
set
!=
bank
->
prot_blocks
[
prot_block
]
.
is_protected
)
{
at91samd.c:762
samd_protect()
bank
->
prot_blocks
[
prot_block
]
.
offset
>
>
1
)
;
at91samd.c:766
samd_protect()
bank
->
prot_blocks
[
prot_block
]
.
is_protected
=
!
(
lock
&
(
1u
<
<
prot_block
)
)
;
atsame5.c:239
same5_protect_check()
bank
->
prot_blocks
=
alloc_block_array
(
0
,
chip
->
prot_block_size
,
bank
->
num_prot_blocks
)
;
atsame5.c:319
same5_probe()
if
(
!
bank
->
prot_blocks
)
atsame5.c:320
same5_probe()
if
(
set
!=
bank
->
prot_blocks
[
prot_block
]
.
is_protected
)
{
atsame5.c:581
same5_protect()
bank
->
prot_blocks
[
prot_block
]
.
offset
)
;
atsame5.c:585
same5_protect()
free
(
bank
->
prot_blocks
)
;
core.c:233
flash_free_all_banks()
if
(
!
c
->
prot_blocks
||
c
->
num_prot_blocks
==
0
)
{
core.c:487
flash_iterate_address_range_inner()
block_array
=
c
->
prot_blocks
;
core.c:493
flash_iterate_address_range_inner()
if
(
!
bank
->
prot_blocks
||
bank
->
num_prot_blocks
==
0
)
{
kinetis.c:1401
kinetis_protect()
bank
->
prot_blocks
[
i
]
.
is_protected
=
set
;
kinetis.c:1407
kinetis_protect()
bank
->
prot_blocks
[
i
]
.
is_protected
=
0
;
kinetis.c:1450
kinetis_protect_check()
bank
->
prot_blocks
[
i
]
.
is_protected
=
1
;
kinetis.c:1452
kinetis_protect_check()
if
(
bank_iter
->
prot_blocks
[
i
]
.
is_protected
==
1
)
kinetis.c:1496
kinetis_fill_fcf()
if
(
bank_iter
->
prot_blocks
[
i
]
.
is_protected
==
1
)
kinetis.c:1504
kinetis_fill_fcf()
free
(
bank
->
prot_blocks
)
;
kinetis.c:3012
kinetis_probe()
bank
->
prot_blocks
=
NULL
;
kinetis.c:3013
kinetis_probe()
bank
->
prot_blocks
=
alloc_block_array
(
0
,
k_bank
->
protection_size
,
bank
->
num_prot_blocks
)
;
kinetis.c:3028
kinetis_probe()
if
(
!
bank
->
prot_blocks
)
kinetis.c:3029
kinetis_probe()
bank
->
prot_blocks
[
i
]
.
is_protected
=
(
status
&
(
1
<
<
i
)
)
?
0
:
1
;
rsl10.c:171
rsl10_protect_check()
free
(
bank
->
prot_blocks
)
;
rsl10.c:318
rsl10_probe()
bank
->
prot_blocks
=
NULL
;
rsl10.c:319
rsl10_probe()
bank
->
prot_blocks
=
alloc_block_array
(
0
,
bank
->
num_sectors
/
3
*
flash_page_size
,
bank
->
num_prot_blocks
)
;
rsl10.c:323
rsl10_probe()
if
(
!
bank
->
prot_blocks
)
rsl10.c:324
rsl10_probe()
bank
->
prot_blocks
[
i
]
.
is_protected
=
(
protection
&
(
1
<
<
i
)
)
?
0
:
1
;
stm32f1x.c:361
stm32x_protect_check()
free
(
bank
->
prot_blocks
)
;
stm32f1x.c:1024
stm32x_probe()
bank
->
prot_blocks
=
NULL
;
stm32f1x.c:1025
stm32x_probe()
bank
->
prot_blocks
=
alloc_block_array
(
0
,
stm32x_info
->
ppage_size
*
page_size
,
num_prot_blocks
)
;
stm32f1x.c:1041
stm32x_probe()
if
(
!
bank
->
prot_blocks
)
stm32f1x.c:1042
stm32x_probe()
bank
->
prot_blocks
[
31
]
.
size
=
(
num_pages
-
(
31
*
stm32x_info
->
ppage_size
)
)
*
page_size
;
stm32f1x.c:1046
stm32x_probe()
if
(
bank
->
prot_blocks
)
{
stm32f2x.c:577
stm32x_protect_check()
prot_blocks
=
bank
->
prot_blocks
;
stm32f2x.c:579
stm32x_protect_check()
free
(
bank
->
prot_blocks
)
;
stm32f2x.c:1008
stm32x_probe()
bank
->
prot_blocks
=
NULL
;
stm32f2x.c:1010
stm32x_probe()
bank
->
prot_blocks
=
malloc
(
sizeof
(
struct
flash_sector
)
*
num_prot_blocks
)
;
stm32f2x.c:1199
stm32x_probe()
bank
->
prot_blocks
[
i
]
.
is_protected
=
0
;
stm32f2x.c:1201
stm32x_probe()
bank
->
prot_blocks
[
i
]
.
offset
=
bank
->
sectors
[
i
<
<
1
]
.
offset
;
stm32f2x.c:1214
stm32x_probe()
bank
->
prot_blocks
[
i
]
.
size
=
bank
->
sectors
[
i
<
<
1
]
.
size
stm32f2x.c:1215
stm32x_probe()
bank
->
prot_blocks
[
i
]
.
offset
=
bank
->
sectors
[
i
]
.
offset
;
stm32f2x.c:1226
stm32x_probe()
bank
->
prot_blocks
[
i
]
.
size
=
bank
->
sectors
[
i
]
.
size
;
stm32f2x.c:1227
stm32x_probe()
bank
->
prot_blocks
[
num_prot_blocks
-
1
]
.
size
<<=
1
;
stm32f2x.c:1229
stm32x_probe()
bank
->
prot_blocks
[
i
]
.
is_protected
=
0
;
stm32g0x.c:348
stm32x_protect_check()
bank
->
prot_blocks
[
i
]
.
is_protected
=
1
;
stm32g0x.c:362
stm32x_protect_check()
bank
->
prot_blocks
[
i
]
.
is_protected
=
1
;
stm32g0x.c:378
stm32x_protect_check()
if
(
bank
->
prot_blocks
)
{
stm32g0x.c:777
stm32x_probe()
free
(
bank
->
prot_blocks
)
;
stm32g0x.c:778
stm32x_probe()
bank
->
prot_blocks
=
NULL
;
stm32g0x.c:779
stm32x_probe()
bank
->
prot_blocks
=
alloc_block_array
(
0
,
page_size
,
num_pages
)
;
stm32g0x.c:791
stm32x_probe()
if
(
!
bank
->
prot_blocks
)
stm32g0x.c:792
stm32x_probe()
bank
->
prot_blocks
[
i
]
.
is_protected
=
protection
&
(
1
<
<
i
)
?
0
:
1
;
stm32h7x.c:458
stm32x_protect_check()
free
(
bank
->
prot_blocks
)
;
stm32h7x.c:898
stm32x_probe()
bank
->
prot_blocks
=
alloc_block_array
(
0
,
stm32x_info
->
part_info
->
page_size_kb
*
wpsn
*
1024
,
stm32h7x.c:900
stm32x_probe()
if
(
!
bank
->
prot_blocks
)
{
stm32h7x.c:903
stm32x_probe()
prot_block_available
=
p
->
num_prot_blocks
&&
p
->
prot_blocks
;
tcl.c:112
handle_flash_info_command()
block_array
=
p
->
prot_blocks
;
tcl.c:114
handle_flash_info_command()
bank
->
prot_blocks
=
master_bank
->
prot_blocks
;
virtual.c:44
virtual_update_bank_info()
Call Tree
from
examples
All items filtered out
All items filtered out
Data Use
from
examples
flash_bank::prot_blocks
is written by 10 functions and is read by 26 functions:
samd_probe()
kinetis_probe()
stm32x_probe()
stm32x_probe()
stm32x_probe()
virtual_update_bank_info()
aducm302x_probe()
same5_probe()
stm32x_probe()
rsl10_probe()
All items filtered out
flash_bank::prot_blocks
samd_protect_check()
samd_probe()
samd_protect()
flash_free_all_banks()
flash_iterate_address_range_inner()
kinetis_protect()
kinetis_protect_check()
kinetis_fill_fcf()
kinetis_probe()
stm32x_protect_check()
stm32x_probe()
stm32x_protect_check()
stm32x_probe()
stm32x_protect_check()
stm32x_probe()
handle_flash_info_command()
virtual_update_bank_info()
aducm302x_probe()
aducm302x_protect_check()
same5_protect_check()
same5_probe()
same5_protect()
stm32x_protect_check()
stm32x_probe()
rsl10_protect_check()
rsl10_probe()
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