Searched refs:BANK2_OFFSET (Results 1 – 3 of 3) sorted by relevance
24 #define BANK2_OFFSET (KB(STM32G4_SERIES_MAX_FLASH) / 2) macro41 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()
37 #define BANK2_OFFSET (KB(STM32_SERIES_MAX_FLASH) / 2) macro148 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()
51 #define BANK2_OFFSET (STM32H7_SERIES_MAX_FLASH_KB / 2) macro154 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);