Lines Matching refs:erasesize
94 instr.addr = mtd->erasesize * s_first; in flash_erase()
95 instr.len = mtd->erasesize * (s_last + 1 - s_first); in flash_erase()
149 addr &= ~(mtd->erasesize - 1); /* get lower aligned address */ in altera_qspi_erase()
160 last = pdata->base + addr + mtd->erasesize; in altera_qspi_erase()
168 sect = addr / mtd->erasesize; in altera_qspi_erase()
189 addr += mtd->erasesize; in altera_qspi_erase()
250 *len = mtd->erasesize << (pow - 1); in altera_qspi_get_locked_range()
269 num_sectors = mtd->size / mtd->erasesize; in altera_qspi_lock()
270 sector_start = ofs / mtd->erasesize; in altera_qspi_lock()
271 sector_end = (ofs + len) / mtd->erasesize; in altera_qspi_lock()
334 mtd->erasesize = 0x10000; in altera_qspi_probe()
340 flash->sector_count = mtd->size / mtd->erasesize; in altera_qspi_probe()
344 flash->start[i] = flash->start[i - 1] + mtd->erasesize; in altera_qspi_probe()