flash_driver::protect is only used within OpenOCD.
 
Symbols
loading...
Files
loading...

flash_driver::protect field

Bank/sector protection routine (target-specific). If protection is not implemented, set method to NULL When called, the driver should enable/disable protection for MINIMUM the range covered by first..last sectors inclusive. Some chips have alignment requirements will cause the actual range to be protected / unprotected to be larger than the first..last range.

Syntax

int (*protect)(struct flash_bank *bank, int set, unsigned int first, unsigned int last);

References

LocationReferrerScopeText
driver.h:116
int (*protect)(struct flash_bank *bank, int set, unsigned int first,
FLASHPlugin.c:796plugin_protect()plugin_flash
FLASHPlugin.c:807
.protect = plugin_protect
aducm302x.c:567aducm302x_protect()aducm302x_flash
aducm302x.c:573
.protect = aducm302x_protect,
aducm302x.c:584aducm302x_protect()aducm4x50_flash
aducm302x.c:590
.protect = aducm302x_protect,
ambiqmicro.c:853ambiqmicro_protect()ambiqmicro_flash
ambiqmicro.c:858
.protect = ambiqmicro_protect,
at91sam3.c:3710sam3_protect()at91sam3_flash
const struct flash_driver at91sam3_flash = {
at91sam3.c:3715
.protect = sam3_protect,
at91sam4.c:3258sam4_protect()at91sam4_flash
const struct flash_driver at91sam4_flash = {
at91sam4.c:3263
.protect = sam4_protect,
at91sam4l.c:678sam4l_protect()at91sam4l_flash
const struct flash_driver at91sam4l_flash = {
at91sam4l.c:683
.protect = sam4l_protect,
at91sam7.c:1119at91sam7_protect()at91sam7_flash
const struct flash_driver at91sam7_flash = {
at91sam7.c:1125
.protect = at91sam7_protect,
at91samd.c:1290samd_protect()at91samd_flash
const struct flash_driver at91samd_flash = {
at91samd.c:1295
.protect = samd_protect,
ath79.c:882ath79_protect()ath79_flash
const struct flash_driver ath79_flash = {
ath79.c:886
.protect = ath79_protect,
atsame5.c:950same5_protect()atsame5_flash
const struct flash_driver atsame5_flash = {
atsame5.c:955
.protect = same5_protect,
atsamv.c:687samv_protect()atsamv_flash
const struct flash_driver atsamv_flash = {
atsamv.c:692
.protect = samv_protect,
bluenrg-x.c:469
.protect = NULL,
cfi.c:3038cfi_protect()cfi_flash
const struct flash_driver cfi_flash = {
cfi.c:3042
.protect = cfi_protect,
core.c:62flash_driver_protect()
if (!bank->driver->protect) {
core.c:78flash_driver_protect()
retval = bank->driver->protect(bank, set, first, last);
dsp5680xx_flash.c:210dsp5680xx_flash_protect()dsp5680xx_flash
const struct flash_driver dsp5680xx_flash = {
dsp5680xx_flash.c:214
efm32.c:1211efm32x_protect()efm32_flash
const struct flash_driver efm32_flash = {
efm32.c:1216
.protect = efm32x_protect,
em357.c:911em357_protect()em357_flash
const struct flash_driver em357_flash = {
em357.c:916
.protect = em357_protect,
eneispif.c:419eneispif_protect()eneispif_flash
const struct flash_driver eneispif_flash = {
eneispif.c:424
.protect = eneispif_protect,
fespi.c:850fespi_protect()fespi_flash
const struct flash_driver fespi_flash = {
fespi.c:854
.protect = fespi_protect,
jtagspi.c:841jtagspi_protect()jtagspi_flash
const struct flash_driver jtagspi_flash = {
jtagspi.c:846
.protect = jtagspi_protect,
kinetis.c:3436kinetis_protect()kinetis_flash
const struct flash_driver kinetis_flash = {
kinetis.c:3441
.protect = kinetis_protect,
kinetis_ke.c:1257kinetis_ke_protect()kinetis_ke_flash
kinetis_ke.c:1262
.protect = kinetis_ke_protect,
lpc288x.c:404lpc288x_protect()lpc288x_flash
const struct flash_driver lpc288x_flash = {
lpc288x.c:408
.protect = lpc288x_protect,
lpcspifi.c:934lpcspifi_protect()lpcspifi_flash
const struct flash_driver lpcspifi_flash = {
lpcspifi.c:938
.protect = lpcspifi_protect,
max32xxx.c:960max32xxx_protect()max32xxx_flash
const struct flash_driver max32xxx_flash = {
max32xxx.c:965
.protect = max32xxx_protect,
msp432p4.c:583msp432p4_protect()msp432p4_flash
msp432p4.c:588
.protect = msp432p4_protect,
niietcm4.c:1718niietcm4_protect()niietcm4_flash
const struct flash_driver niietcm4_flash = {
niietcm4.c:1724
.protect = niietcm4_protect,
nrf5.c:1513nrf5_protect()nrf5_flash
const struct flash_driver nrf5_flash = {
nrf5.c:1519
.protect = nrf5_protect,
nrf5.c:1531nrf5_protect()nrf51_flash
const struct flash_driver nrf51_flash = {
nrf5.c:1537
.protect = nrf5_protect,
pic32mm.c:1144pic32mm_protect()pic32mm_flash
const struct flash_driver pic32mm_flash = {
pic32mm.c:1149
.protect = pic32mm_protect,
pic32mx.c:950pic32mx_protect()pic32mx_flash
const struct flash_driver pic32mx_flash = {
pic32mx.c:955
.protect = pic32mx_protect,
psoc4.c:920psoc4_protect()psoc4_flash
const struct flash_driver psoc4_flash = {
psoc4.c:925
.protect = psoc4_protect,
psoc6.c:1065psoc6_protect()psoc6_flash
const struct flash_driver psoc6_flash = {
psoc6.c:1070
.protect = psoc6_protect,
qn908x.c:1183qn908x_protect()qn908x_flash
const struct flash_driver qn908x_flash = {
qn908x.c:1189
.protect = qn908x_protect,
renesas_rpchf.c:634cfi_protect()renesas_rpchf_flash
renesas_rpchf.c:638
.protect = cfi_protect,
rs14100.c:583rs14100_protect()rs14100_flash
const struct flash_driver rs14100_flash = {
rs14100.c:587
.protect = rs14100_protect,
rsl10.c:832rsl10_protect()rsl10_flash
const struct flash_driver rsl10_flash = {
rsl10.c:837
.protect = rsl10_protect,
sh_qspi.c:899sh_qspi_protect()sh_qspi_flash
const struct flash_driver sh_qspi_flash = {
sh_qspi.c:903
.protect = sh_qspi_protect,
sim3x.c:1094sim3x_flash_protect()sim3x_flash
const struct flash_driver sim3x_flash = {
sim3x.c:1099
stellaris.c:1415stellaris_protect()stellaris_flash
const struct flash_driver stellaris_flash = {
stellaris.c:1420
.protect = stellaris_protect,
stm32f1x.c:1729stm32x_protect()stm32f1x_flash
const struct flash_driver stm32f1x_flash = {
stm32f1x.c:1734
.protect = stm32x_protect,
stm32f2x.c:1802stm32x_protect()stm32f2x_flash
const struct flash_driver stm32f2x_flash = {
stm32f2x.c:1807
.protect = stm32x_protect,
stm32g0x.c:1270stm32x_protect()stm32g0x_flash
const struct flash_driver stm32g0x_flash = {
stm32g0x.c:1275
.protect = stm32x_protect,
stm32g4x.c:1204stm32l4_protect()stm32g4x_flash
const struct flash_driver stm32g4x_flash = {
stm32g4x.c:1209
.protect = stm32l4_protect,
stm32h7x.c:1193stm32x_protect()stm32h7x_flash
const struct flash_driver stm32h7x_flash = {
stm32h7x.c:1198
.protect = stm32x_protect,
stm32l4x.c:2670stm32l4_protect()stm32l4x_flash
const struct flash_driver stm32l4x_flash = {
stm32l4x.c:2675
.protect = stm32l4_protect,
stm32l5x.c:1181stm32l4_protect()stm32l5x_flash
const struct flash_driver stm32l5x_flash = {
stm32l5x.c:1186
.protect = stm32l4_protect,
stmqspi.c:2450stmqspi_protect()stmqspi_flash
const struct flash_driver stmqspi_flash = {
stmqspi.c:2455
.protect = stmqspi_protect,
stmsmi.c:639stmsmi_protect()stmsmi_flash
const struct flash_driver stmsmi_flash = {
stmsmi.c:643
.protect = stmsmi_protect,
str7x.c:786str7x_protect()str7x_flash
const struct flash_driver str7x_flash = {
str7x.c:791
.protect = str7x_protect,
str9x.c:653str9x_protect()str9x_flash
const struct flash_driver str9x_flash = {
str9x.c:658
.protect = str9x_protect,
str9xpec.c:1188str9xpec_protect()str9xpec_flash
const struct flash_driver str9xpec_flash = {
str9xpec.c:1193
.protect = str9xpec_protect,
tms470.c:1145tms470_protect()tms470_flash
const struct flash_driver tms470_flash = {
tms470.c:1150
.protect = tms470_protect,
virtual.c:210virtual_protect()virtual_flash
const struct flash_driver virtual_flash = {
virtual.c:214
.protect = virtual_protect,
xcf.c:875xcf_protect()xcf_flash
const struct flash_driver xcf_flash = {
xcf.c:881
.protect = xcf_protect,
xmc4xxx.c:1332xmc4xxx_protect()xmc4xxx_flash
const struct flash_driver xmc4xxx_flash = {
xmc4xxx.c:1344
.protect = xmc4xxx_protect,