Lines Matching refs:sect
31 int error, sect; in cfi_mtd_erase() local
33 for (sect = 0; sect < fi->sector_count; sect++) { in cfi_mtd_erase()
34 if (a_start == fi->start[sect]) in cfi_mtd_erase()
35 s_first = sect; in cfi_mtd_erase()
37 if (sect < fi->sector_count - 1) { in cfi_mtd_erase()
38 if (a_end == fi->start[sect + 1]) { in cfi_mtd_erase()
39 s_last = sect; in cfi_mtd_erase()
43 s_last = sect; in cfi_mtd_erase()
137 int sect; in cfi_mtd_set_erasesize() local
147 for (sect = 0; sect < fi->sector_count; sect++) { in cfi_mtd_set_erasesize()
148 if (sect_size_old != flash_sector_size(fi, sect)) in cfi_mtd_set_erasesize()
150 sect_size_old = flash_sector_size(fi, sect); in cfi_mtd_set_erasesize()
171 for (sect = 0; sect < fi->sector_count; sect++) { in cfi_mtd_set_erasesize()
172 if (sect_size_old != flash_sector_size(fi, sect)) { in cfi_mtd_set_erasesize()
179 offset = fi->start[sect]; in cfi_mtd_set_erasesize()
186 if (flash_sector_size(fi, sect) > sect_size) in cfi_mtd_set_erasesize()
187 sect_size = flash_sector_size(fi, sect); in cfi_mtd_set_erasesize()
189 sect_size_old = flash_sector_size(fi, sect); in cfi_mtd_set_erasesize()