Lines Matching full:regions
136 int regions = 0; in cfi_mtd_set_erasesize() local
147 regions++; in cfi_mtd_set_erasesize()
151 switch (regions) { in cfi_mtd_set_erasesize()
160 mtd->numeraseregions = regions; in cfi_mtd_set_erasesize()
161 mtd->eraseregions = malloc(sizeof(struct mtd_erase_region_info) * regions); in cfi_mtd_set_erasesize()
166 regions = 0; in cfi_mtd_set_erasesize()
171 mtd->eraseregions[regions].offset = offset - base_addr; in cfi_mtd_set_erasesize()
172 mtd->eraseregions[regions].erasesize = sect_size_old; in cfi_mtd_set_erasesize()
173 mtd->eraseregions[regions].numblocks = numblocks; in cfi_mtd_set_erasesize()
176 regions++; in cfi_mtd_set_erasesize()
193 mtd->eraseregions[regions].offset = offset - base_addr; in cfi_mtd_set_erasesize()
194 mtd->eraseregions[regions].erasesize = sect_size_old; in cfi_mtd_set_erasesize()
195 mtd->eraseregions[regions].numblocks = numblocks; in cfi_mtd_set_erasesize()