Searched refs:sectors_per_block (Results 1 – 4 of 4) sorted by relevance
154 sectors_per_block = 16159 head_sectors = sectors_per_block - (start_sector % sectors_per_block)
114 uint32_t sectors_per_block = (this->block_size / this->sector_size); in erase_block() local115 uint32_t start_sector = block * sectors_per_block; in erase_block()117 for (int i = start_sector; i < start_sector + sectors_per_block; i++) { in erase_block()
326 const size_t sectors_per_block = BLOCK_ERASE_SIZE / SPI_FLASH_SEC_SIZE; in spi_flash_erase_range() local340 if (sector % sectors_per_block == 0 && end - sector >= sectors_per_block) { in spi_flash_erase_range()341 rc = esp_rom_spiflash_erase_block(sector / sectors_per_block); in spi_flash_erase_range()342 sector += sectors_per_block; in spi_flash_erase_range()343 COUNTER_ADD_BYTES(erase, sectors_per_block * SPI_FLASH_SEC_SIZE); in spi_flash_erase_range()
469 const size_t sectors_per_block = FLASH_BLOCK_SIZE / FLASH_SECTOR_SIZE; in bootloader_flash_erase_range() local473 if (sector % sectors_per_block == 0 && end - sector >= sectors_per_block) { in bootloader_flash_erase_range()474 rc = esp_rom_spiflash_erase_block(sector / sectors_per_block); in bootloader_flash_erase_range()475 sector += sectors_per_block; in bootloader_flash_erase_range()