eraseregions 611 drivers/mtd/chips/cfi_cmdset_0001.c mtd->eraseregions = kcalloc(mtd->numeraseregions, eraseregions 614 drivers/mtd/chips/cfi_cmdset_0001.c if (!mtd->eraseregions) eraseregions 626 drivers/mtd/chips/cfi_cmdset_0001.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; eraseregions 627 drivers/mtd/chips/cfi_cmdset_0001.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; eraseregions 628 drivers/mtd/chips/cfi_cmdset_0001.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; eraseregions 629 drivers/mtd/chips/cfi_cmdset_0001.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap = kmalloc(ernum / 8 + 1, GFP_KERNEL); eraseregions 630 drivers/mtd/chips/cfi_cmdset_0001.c if (!mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap) eraseregions 644 drivers/mtd/chips/cfi_cmdset_0001.c i,(unsigned long long)mtd->eraseregions[i].offset, eraseregions 645 drivers/mtd/chips/cfi_cmdset_0001.c mtd->eraseregions[i].erasesize, eraseregions 646 drivers/mtd/chips/cfi_cmdset_0001.c mtd->eraseregions[i].numblocks); eraseregions 668 drivers/mtd/chips/cfi_cmdset_0001.c if (mtd->eraseregions) eraseregions 671 drivers/mtd/chips/cfi_cmdset_0001.c kfree(mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap); eraseregions 672 drivers/mtd/chips/cfi_cmdset_0001.c kfree(mtd->eraseregions); eraseregions 2486 drivers/mtd/chips/cfi_cmdset_0001.c region = &mtd->eraseregions[i]; eraseregions 2586 drivers/mtd/chips/cfi_cmdset_0001.c region = &mtd->eraseregions[i]; eraseregions 2677 drivers/mtd/chips/cfi_cmdset_0001.c region = &mtd->eraseregions[i]; eraseregions 2680 drivers/mtd/chips/cfi_cmdset_0001.c kfree(mtd->eraseregions); eraseregions 762 drivers/mtd/chips/cfi_cmdset_0002.c mtd->eraseregions = kmalloc_array(mtd->numeraseregions, eraseregions 765 drivers/mtd/chips/cfi_cmdset_0002.c if (!mtd->eraseregions) eraseregions 777 drivers/mtd/chips/cfi_cmdset_0002.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; eraseregions 778 drivers/mtd/chips/cfi_cmdset_0002.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; eraseregions 779 drivers/mtd/chips/cfi_cmdset_0002.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; eraseregions 794 drivers/mtd/chips/cfi_cmdset_0002.c kfree(mtd->eraseregions); eraseregions 2804 drivers/mtd/chips/cfi_cmdset_0002.c struct mtd_erase_region_info *regions = mtd->eraseregions; eraseregions 3109 drivers/mtd/chips/cfi_cmdset_0002.c kfree(mtd->eraseregions); eraseregions 187 drivers/mtd/chips/cfi_cmdset_0020.c mtd->eraseregions = kmalloc_array(mtd->numeraseregions, eraseregions 190 drivers/mtd/chips/cfi_cmdset_0020.c if (!mtd->eraseregions) { eraseregions 205 drivers/mtd/chips/cfi_cmdset_0020.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; eraseregions 206 drivers/mtd/chips/cfi_cmdset_0020.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; eraseregions 207 drivers/mtd/chips/cfi_cmdset_0020.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; eraseregions 215 drivers/mtd/chips/cfi_cmdset_0020.c kfree(mtd->eraseregions); eraseregions 223 drivers/mtd/chips/cfi_cmdset_0020.c i, (unsigned long long)mtd->eraseregions[i].offset, eraseregions 224 drivers/mtd/chips/cfi_cmdset_0020.c mtd->eraseregions[i].erasesize, eraseregions 225 drivers/mtd/chips/cfi_cmdset_0020.c mtd->eraseregions[i].numblocks); eraseregions 900 drivers/mtd/chips/cfi_cmdset_0020.c struct mtd_erase_region_info *regions = mtd->eraseregions; eraseregions 366 drivers/mtd/chips/cfi_util.c struct mtd_erase_region_info *regions = mtd->eraseregions; eraseregions 376 drivers/mtd/devices/lart.c for (i = 0; i < mtd->numeraseregions && instr->addr >= mtd->eraseregions[i].offset; i++) ; eraseregions 385 drivers/mtd/devices/lart.c if (i < 0 || (instr->addr & (mtd->eraseregions[i].erasesize - 1))) eraseregions 398 drivers/mtd/devices/lart.c for (; i < mtd->numeraseregions && instr->addr + instr->len >= mtd->eraseregions[i].offset; i++) ; eraseregions 402 drivers/mtd/devices/lart.c if (i < 0 || ((instr->addr + instr->len) & (mtd->eraseregions[i].erasesize - 1))) eraseregions 416 drivers/mtd/devices/lart.c addr += mtd->eraseregions[i].erasesize; eraseregions 417 drivers/mtd/devices/lart.c len -= mtd->eraseregions[i].erasesize; eraseregions 419 drivers/mtd/devices/lart.c if (addr == mtd->eraseregions[i].offset + (mtd->eraseregions[i].erasesize * mtd->eraseregions[i].numblocks)) i++; eraseregions 619 drivers/mtd/devices/lart.c mtd.eraseregions = erase_regions; eraseregions 643 drivers/mtd/devices/lart.c result,mtd.eraseregions[result].offset, eraseregions 644 drivers/mtd/devices/lart.c result,mtd.eraseregions[result].erasesize,mtd.eraseregions[result].erasesize / 1024, eraseregions 645 drivers/mtd/devices/lart.c result,mtd.eraseregions[result].numblocks); eraseregions 106 drivers/mtd/maps/scb2_flash.c struct mtd_erase_region_info *region = &mtd->eraseregions[i]; eraseregions 117 drivers/mtd/maps/scb2_flash.c struct mtd_erase_region_info *region = &mtd->eraseregions[i]; eraseregions 662 drivers/mtd/mtdchar.c kr = &(mtd->eraseregions[ur_idx]); eraseregions 345 drivers/mtd/mtdconcat.c concat->mtd.eraseregions; eraseregions 737 drivers/mtd/mtdconcat.c if (subdev[i]->eraseregions[j].erasesize != eraseregions 741 drivers/mtd/mtdconcat.c subdev[i]->eraseregions[j]. eraseregions 769 drivers/mtd/mtdconcat.c concat->mtd.eraseregions = erase_region_p = eraseregions 812 drivers/mtd/mtdconcat.c if (subdev[i]->eraseregions[j]. eraseregions 823 drivers/mtd/mtdconcat.c subdev[i]->eraseregions[j]. eraseregions 828 drivers/mtd/mtdconcat.c subdev[i]->eraseregions[j]. eraseregions 852 drivers/mtd/mtdconcat.c kfree(concat->mtd.eraseregions); eraseregions 486 drivers/mtd/mtdpart.c struct mtd_erase_region_info *regions = parent->eraseregions; eraseregions 382 drivers/mtd/nand/onenand/onenand_base.c if (addr < mtd->eraseregions[i].offset) eraseregions 1095 drivers/mtd/nand/onenand/onenand_base.c if (mtd->eraseregions[i].erasesize < (1 << this->erase_shift)) eraseregions 2357 drivers/mtd/nand/onenand/onenand_base.c region = &mtd->eraseregions[i]; eraseregions 3454 drivers/mtd/nand/onenand/onenand_base.c mtd->eraseregions[i].offset = ofs; eraseregions 3455 drivers/mtd/nand/onenand/onenand_base.c mtd->eraseregions[i].erasesize = 1 << eraseshift; eraseregions 3456 drivers/mtd/nand/onenand/onenand_base.c mtd->eraseregions[i].numblocks = eraseregions 3458 drivers/mtd/nand/onenand/onenand_base.c ofs += mtd->eraseregions[i].numblocks << eraseshift; eraseregions 3462 drivers/mtd/nand/onenand/onenand_base.c mtd->eraseregions[i].numblocks += eraseregions 3468 drivers/mtd/nand/onenand/onenand_base.c mtd->eraseregions[i].offset = ofs; eraseregions 3469 drivers/mtd/nand/onenand/onenand_base.c mtd->eraseregions[i].erasesize = 1 << eraseshift; eraseregions 3470 drivers/mtd/nand/onenand/onenand_base.c mtd->eraseregions[i].numblocks = maxbdry ^ eraseregions 3472 drivers/mtd/nand/onenand/onenand_base.c ofs += mtd->eraseregions[i].numblocks << eraseshift; eraseregions 3487 drivers/mtd/nand/onenand/onenand_base.c (unsigned int) mtd->eraseregions[i].offset, eraseregions 3488 drivers/mtd/nand/onenand/onenand_base.c mtd->eraseregions[i].erasesize, eraseregions 3489 drivers/mtd/nand/onenand/onenand_base.c mtd->eraseregions[i].numblocks); eraseregions 3727 drivers/mtd/nand/onenand/onenand_base.c mtd->eraseregions = eraseregions 3731 drivers/mtd/nand/onenand/onenand_base.c if (!mtd->eraseregions) eraseregions 4017 drivers/mtd/nand/onenand/onenand_base.c kfree(mtd->eraseregions); eraseregions 114 drivers/mtd/nand/onenand/onenand_bbt.c from += mtd->eraseregions[rgn].erasesize; eraseregions 4973 drivers/mtd/spi-nor/spi-nor.c i, (long long)mtd->eraseregions[i].offset, eraseregions 4974 drivers/mtd/spi-nor/spi-nor.c mtd->eraseregions[i].erasesize, eraseregions 4975 drivers/mtd/spi-nor/spi-nor.c mtd->eraseregions[i].erasesize / 1024, eraseregions 4976 drivers/mtd/spi-nor/spi-nor.c mtd->eraseregions[i].numblocks); eraseregions 270 include/linux/mtd/mtd.h struct mtd_erase_region_info *eraseregions;