Lines Matching refs:FLASH_SECTOR_SIZE
48 #define SECTOR_PER_BANK ((REAL_FLASH_SIZE_KB / FLASH_SECTOR_SIZE) / 2)
293 sector.sector_index = offset / FLASH_SECTOR_SIZE;
299 sector.sector_index -= BANK2_OFFSET / FLASH_SECTOR_SIZE;
308 sector.sector_index -= BANK2_OFFSET / FLASH_SECTOR_SIZE;
320 sector.sector_index = offset / FLASH_SECTOR_SIZE;
373 for (; address <= offset + len - 1; address += FLASH_SECTOR_SIZE) {
547 off_t flush_offset = ROUND_DOWN(offset, FLASH_SECTOR_SIZE);
548 size_t flush_len = ROUND_UP(offset + len - 1, FLASH_SECTOR_SIZE) - flush_offset;
684 stm32h7_flash_layout[0].pages_size = FLASH_SECTOR_SIZE;
691 BANK2_OFFSET - (SECTOR_PER_BANK * FLASH_SECTOR_SIZE);
694 stm32h7_flash_layout[2].pages_size = FLASH_SECTOR_SIZE;
700 REAL_FLASH_SIZE_KB / FLASH_SECTOR_SIZE;
701 stm32h7_flash_layout[0].pages_size = FLASH_SECTOR_SIZE;
709 stm32h7_flash_layout[0].pages_count = REAL_FLASH_SIZE_KB / FLASH_SECTOR_SIZE;
710 stm32h7_flash_layout[0].pages_size = FLASH_SECTOR_SIZE;