Searched refs:FLASH_PAGE_SIZE (Results 1 – 14 of 14) sorted by relevance
/Zephyr-latest/drivers/flash/ |
D | flash_stm32g4x.c | 175 page = offset / FLASH_PAGE_SIZE; in erase_page() 180 page = (offset - BANK2_OFFSET) / FLASH_PAGE_SIZE; in erase_page() 185 page = offset / FLASH_PAGE_SIZE; in erase_page() 190 page = (offset - BANK2_OFFSET) / FLASH_PAGE_SIZE; in erase_page() 197 page = offset / FLASH_PAGE_SIZE; in erase_page() 233 for (; address <= offset + len - 1 ; address += FLASH_PAGE_SIZE) { in flash_stm32_block_erase_loop() 336 #define PAGES_PER_BANK ((FLASH_SIZE / FLASH_PAGE_SIZE) / 2) in flash_stm32_page_layout() 342 stm32g4_flash_layout[0].pages_size = FLASH_PAGE_SIZE; in flash_stm32_page_layout() 346 - (PAGES_PER_BANK * FLASH_PAGE_SIZE); in flash_stm32_page_layout() 349 stm32g4_flash_layout[2].pages_size = FLASH_PAGE_SIZE; in flash_stm32_page_layout() [all …]
|
D | flash_stm32l5x.c | 35 #define PAGES_PER_BANK ((FLASH_SIZE / FLASH_PAGE_SIZE) / 2) 252 page = offset / FLASH_PAGE_SIZE; in erase_page() 257 page = (offset - BANK2_OFFSET) / FLASH_PAGE_SIZE; in erase_page() 262 page = offset / FLASH_PAGE_SIZE; in erase_page() 267 page = (offset - BANK2_OFFSET) / FLASH_PAGE_SIZE; in erase_page() 321 for (; address <= offset + len - 1 ; address += FLASH_PAGE_SIZE) { in flash_stm32_block_erase_loop() 414 stm32_flash_layout[0].pages_size = FLASH_PAGE_SIZE; in flash_stm32_page_layout() 419 - (PAGES_PER_BANK * FLASH_PAGE_SIZE); in flash_stm32_page_layout() 423 stm32_flash_layout[2].pages_size = FLASH_PAGE_SIZE; in flash_stm32_page_layout() 437 stm32_flash_layout[0].pages_count = FLASH_SIZE / FLASH_PAGE_SIZE; in flash_stm32_page_layout() [all …]
|
D | flash_stm32f1x.c | 44 return offset / FLASH_PAGE_SIZE; in get_page() 67 regs->AR = FLASH_STM32_BASE_ADDRESS + page * FLASH_PAGE_SIZE; in erase_page_begin() 104 FLASH_STM32_BASE_ADDRESS + page * FLASH_PAGE_SIZE); in erase_page_begin() 234 DT_REG_SIZE(DT_INST(0, soc_nv_flash)) / FLASH_PAGE_SIZE; in flash_stm32_page_layout() 237 FLASH_PAGE_SIZE; in flash_stm32_page_layout() 239 flash_layout.pages_size = FLASH_PAGE_SIZE; in flash_stm32_page_layout()
|
D | flash_stm32wba_fm.c | 96 int sect_num = (len / FLASH_PAGE_SIZE) + 1; in flash_stm32_erase() 111 (void *)offset, offset / FLASH_PAGE_SIZE, len, sect_num); in flash_stm32_erase() 113 rc = FM_Erase(offset / FLASH_PAGE_SIZE, sect_num, &cb_ptr); in flash_stm32_erase() 182 stm32wba_flash_layout.pages_count = FLASH_SIZE / FLASH_PAGE_SIZE; in flash_stm32wba_page_layout() 183 stm32wba_flash_layout.pages_size = FLASH_PAGE_SIZE; in flash_stm32wba_page_layout()
|
D | flash_stm32wbax.c | 175 page = offset / FLASH_PAGE_SIZE; in erase_page() 217 for (; address <= offset + len - 1 ; address += FLASH_PAGE_SIZE) { in flash_stm32_block_erase_loop() 297 stm32wba_flash_layout.pages_count = FLASH_SIZE / FLASH_PAGE_SIZE; in flash_stm32_page_layout() 298 stm32wba_flash_layout.pages_size = FLASH_PAGE_SIZE; in flash_stm32_page_layout()
|
D | flash_sam0.c | 48 #define PAGES_PER_ROW (ROW_SIZE / FLASH_PAGE_SIZE) 226 dev, base + page * FLASH_PAGE_SIZE, in flash_sam0_commit() 227 &ctx->buf[page * FLASH_PAGE_SIZE], ROW_SIZE); in flash_sam0_commit() 315 size_t eop_len = FLASH_PAGE_SIZE - (offset % FLASH_PAGE_SIZE); in flash_sam0_write() 327 write_len = MIN(len, FLASH_PAGE_SIZE); in flash_sam0_write()
|
D | flash_gecko.c | 96 if ((offset % FLASH_PAGE_SIZE) != 0) { in flash_gecko_erase() 101 if ((size % FLASH_PAGE_SIZE) != 0) { in flash_gecko_erase() 158 for (off_t tmp = offset; tmp < offset + size; tmp += FLASH_PAGE_SIZE) { in erase_flash_block()
|
D | flash_stm32.h | 91 #define FLASH_PAGE_SIZE_128_BITS FLASH_PAGE_SIZE 109 #define FLASH_PAGE_SIZE (FLASH_SECTOR_SIZE) macro 111 #define FLASH_PAGE_NB_PER_BANK (FLASH_BANK_SIZE / FLASH_PAGE_SIZE) 112 #define FLASH_PAGE_SIZE_128_BITS FLASH_PAGE_SIZE
|
D | flash_smartbond.c | 21 #define FLASH_PAGE_SIZE 256 macro 107 size = MIN(size, FLASH_PAGE_SIZE - (address & (FLASH_PAGE_SIZE - 1))); in qspic_write_page()
|
D | flash_stm32wbx.c | 400 stm32wb_flash_layout.pages_count = FLASH_SIZE / FLASH_PAGE_SIZE; in flash_stm32_page_layout() 401 stm32wb_flash_layout.pages_size = FLASH_PAGE_SIZE; in flash_stm32_page_layout()
|
D | flash_stm32l4x.c | 332 stm32l4_flash_layout.pages_count = FLASH_SIZE / FLASH_PAGE_SIZE; in flash_stm32_page_layout() 333 stm32l4_flash_layout.pages_size = FLASH_PAGE_SIZE; in flash_stm32_page_layout()
|
D | flash_stm32wb0x.c | 33 #define PAGES_IN_FLASH (SYSTEM_FLASH_SIZE / FLASH_PAGE_SIZE) 422 .pages_size = FLASH_PAGE_SIZE in flash_wb0x_pages_layout()
|
D | flash_stm32g0x.c | 39 #define STM32G0_FLASH_PAGE_SIZE (FLASH_PAGE_SIZE)
|
/Zephyr-latest/samples/drivers/soc_flash_nrf/src/ |
D | main.c | 22 #define FLASH_PAGE_SIZE 4096 macro 94 TEST_PARTITION_OFFSET, FLASH_PAGE_SIZE); in main() 124 offset, FLASH_PAGE_SIZE * 2); in main() 152 TEST_PARTITION_OFFSET, FLASH_PAGE_SIZE); in main()
|