Home
last modified time | relevance | path

Searched refs:BANK2_OFFSET (Results 1 – 3 of 3) sorted by relevance

/Zephyr-latest/drivers/flash/
Dflash_stm32g4x.c24 #define BANK2_OFFSET (KB(STM32G4_SERIES_MAX_FLASH) / 2) macro
41 if ((offset < BANK2_OFFSET) && (offset + len > FLASH_SIZE / 2)) { in flash_stm32_valid_range()
177 } else if ((offset >= BANK2_OFFSET) && bank_swap) { in erase_page()
180 page = (offset - BANK2_OFFSET) / FLASH_PAGE_SIZE; in erase_page()
187 } else if ((offset >= BANK2_OFFSET) && !bank_swap) { in erase_page()
190 page = (offset - BANK2_OFFSET) / FLASH_PAGE_SIZE; in erase_page()
345 stm32g4_flash_layout[1].pages_size = BANK2_OFFSET in flash_stm32_page_layout()
Dflash_stm32l5x.c37 #define BANK2_OFFSET (KB(STM32_SERIES_MAX_FLASH) / 2) macro
148 if ((offset < BANK2_OFFSET) && in flash_stm32_valid_range()
254 } else if ((offset >= BANK2_OFFSET) && bank_swap) { in erase_page()
257 page = (offset - BANK2_OFFSET) / FLASH_PAGE_SIZE; in erase_page()
264 } else if ((offset >= BANK2_OFFSET) && !bank_swap) { in erase_page()
267 page = (offset - BANK2_OFFSET) / FLASH_PAGE_SIZE; in erase_page()
418 stm32_flash_layout[1].pages_size = BANK2_OFFSET in flash_stm32_page_layout()
Dflash_stm32h7x.c51 #define BANK2_OFFSET (STM32H7_SERIES_MAX_FLASH_KB / 2) macro
154 if ((offset < BANK2_OFFSET) && (offset + len > REAL_FLASH_SIZE_KB / 2)) { in flash_stm32_valid_range()
298 } else if ((temp_offset >= BANK2_OFFSET) && bank_swap) {
299 sector.sector_index -= BANK2_OFFSET / FLASH_SECTOR_SIZE;
307 } else if ((temp_offset >= BANK2_OFFSET) && !bank_swap) {
308 sector.sector_index -= BANK2_OFFSET / FLASH_SECTOR_SIZE;
691 BANK2_OFFSET - (SECTOR_PER_BANK * FLASH_SECTOR_SIZE);