/trusted-firmware-m-3.4.0/platform/ext/target/arm/rss/common/cmsis_drivers/ |
D | Driver_Flash.c | 153 struct arm_flash_dev_t *FLASH0_DEV = &ARM_FLASH0_DEV; variable 204 uint32_t start_addr = FLASH0_DEV->memory_base + addr; in ARM_Flash_ReadData() 211 rc = is_range_valid(FLASH0_DEV, addr + cnt); in ARM_Flash_ReadData() 228 uint32_t start_addr = FLASH0_DEV->memory_base + addr; in ARM_Flash_ProgramData() 235 rc = is_range_valid(FLASH0_DEV, addr + cnt); in ARM_Flash_ProgramData() 236 rc |= is_write_aligned(FLASH0_DEV, addr); in ARM_Flash_ProgramData() 237 rc |= is_write_aligned(FLASH0_DEV, cnt); in ARM_Flash_ProgramData() 259 uint32_t start_addr = FLASH0_DEV->memory_base + addr; in ARM_Flash_EraseSector() 262 rc = is_range_valid(FLASH0_DEV, addr); in ARM_Flash_EraseSector() 263 rc |= is_sector_aligned(FLASH0_DEV, addr); in ARM_Flash_EraseSector() [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/arm/mps3/corstone310/common/cmsis_drivers/ |
D | Driver_Flash.c | 154 struct arm_flash_dev_t *FLASH0_DEV = &ARM_FLASH0_DEV; variable 205 uint32_t start_addr = FLASH0_DEV->memory_base + addr; in ARM_Flash_ReadData() 212 rc = is_range_valid(FLASH0_DEV, addr + cnt); in ARM_Flash_ReadData() 229 uint32_t start_addr = FLASH0_DEV->memory_base + addr; in ARM_Flash_ProgramData() 236 rc = is_range_valid(FLASH0_DEV, addr + cnt); in ARM_Flash_ProgramData() 237 rc |= is_write_aligned(FLASH0_DEV, addr); in ARM_Flash_ProgramData() 238 rc |= is_write_aligned(FLASH0_DEV, cnt); in ARM_Flash_ProgramData() 260 uint32_t start_addr = FLASH0_DEV->memory_base + addr; in ARM_Flash_EraseSector() 263 rc = is_range_valid(FLASH0_DEV, addr); in ARM_Flash_EraseSector() 264 rc |= is_sector_aligned(FLASH0_DEV, addr); in ARM_Flash_EraseSector() [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/arm/mps2/an521/cmsis_drivers/ |
D | Driver_Flash.c | 147 struct arm_flash_dev_t *FLASH0_DEV = &ARM_FLASH0_DEV; variable 198 uint32_t start_addr = FLASH0_DEV->memory_base + addr; in ARM_Flash_ReadData() 212 rc = is_range_valid(FLASH0_DEV, addr + cnt); in ARM_Flash_ReadData() 229 uint32_t start_addr = FLASH0_DEV->memory_base + addr; in ARM_Flash_ProgramData() 236 rc = is_range_valid(FLASH0_DEV, addr + cnt); in ARM_Flash_ProgramData() 237 rc |= is_write_aligned(FLASH0_DEV, addr); in ARM_Flash_ProgramData() 238 rc |= is_write_aligned(FLASH0_DEV, cnt); in ARM_Flash_ProgramData() 257 uint32_t start_addr = FLASH0_DEV->memory_base + addr; in ARM_Flash_EraseSector() 260 rc = is_range_valid(FLASH0_DEV, addr); in ARM_Flash_EraseSector() 261 rc |= is_sector_aligned(FLASH0_DEV, addr); in ARM_Flash_EraseSector() [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/arm/mps2/an519/cmsis_drivers/ |
D | Driver_Flash.c | 149 struct arm_flash_dev_t *FLASH0_DEV = &ARM_FLASH0_DEV; variable 200 uint32_t start_addr = FLASH0_DEV->memory_base + addr; in ARM_Flash_ReadData() 207 rc = is_range_valid(FLASH0_DEV, addr + cnt); in ARM_Flash_ReadData() 224 uint32_t start_addr = FLASH0_DEV->memory_base + addr; in ARM_Flash_ProgramData() 230 rc = is_range_valid(FLASH0_DEV, addr + cnt); in ARM_Flash_ProgramData() 231 rc |= is_write_aligned(FLASH0_DEV, addr); in ARM_Flash_ProgramData() 232 rc |= is_write_aligned(FLASH0_DEV, cnt); in ARM_Flash_ProgramData() 254 uint32_t start_addr = FLASH0_DEV->memory_base + addr; in ARM_Flash_EraseSector() 257 rc = is_range_valid(FLASH0_DEV, addr); in ARM_Flash_EraseSector() 258 rc |= is_sector_aligned(FLASH0_DEV, addr); in ARM_Flash_EraseSector() [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/arm/mps3/an547/cmsis_drivers/ |
D | Driver_Flash.c | 153 struct arm_flash_dev_t *FLASH0_DEV = &ARM_FLASH0_DEV; variable 204 uint32_t start_addr = FLASH0_DEV->memory_base + addr; in ARM_Flash_ReadData() 211 rc = is_range_valid(FLASH0_DEV, addr + cnt); in ARM_Flash_ReadData() 228 uint32_t start_addr = FLASH0_DEV->memory_base + addr; in ARM_Flash_ProgramData() 235 rc = is_range_valid(FLASH0_DEV, addr + cnt); in ARM_Flash_ProgramData() 236 rc |= is_write_aligned(FLASH0_DEV, addr); in ARM_Flash_ProgramData() 237 rc |= is_write_aligned(FLASH0_DEV, cnt); in ARM_Flash_ProgramData() 259 uint32_t start_addr = FLASH0_DEV->memory_base + addr; in ARM_Flash_EraseSector() 262 rc = is_range_valid(FLASH0_DEV, addr); in ARM_Flash_EraseSector() 263 rc |= is_sector_aligned(FLASH0_DEV, addr); in ARM_Flash_EraseSector() [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/arm/mps3/an524/cmsis_drivers/ |
D | Driver_Flash.c | 152 struct arm_flash_dev_t *FLASH0_DEV = &ARM_FLASH0_DEV; variable 203 volatile uint32_t mem_base = FLASH0_DEV->memory_base; in ARM_Flash_ReadData() 211 rc = is_range_valid(FLASH0_DEV, addr + cnt); in ARM_Flash_ReadData() 232 volatile uint32_t mem_base = FLASH0_DEV->memory_base; in ARM_Flash_ProgramData() 240 rc = is_range_valid(FLASH0_DEV, addr + cnt); in ARM_Flash_ProgramData() 241 rc |= is_write_aligned(FLASH0_DEV, addr); in ARM_Flash_ProgramData() 242 rc |= is_write_aligned(FLASH0_DEV, cnt); in ARM_Flash_ProgramData() 267 rc = is_range_valid(FLASH0_DEV, addr); in ARM_Flash_EraseSector() 268 rc |= is_sector_aligned(FLASH0_DEV, addr); in ARM_Flash_EraseSector() 278 FLASH0_DEV->data->erased_value, in ARM_Flash_EraseSector() [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/arm/musca_s1/CMSIS_Driver/ |
D | Driver_Flash_MRAM.c | 148 struct arm_flash_dev_t *FLASH0_DEV = &ARM_FLASH0_DEV; variable 199 uint32_t start_addr = FLASH0_DEV->memory_base + addr; in ARM_Flash_ReadData() 206 rc = is_range_valid(FLASH0_DEV, addr + cnt); in ARM_Flash_ReadData() 220 uint32_t start_addr = FLASH0_DEV->memory_base + addr; in ARM_Flash_ProgramData() 229 rc = is_range_valid(FLASH0_DEV, addr + cnt); in ARM_Flash_ProgramData() 230 rc |= is_write_aligned(FLASH0_DEV, addr); in ARM_Flash_ProgramData() 231 rc |= is_write_aligned(FLASH0_DEV, cnt); in ARM_Flash_ProgramData() 272 uint32_t start_addr = FLASH0_DEV->memory_base + addr; in ARM_Flash_EraseSector() 277 rc = is_range_valid(FLASH0_DEV, addr); in ARM_Flash_EraseSector() 278 rc |= is_sector_aligned(FLASH0_DEV, addr); in ARM_Flash_EraseSector() [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/cypress/psoc64/CMSIS_Driver/ |
D | Driver_Flash.c | 103 struct arm_flash_dev_t *FLASH0_DEV = &ARM_FLASH0_DEV; variable 160 if (FLASH0_DEV->memory_base >= UINT32_MAX - addr) { in ARM_Flash_ReadData() 164 uint32_t start_addr = FLASH0_DEV->memory_base + addr; in ARM_Flash_ReadData() 166 if (start_addr >= FLASH0_DEV->memory_base + FLASH0_SIZE) { in ARM_Flash_ReadData() 175 if ( (start_addr + cnt < FLASH0_DEV->memory_base) || in ARM_Flash_ReadData() 176 (start_addr + cnt > FLASH0_DEV->memory_base + FLASH0_SIZE) in ARM_Flash_ReadData() 193 uint32_t address = FLASH0_DEV->memory_base + addr; in ARM_Flash_ProgramData() 206 if (cnt % FLASH0_DEV->data->program_unit) { in ARM_Flash_ProgramData() 211 if (FLASH0_DEV->memory_base >= UINT32_MAX - addr) { in ARM_Flash_ProgramData() 257 if (FLASH0_DEV->memory_base >= UINT32_MAX - addr) { in ARM_Flash_EraseSector() [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/nuvoton/common/cmsis_drivers/ |
D | Driver_Flash.c | 139 struct arm_flash_dev_t *FLASH0_DEV = &ARM_FLASH0_DEV; variable 197 uint32_t start_addr = FLASH0_DEV->memory_base + addr; in ARM_Flash_ReadData() 206 rc = is_range_valid(FLASH0_DEV, addr + cnt); in ARM_Flash_ReadData() 227 volatile uint32_t mem_base = FLASH0_DEV->memory_base; in ARM_Flash_ProgramData() 236 rc = is_range_valid(FLASH0_DEV, addr + cnt); in ARM_Flash_ProgramData() 237 rc |= is_write_aligned(FLASH0_DEV, addr); in ARM_Flash_ProgramData() 238 rc |= is_write_aligned(FLASH0_DEV, cnt); in ARM_Flash_ProgramData() 286 volatile uint32_t mem_base = FLASH0_DEV->memory_base; in ARM_Flash_EraseSector() 290 rc = is_range_valid(FLASH0_DEV, addr); in ARM_Flash_EraseSector() 291 rc |= is_sector_aligned(FLASH0_DEV, addr); in ARM_Flash_EraseSector() [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/nxp/common/CMSIS_Driver/ |
D | Driver_Flash_iap1.c | 123 struct arm_flash_dev_t *FLASH0_DEV = &ARM_FLASH0_DEV; variable 161 status = FLASH_Init(&FLASH0_DEV->flashInstance); in ARM_Flash_Initialize() 169 FLASH0_DEV->flashInstance.modeConfig.readSingleWord.readWithEccOff = 0x1; in ARM_Flash_Initialize() 173 if(FLASH_ReadInit(&FLASH0_DEV->flashInstance) != kStatus_Success){ in ARM_Flash_Initialize() 209 status = is_range_valid(FLASH0_DEV, addr + cnt); in ARM_Flash_ReadData() 217 status = FLASH_ReadData(&FLASH0_DEV->flashInstance, addr, (uint8_t *)data, cnt); in ARM_Flash_ReadData() 237 status = is_range_valid(FLASH0_DEV, addr); in ARM_Flash_ProgramData() 238 status |= is_write_aligned(FLASH0_DEV, addr); in ARM_Flash_ProgramData() 239 status |= is_write_aligned(FLASH0_DEV, cnt); in ARM_Flash_ProgramData() 244 status = FLASH_Program(&FLASH0_DEV->flashInstance, addr, (uint8_t *)data, cnt); in ARM_Flash_ProgramData() [all …]
|
/trusted-firmware-m-3.4.0/platform/ext/target/arm/corstone1000/CMSIS_Driver/Config/ |
D | cmsis_driver_config.h | 30 #define FLASH0_DEV SPI_STRATAFLASHJ3_DEV macro 35 #define FLASH0_DEV SPI_N25Q256A_DEV macro
|
/trusted-firmware-m-3.4.0/platform/ext/target/arm/mps3/an552/cmsis_drivers/ |
D | Driver_Flash.c | 145 struct emulated_flash_dev_t *FLASH0_DEV = &ARM_FLASH0_DEV; variable 156 enum emulated_flash_error_t rc = emulated_flash_read_data(FLASH0_DEV, addr, data, cnt); in ARM_Flash_FLASH0_ReadData() 172 enum emulated_flash_error_t rc = emulated_flash_program_data(FLASH0_DEV, addr, data, cnt); in ARM_Flash_FLASH0_ProgramData() 188 enum emulated_flash_error_t rc = emulated_flash_erase_sector(FLASH0_DEV, addr); in ARM_Flash_FLASH0_EraseSector() 201 emulated_flash_erase_chip(FLASH0_DEV); in ARM_Flash_FLASH0_EraseChip()
|
/trusted-firmware-m-3.4.0/platform/ext/target/stm/common/stm32l5xx/secure/ |
D | low_level_device.c | 29 struct low_level_device FLASH0_DEV = { variable
|
/trusted-firmware-m-3.4.0/platform/ext/target/stm/common/hal/CMSIS_Driver/ |
D | low_level_flash.h | 49 extern struct low_level_device FLASH0_DEV;
|
D | low_level_flash.c | 264 .dev = &(FLASH0_DEV),
|
/trusted-firmware-m-3.4.0/platform/ext/target/arm/musca_b1/CMSIS_Driver/Config/ |
D | cmsis_driver_config.h | 53 #define FLASH0_DEV MT25QL_DEV_S macro
|
/trusted-firmware-m-3.4.0/platform/ext/target/stm/common/stm32u5xx/bl2/ |
D | low_level_device.c | 52 struct low_level_device FLASH0_DEV = variable
|
/trusted-firmware-m-3.4.0/platform/ext/target/stm/common/stm32l5xx/bl2/ |
D | low_level_device.c | 51 struct low_level_device FLASH0_DEV = variable
|
/trusted-firmware-m-3.4.0/platform/ext/target/stm/common/stm32u5xx/secure/ |
D | low_level_device.c | 52 struct low_level_device FLASH0_DEV = variable
|
/trusted-firmware-m-3.4.0/platform/ext/target/arm/musca_b1/CMSIS_Driver/ |
D | Driver_QSPI_Flash.c | 134 .dev = &FLASH0_DEV,
|
/trusted-firmware-m-3.4.0/platform/ext/target/arm/corstone1000/CMSIS_Driver/ |
D | Driver_Flash.c | 146 .dev = &FLASH0_DEV, 180 .dev = &FLASH0_DEV,
|