Lines Matching refs:eraseregions
298 if (addr < mtd->eraseregions[i].offset) in flexonenand_region()
828 if (mtd->eraseregions[i].erasesize < (1 << this->erase_shift)) in onenand_recover_lsb()
1744 region = &mtd->eraseregions[i]; in onenand_erase()
2333 mtd->eraseregions[i].offset = ofs; in flexonenand_get_size()
2334 mtd->eraseregions[i].erasesize = 1 << eraseshift; in flexonenand_get_size()
2335 mtd->eraseregions[i].numblocks = in flexonenand_get_size()
2337 ofs += mtd->eraseregions[i].numblocks << eraseshift; in flexonenand_get_size()
2341 mtd->eraseregions[i].numblocks += in flexonenand_get_size()
2347 mtd->eraseregions[i].offset = ofs; in flexonenand_get_size()
2348 mtd->eraseregions[i].erasesize = 1 << eraseshift; in flexonenand_get_size()
2349 mtd->eraseregions[i].numblocks = maxbdry ^ in flexonenand_get_size()
2351 ofs += mtd->eraseregions[i].numblocks << eraseshift; in flexonenand_get_size()
2365 " numblocks: %04u]\n", mtd->eraseregions[i].offset, in flexonenand_get_size()
2366 mtd->eraseregions[i].erasesize, in flexonenand_get_size()
2367 mtd->eraseregions[i].numblocks); in flexonenand_get_size()
2609 mtd->eraseregions = malloc(sizeof(struct mtd_erase_region_info) in onenand_probe()
2611 if (!mtd->eraseregions) in onenand_probe()