/trusted-firmware-m-3.7.0/bl2/ext/mcuboot/ |
D | flash_map_legacy.c | 38 int flash_area_get_sectors(int idx, uint32_t *cnt, struct flash_sector *ret) in flash_area_get_sectors() argument 41 uint32_t max_cnt = *cnt; in flash_area_get_sectors() 52 if (*cnt < 1) { in flash_area_get_sectors() 57 *cnt = 0; in flash_area_get_sectors() 58 while (rem_len > 0 && *cnt < max_cnt) { in flash_area_get_sectors() 65 ret[*cnt].fs_off = FLASH_AREA_IMAGE_SECTOR_SIZE * (*cnt); in flash_area_get_sectors() 66 ret[*cnt].fs_size = FLASH_AREA_IMAGE_SECTOR_SIZE; in flash_area_get_sectors() 67 *cnt = *cnt + 1; in flash_area_get_sectors() 71 if (*cnt > max_cnt) { in flash_area_get_sectors()
|
/trusted-firmware-m-3.7.0/platform/ext/target/stm/common/hal/CMSIS_Driver/ |
D | low_level_ospi_flash.c | 270 static int32_t Ospi_Flash_ReadData(uint32_t addr, void *data, uint32_t cnt) in Ospi_Flash_ReadData() argument 275 cnt *= data_width_byte[DriverCapabilities.data_width]; in Ospi_Flash_ReadData() 279 printf("read ospi 0x%x n=%x \r\n", (addr + OSPI_FLASH_BASE_ADDRESS), cnt); in Ospi_Flash_ReadData() 283 if (!is_range_valid(&ARM_OSPI_FLASH0_DEV, addr + cnt - 1)) in Ospi_Flash_ReadData() 286 printf("read ospi not allowed 0x%x n=%x \r\n", (addr + OSPI_FLASH_BASE_ADDRESS), cnt); in Ospi_Flash_ReadData() 310 if (cnt > 1) in Ospi_Flash_ReadData() 312 if (cnt % 2) in Ospi_Flash_ReadData() 316 err = BSP_OSPI_NOR_Read(0, (uint8_t *)data + 1, (addr + 1), cnt - 1); in Ospi_Flash_ReadData() 323 err = BSP_OSPI_NOR_Read(0, (uint8_t *)data + 1, (addr + 1), cnt - 2); in Ospi_Flash_ReadData() 328 err = BSP_OSPI_NOR_Read(0, (uint8_t *)data_tmp, addr + cnt - 1, 2); in Ospi_Flash_ReadData() [all …]
|
D | low_level_flash.c | 352 static int32_t Flash_ReadData(uint32_t addr, void *data, uint32_t cnt) in Flash_ReadData() argument 358 cnt *= data_width_byte[DriverCapabilities.data_width]; in Flash_ReadData() 362 is_valid = is_range_valid(&ARM_FLASH0_DEV, addr + cnt - 1); in Flash_ReadData() 370 memset(data, 0xff, cnt); in Flash_ReadData() 376 printf("read %lx n=%x \r\n", (addr + FLASH_BASE), cnt); in Flash_ReadData() 382 if (is_range_secure(&ARM_FLASH0_DEV, addr, cnt)) in Flash_ReadData() 384 memcpy_flash(data, (void *)((uint32_t)addr + FLASH_BASE), cnt); in Flash_ReadData() 388 memcpy_flash(data, (void *)((uint32_t)addr + FLASH_BASE_NS), cnt); in Flash_ReadData() 391 memcpy_flash(data, (void *)((uint32_t)addr + FLASH_BASE_NS), cnt); in Flash_ReadData() 403 memset(data, 0x00, cnt); in Flash_ReadData() [all …]
|
/trusted-firmware-m-3.7.0/platform/ext/target/cypress/psoc64/CMSIS_Driver/ |
D | Driver_Flash.c | 151 static int32_t ARM_Flash_ReadData(uint32_t addr, void *data, uint32_t cnt) in ARM_Flash_ReadData() argument 153 if ( (data == NULL) || (cnt == 0) ) { in ARM_Flash_ReadData() 157 cnt *= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ReadData() 171 if (start_addr >= UINT32_MAX - cnt) { 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() 182 memcpy(data, (void *)start_addr, cnt); in ARM_Flash_ReadData() 184 cnt /= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ReadData() 185 return cnt; in ARM_Flash_ReadData() 189 uint32_t cnt) in ARM_Flash_ProgramData() argument [all …]
|
/trusted-firmware-m-3.7.0/platform/ext/target/arm/musca_s1/CMSIS_Driver/ |
D | Driver_QSPI_Flash.c | 201 static int32_t ARM_Flash_ReadData(uint32_t addr, void *data, uint32_t cnt) in ARM_Flash_ReadData() argument 212 cnt *= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ReadData() 217 is_valid = is_range_valid(&ARM_FLASH0_DEV, addr + cnt); in ARM_Flash_ReadData() 225 if (cnt % data_width_byte[DriverCapabilities.data_width] != 0) { in ARM_Flash_ReadData() 226 extra_bytes = cnt % data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ReadData() 227 cnt -= extra_bytes; in ARM_Flash_ReadData() 230 err = mt25ql_command_read(ARM_FLASH0_DEV.dev, addr, data, cnt); in ARM_Flash_ReadData() 233 err = mt25ql_command_read(ARM_FLASH0_DEV.dev, addr + cnt, &extra_word, in ARM_Flash_ReadData() 235 memcpy((char *) data + cnt, &extra_word, extra_bytes); in ARM_Flash_ReadData() 245 cnt /= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ReadData() [all …]
|
D | Driver_Flash_MRAM.c | 116 static int32_t is_flash_ready_to_write(const uint8_t *start_addr, uint32_t cnt) in is_flash_ready_to_write() argument 121 for (i = 0; i < cnt; i++) { in is_flash_ready_to_write() 197 static int32_t ARM_Flash_ReadData(uint32_t addr, void *data, uint32_t cnt) in ARM_Flash_ReadData() argument 203 cnt *= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ReadData() 206 rc = is_range_valid(FLASH0_DEV, addr + cnt); in ARM_Flash_ReadData() 212 memcpy(data, (void *)start_addr, cnt); in ARM_Flash_ReadData() 213 cnt /= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ReadData() 214 return cnt; in ARM_Flash_ReadData() 218 uint32_t cnt) in ARM_Flash_ProgramData() argument 226 cnt *= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ProgramData() [all …]
|
/trusted-firmware-m-3.7.0/platform/ext/target/arm/drivers/flash/strata/ |
D | Driver_Flash_Strata.h | 75 uint32_t cnt) \ 89 cnt *= data_width_byte[STRATAFLASHJ3DriverCapabilities.data_width]; \ 91 ret = cfi_strataflashj3_read(FLASH_DEV.dev, addr, (uint8_t*) data, cnt); \ 96 cnt); \ 101 cnt /= data_width_byte[STRATAFLASHJ3DriverCapabilities.data_width]; \ 103 return cnt; \ 108 uint32_t cnt) \ 122 cnt *= data_width_byte[STRATAFLASHJ3DriverCapabilities.data_width]; \ 127 cnt); \ 132 cnt); \ [all …]
|
D | spi_strataflashj3_flash_lib.c | 90 uint32_t cnt) in cfi_strataflashj3_program_data_byte() argument 92 uint32_t remaining_bytes = cnt; in cfi_strataflashj3_program_data_byte() 124 uint32_t cnt) in cfi_strataflashj3_program() argument 130 uint32_t current_cnt = cnt; in cfi_strataflashj3_program() 136 CFI_FLASH_LOG_MSG("%s: addr=0x%x, cnt=%u\n\r", __func__, addr, cnt); in cfi_strataflashj3_program() 144 if ((addr + cnt) > (dev->total_sector_cnt * dev->sector_size)) { in cfi_strataflashj3_program() 151 if (cnt > remaining_space) { in cfi_strataflashj3_program() 178 uint8_t *data, uint32_t cnt) in cfi_strataflashj3_read() argument 180 uint32_t remaining_bytes = cnt; in cfi_strataflashj3_read() 190 CFI_FLASH_LOG_MSG("%s: addr=0x%x, cnt=%u\n\r", __func__, addr, cnt); in cfi_strataflashj3_read() [all …]
|
/trusted-firmware-m-3.7.0/platform/ext/target/arm/corstone1000/ci_regression_tests/ |
D | Driver_Flash_SRAM_Emu.c | 121 static int32_t is_flash_ready_to_write(const uint8_t *start_addr, uint32_t cnt) in is_flash_ready_to_write() argument 126 for (i = 0; i < cnt; i++) { in is_flash_ready_to_write() 197 static int32_t ARM_Flash_ReadData(uint32_t addr, void *data, uint32_t cnt) in ARM_Flash_ReadData() argument 206 cnt *= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ReadData() 209 rc = is_range_valid(TEST_FLASH_DEV, offset + cnt); in ARM_Flash_ReadData() 215 memcpy(data, (void *)addr, cnt); in ARM_Flash_ReadData() 218 cnt /= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ReadData() 220 return cnt; in ARM_Flash_ReadData() 224 uint32_t cnt) in ARM_Flash_ProgramData() argument 233 cnt *= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ProgramData() [all …]
|
/trusted-firmware-m-3.7.0/platform/ext/target/arm/mps2/an519/cmsis_drivers/ |
D | Driver_Flash.c | 117 static int32_t is_flash_ready_to_write(const uint8_t *start_addr, uint32_t cnt) in is_flash_ready_to_write() argument 122 for (i = 0; i < cnt; i++) { in is_flash_ready_to_write() 198 static int32_t ARM_Flash_ReadData(uint32_t addr, void *data, uint32_t cnt) in ARM_Flash_ReadData() argument 204 cnt *= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ReadData() 207 rc = is_range_valid(FLASH0_DEV, addr + cnt); in ARM_Flash_ReadData() 213 memcpy(data, (void *)start_addr, cnt); in ARM_Flash_ReadData() 216 cnt /= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ReadData() 218 return cnt; in ARM_Flash_ReadData() 222 uint32_t cnt) in ARM_Flash_ProgramData() argument 227 cnt *= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ProgramData() [all …]
|
/trusted-firmware-m-3.7.0/platform/ext/target/arm/mps2/an521/cmsis_drivers/ |
D | Driver_Flash.c | 115 static int32_t is_flash_ready_to_write(const uint8_t *start_addr, uint32_t cnt) in is_flash_ready_to_write() argument 120 for (i = 0; i < cnt; i++) { in is_flash_ready_to_write() 196 static int32_t ARM_Flash_ReadData(uint32_t addr, void *data, uint32_t cnt) in ARM_Flash_ReadData() argument 209 cnt *= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ReadData() 212 rc = is_range_valid(FLASH0_DEV, addr + cnt); in ARM_Flash_ReadData() 218 memcpy(data, (void *)start_addr, cnt); in ARM_Flash_ReadData() 221 cnt /= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ReadData() 223 return cnt; in ARM_Flash_ReadData() 227 uint32_t cnt) in ARM_Flash_ProgramData() argument 233 cnt *= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ProgramData() [all …]
|
/trusted-firmware-m-3.7.0/platform/ext/target/arm/drivers/flash/n25q256a/ |
D | Driver_Flash_N25Q256A.h | 90 uint32_t cnt) \ 103 cnt *= data_width_byte[N25Q256ADriverCapabilities.data_width]; \ 105 ret = spi_n25q256a_read(FLASH_DEV.dev, addr, (uint8_t*) data, cnt); \ 110 cnt); \ 114 cnt /= data_width_byte[N25Q256ADriverCapabilities.data_width]; \ 116 return cnt; \ 121 uint32_t cnt) \ 134 cnt *= data_width_byte[N25Q256ADriverCapabilities.data_width]; \ 136 ret = spi_n25q256a_program(FLASH_DEV.dev, addr, (uint8_t*) data, cnt); \ 141 cnt); \ [all …]
|
D | spi_n25q256a_flash_lib.c | 223 const uint8_t *data, uint32_t cnt) in spi_n25q256a_program_data() argument 227 uint32_t remaining_bytes = cnt; in spi_n25q256a_program_data() 283 const uint8_t *data, uint32_t cnt) in spi_n25q256a_program() argument 289 uint32_t current_cnt = cnt; in spi_n25q256a_program() 295 SPI_FLASH_LOG_MSG("%s: addr=0x%x, cnt=%u\n\r", __func__, addr, cnt); in spi_n25q256a_program() 303 if ((addr + cnt) > (dev->total_sector_cnt * dev->sector_size)) { in spi_n25q256a_program() 310 if (cnt > remaining_space) { in spi_n25q256a_program() 334 uint8_t *data, uint32_t cnt) in spi_n25q256a_read() argument 337 uint32_t remaining_bytes = cnt; in spi_n25q256a_read() 346 SPI_FLASH_LOG_MSG("%s: addr=0x%x, cnt=%u\n\r", __func__, addr, cnt); in spi_n25q256a_read() [all …]
|
/trusted-firmware-m-3.7.0/platform/ext/target/nordic_nrf/common/core/cmsis_drivers/ |
D | Driver_Flash.c | 65 static bool is_range_valid(uint32_t addr, uint32_t cnt) in is_range_valid() argument 73 if (cnt > (FLASH_TOTAL_SIZE - start_offset)) { in is_range_valid() 101 static int32_t ARM_Flash_ReadData(uint32_t addr, void *data, uint32_t cnt) in ARM_Flash_ReadData() argument 104 uint32_t bytes = cnt * ARM_FLASH_CAPABILITIES_DATA_WIDTH_SIZE; in ARM_Flash_ReadData() 112 return cnt; in ARM_Flash_ReadData() 116 uint32_t cnt) in ARM_Flash_ProgramData() argument 119 uint32_t bytes = cnt * ARM_FLASH_CAPABILITIES_DATA_WIDTH_SIZE; in ARM_Flash_ProgramData() 130 nrfx_nvmc_words_write(addr, data, cnt); in ARM_Flash_ProgramData() 132 return cnt; in ARM_Flash_ProgramData()
|
/trusted-firmware-m-3.7.0/platform/ext/target/arm/musca_b1/CMSIS_Driver/ |
D | Driver_GFC100_EFlash.c | 170 uint32_t addr, void *data, uint32_t cnt) in ARM_Flashx_ReadData() argument 176 cnt *= data_width_byte[DriverCapabilities.data_width]; in ARM_Flashx_ReadData() 181 if ((addr + cnt) > flash_size) { in ARM_Flashx_ReadData() 188 err = gfc100_eflash_read(ARM_FLASHx_DEV->dev, addr, data, &cnt); in ARM_Flashx_ReadData() 198 cnt /= data_width_byte[DriverCapabilities.data_width]; in ARM_Flashx_ReadData() 200 return cnt; in ARM_Flashx_ReadData() 205 uint32_t cnt) in ARM_Flashx_ProgramData() argument 210 cnt *= data_width_byte[DriverCapabilities.data_width]; in ARM_Flashx_ProgramData() 221 err = gfc100_eflash_write(ARM_FLASHx_DEV->dev, addr, data, &cnt); in ARM_Flashx_ProgramData() 236 cnt /= data_width_byte[DriverCapabilities.data_width]; in ARM_Flashx_ProgramData() [all …]
|
D | Driver_QSPI_Flash.c | 199 static int32_t ARM_Flash_ReadData(uint32_t addr, void *data, uint32_t cnt) in ARM_Flash_ReadData() argument 205 cnt *= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ReadData() 210 is_valid = is_range_valid(&ARM_FLASH0_DEV, addr + cnt); in ARM_Flash_ReadData() 218 err = mt25ql_command_read(ARM_FLASH0_DEV.dev, addr, data, cnt); in ARM_Flash_ReadData() 228 cnt /= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ReadData() 230 return cnt; in ARM_Flash_ReadData() 234 const void *data, uint32_t cnt) in ARM_Flash_ProgramData() argument 239 cnt *= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ProgramData() 246 if(!(is_range_valid(&ARM_FLASH0_DEV, addr + cnt) && in ARM_Flash_ProgramData() 248 is_write_aligned(&ARM_FLASH0_DEV, cnt) )) { in ARM_Flash_ProgramData() [all …]
|
/trusted-firmware-m-3.7.0/platform/ext/target/arm/mps3/an524/cmsis_drivers/ |
D | Driver_Flash.c | 201 static int32_t ARM_Flash_ReadData(uint32_t addr, void *data, uint32_t cnt) in ARM_Flash_ReadData() argument 208 cnt *= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ReadData() 211 rc = is_range_valid(FLASH0_DEV, addr + cnt); in ARM_Flash_ReadData() 221 memcpy(data, (void *)start_addr, cnt); in ARM_Flash_ReadData() 224 cnt /= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ReadData() 226 return cnt; in ARM_Flash_ReadData() 230 uint32_t cnt) in ARM_Flash_ProgramData() argument 237 cnt *= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ProgramData() 240 rc = is_range_valid(FLASH0_DEV, addr + cnt); in ARM_Flash_ProgramData() 242 rc |= is_write_aligned(FLASH0_DEV, cnt); in ARM_Flash_ProgramData() [all …]
|
/trusted-firmware-m-3.7.0/platform/ext/target/arm/drivers/flash/sst26vf064b/ |
D | Driver_Flash_SST26VF064B.h | 120 uint32_t cnt) \ 133 cnt *= data_width_byte[SST26VF064BDriverCapabilities.data_width]; \ 136 ret = spi_sst26vf064b_read(FLASH_DEV.dev, addr, (uint8_t*) data, cnt); \ 139 __func__, addr, cnt); \ 143 cnt /= data_width_byte[SST26VF064BDriverCapabilities.data_width]; \ 150 return cnt; \ 155 uint32_t cnt) \ 168 cnt *= data_width_byte[SST26VF064BDriverCapabilities.data_width]; \ 171 ret = spi_sst26vf064b_program(FLASH_DEV.dev, addr, (uint8_t*) data, cnt); \ 174 __func__, addr, cnt); \ [all …]
|
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/common/bsp/StdDriver/src/ |
D | keystore.c | 68 int32_t offset, i, cnt; in KS_Read() local 93 cnt = i32Cnt; in KS_Read() 94 if(cnt > 8) in KS_Read() 95 cnt = 8; in KS_Read() 96 for(i = 0; i < cnt; i++) in KS_Read() 191 int32_t offset, i, cnt; in KS_Write() local 219 cnt = i32Cnt; in KS_Write() 220 if(cnt > 8) in KS_Write() 221 cnt = 8; in KS_Write() 222 for(i = 0; i < cnt; i++) in KS_Write() [all …]
|
/trusted-firmware-m-3.7.0/platform/ext/target/nuvoton/common/cmsis_drivers/ |
D | Driver_Flash.c | 195 static int32_t ARM_Flash_ReadData(uint32_t addr, void *data, uint32_t cnt) in ARM_Flash_ReadData() argument 203 cnt *= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ReadData() 206 rc = is_range_valid(FLASH0_DEV, addr + cnt); in ARM_Flash_ReadData() 213 for(i = 0; i < cnt; i++) in ARM_Flash_ReadData() 221 cnt /= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ReadData() 222 return cnt; in ARM_Flash_ReadData() 225 static int32_t ARM_Flash_ProgramData(uint32_t addr, const void *data, uint32_t cnt) in ARM_Flash_ProgramData() argument 233 cnt *= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ProgramData() 236 rc = is_range_valid(FLASH0_DEV, addr + cnt); in ARM_Flash_ProgramData() 238 rc |= is_write_aligned(FLASH0_DEV, cnt); in ARM_Flash_ProgramData() [all …]
|
/trusted-firmware-m-3.7.0/platform/ext/target/arm/drivers/flash/emulated/ |
D | emulated_flash_drv.c | 82 static int32_t is_flash_ready_to_write(const uint8_t *start_addr, uint32_t cnt) in is_flash_ready_to_write() argument 87 for (i = 0; i < cnt; i++) { in is_flash_ready_to_write() 99 uint32_t cnt) in emulated_flash_read_data() argument 105 rc = is_range_valid(dev, addr + cnt); in emulated_flash_read_data() 120 memcpy(data, (void *)start_addr, cnt); in emulated_flash_read_data() 126 uint32_t cnt) in emulated_flash_program_data() argument 132 rc = is_range_valid(dev, addr + cnt - 1); in emulated_flash_program_data() 134 rc |= is_write_aligned(dev, cnt); in emulated_flash_program_data() 149 rc = is_flash_ready_to_write((const uint8_t*)start_addr, cnt); in emulated_flash_program_data() 155 memcpy((void *)start_addr, data, cnt); in emulated_flash_program_data()
|
D | Driver_Flash_Emulated.h | 55 static int32_t FLASH_DRIVER_NAME##_ReadData(uint32_t addr, void *data, uint32_t cnt) \ 60 cnt * data_width_byte[DriverCapabilities.data_width]); \ 63 return (int32_t) cnt; \ 73 uint32_t cnt) \ 78 cnt * data_width_byte[DriverCapabilities.data_width]); \ 81 return (int32_t) cnt; \
|
/trusted-firmware-m-3.7.0/secure_fw/partitions/initial_attestation/ |
D | attest_boot_data.c | 212 uint32_t *cnt) in attest_encode_sw_components_array() argument 227 if ((encode_ctx == NULL) || (cnt == NULL)) { in attest_encode_sw_components_array() 231 *cnt = 0; in attest_encode_sw_components_array() 261 (*cnt)++; in attest_encode_sw_components_array() 262 if (*cnt == 1) { in attest_encode_sw_components_array() 296 if ((encode_ctx == NULL) || (cnt == NULL)) { in attest_encode_sw_components_array() 300 *cnt = 0; in attest_encode_sw_components_array() 318 (*cnt)++; in attest_encode_sw_components_array() 319 if (*cnt == 1) { in attest_encode_sw_components_array() 335 if (*cnt != 0) { in attest_encode_sw_components_array()
|
/trusted-firmware-m-3.7.0/platform/ext/target/nxp/common/CMSIS_Driver/ |
D | Driver_Flash_iap1.c | 202 static int32_t ARM_Flash_ReadData(uint32_t addr, void *data, uint32_t cnt) in ARM_Flash_ReadData() argument 207 cnt *= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ReadData() 210 status = is_range_valid(FLASH0_DEV, addr + cnt); in ARM_Flash_ReadData() 217 if(cnt) { in ARM_Flash_ReadData() 218 status = FLASH_ReadData(&FLASH0_DEV->flashInstance, addr, (uint8_t *)data, cnt); in ARM_Flash_ReadData() 224 (void)memcpy(data, (uint8_t *)addr, cnt); in ARM_Flash_ReadData() 226 cnt /= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ReadData() 227 return cnt; in ARM_Flash_ReadData() 230 static int32_t ARM_Flash_ProgramData(uint32_t addr, const void *data, uint32_t cnt) in ARM_Flash_ProgramData() argument 235 cnt *= data_width_byte[DriverCapabilities.data_width]; in ARM_Flash_ProgramData() [all …]
|
/trusted-firmware-m-3.7.0/platform/ext/target/lairdconnectivity/common/core/cmsis_drivers/ |
D | Driver_QSPI.c | 85 static bool is_range_valid(uint32_t addr, uint32_t cnt) in is_range_valid() argument 91 if (cnt > (QSPI_FLASH_TOTAL_SIZE - addr)) { in is_range_valid() 153 static int32_t ARM_QSPI_Flash_ReadData(uint32_t addr, void *data, uint32_t cnt) in ARM_QSPI_Flash_ReadData() argument 159 uint32_t bytes = cnt * data_width_byte[DriverCapabilities.data_width]; in ARM_QSPI_Flash_ReadData() 207 return cnt; in ARM_QSPI_Flash_ReadData() 211 uint32_t cnt) in ARM_QSPI_Flash_ProgramData() argument 216 uint32_t bytes = cnt * data_width_byte[DriverCapabilities.data_width]; in ARM_QSPI_Flash_ProgramData() 244 return cnt; in ARM_QSPI_Flash_ProgramData()
|