erasesize 622 drivers/mtd/chips/cfi_cmdset_0001.c if (mtd->erasesize < ersize) { erasesize 623 drivers/mtd/chips/cfi_cmdset_0001.c mtd->erasesize = ersize; erasesize 627 drivers/mtd/chips/cfi_cmdset_0001.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; erasesize 645 drivers/mtd/chips/cfi_cmdset_0001.c mtd->eraseregions[i].erasesize, erasesize 751 drivers/mtd/chips/cfi_cmdset_0001.c if ((1 << partshift) < mtd->erasesize) { erasesize 2491 drivers/mtd/chips/cfi_cmdset_0001.c len = region->erasesize; erasesize 2591 drivers/mtd/chips/cfi_cmdset_0001.c len = region->erasesize; erasesize 773 drivers/mtd/chips/cfi_cmdset_0002.c if (mtd->erasesize < ersize) { erasesize 774 drivers/mtd/chips/cfi_cmdset_0002.c mtd->erasesize = ersize; erasesize 778 drivers/mtd/chips/cfi_cmdset_0002.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; erasesize 2843 drivers/mtd/chips/cfi_cmdset_0002.c int size = regions[i].erasesize; erasesize 201 drivers/mtd/chips/cfi_cmdset_0020.c if (mtd->erasesize < ersize) { erasesize 202 drivers/mtd/chips/cfi_cmdset_0020.c mtd->erasesize = ersize; erasesize 206 drivers/mtd/chips/cfi_cmdset_0020.c mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; erasesize 224 drivers/mtd/chips/cfi_cmdset_0020.c mtd->eraseregions[i].erasesize, erasesize 924 drivers/mtd/chips/cfi_cmdset_0020.c if (instr->addr & (regions[i].erasesize-1)) erasesize 942 drivers/mtd/chips/cfi_cmdset_0020.c if ((instr->addr + instr->len) & (regions[i].erasesize-1)) erasesize 957 drivers/mtd/chips/cfi_cmdset_0020.c adr += regions[i].erasesize; erasesize 958 drivers/mtd/chips/cfi_cmdset_0020.c len -= regions[i].erasesize; erasesize 960 drivers/mtd/chips/cfi_cmdset_0020.c if (adr % (1<< cfi->chipshift) == (((unsigned long)regions[i].offset + (regions[i].erasesize * regions[i].numblocks)) %( 1<< cfi->chipshift))) erasesize 1140 drivers/mtd/chips/cfi_cmdset_0020.c if (ofs & (mtd->erasesize - 1)) erasesize 1143 drivers/mtd/chips/cfi_cmdset_0020.c if (len & (mtd->erasesize -1)) erasesize 1168 drivers/mtd/chips/cfi_cmdset_0020.c adr += mtd->erasesize; erasesize 1169 drivers/mtd/chips/cfi_cmdset_0020.c len -= mtd->erasesize; erasesize 1298 drivers/mtd/chips/cfi_cmdset_0020.c temp_adr += mtd->erasesize; erasesize 1299 drivers/mtd/chips/cfi_cmdset_0020.c temp_len -= mtd->erasesize; erasesize 390 drivers/mtd/chips/cfi_util.c if (ofs & (regions[i].erasesize-1)) erasesize 408 drivers/mtd/chips/cfi_util.c if ((ofs + len) & (regions[i].erasesize-1)) erasesize 417 drivers/mtd/chips/cfi_util.c int size = regions[i].erasesize; erasesize 64 drivers/mtd/chips/map_absent.c mtd->erasesize = PAGE_SIZE; erasesize 78 drivers/mtd/chips/map_ram.c mtd->erasesize = PAGE_SIZE; erasesize 79 drivers/mtd/chips/map_ram.c while(mtd->size & (mtd->erasesize - 1)) erasesize 80 drivers/mtd/chips/map_ram.c mtd->erasesize >>= 1; erasesize 63 drivers/mtd/chips/map_rom.c mtd->erasesize = default_erasesize(map); erasesize 261 drivers/mtd/devices/bcm47xxsflash.c mtd->erasesize = b47s->blocksize; erasesize 288 drivers/mtd/devices/block2mtd.c dev->mtd.erasesize = erase_size; erasesize 309 drivers/mtd/devices/block2mtd.c dev->mtd.erasesize >> 10, dev->mtd.erasesize); erasesize 1194 drivers/mtd/devices/docg3.c for (len = info->len; !ret && len > 0; len -= mtd->erasesize) { erasesize 1768 drivers/mtd/devices/docg3.c mtd->erasesize = DOC_LAYOUT_BLOCK_SIZE * DOC_LAYOUT_NBPLANES; erasesize 1770 drivers/mtd/devices/docg3.c mtd->erasesize /= 2; erasesize 385 drivers/mtd/devices/lart.c if (i < 0 || (instr->addr & (mtd->eraseregions[i].erasesize - 1))) erasesize 402 drivers/mtd/devices/lart.c if (i < 0 || ((instr->addr + instr->len) & (mtd->eraseregions[i].erasesize - 1))) erasesize 416 drivers/mtd/devices/lart.c addr += mtd->eraseregions[i].erasesize; erasesize 417 drivers/mtd/devices/lart.c len -= mtd->eraseregions[i].erasesize; erasesize 419 drivers/mtd/devices/lart.c if (addr == mtd->eraseregions[i].offset + (mtd->eraseregions[i].erasesize * mtd->eraseregions[i].numblocks)) i++; erasesize 566 drivers/mtd/devices/lart.c .erasesize = FLASH_BLOCKSIZE_PARAM, erasesize 572 drivers/mtd/devices/lart.c .erasesize = FLASH_BLOCKSIZE_MAIN, erasesize 617 drivers/mtd/devices/lart.c mtd.erasesize = FLASH_BLOCKSIZE_MAIN; erasesize 633 drivers/mtd/devices/lart.c mtd.erasesize,mtd.erasesize / 1024, erasesize 644 drivers/mtd/devices/lart.c result,mtd.eraseregions[result].erasesize,mtd.eraseregions[result].erasesize / 1024, erasesize 641 drivers/mtd/devices/mtd_dataflash.c device->erasesize = pagesize; erasesize 136 drivers/mtd/devices/mtdram.c mtd->erasesize = MTDRAM_ERASE_SIZE; erasesize 118 drivers/mtd/devices/phram.c new->mtd.erasesize = PAGE_SIZE; erasesize 777 drivers/mtd/devices/pmc551.c mtd->erasesize = 0x10000; erasesize 210 drivers/mtd/devices/powernv_flash.c mtd->erasesize = erase_size; erasesize 181 drivers/mtd/devices/slram.c (*curmtd)->mtdinfo->erasesize = SLRAM_BLK_SZ; erasesize 524 drivers/mtd/devices/spear_smi.c addr += mtd->erasesize; erasesize 525 drivers/mtd/devices/spear_smi.c len -= mtd->erasesize; erasesize 897 drivers/mtd/devices/spear_smi.c flash->mtd.erasesize = flash_devices[flash_index].sectorsize; erasesize 911 drivers/mtd/devices/spear_smi.c flash->mtd.erasesize, flash->mtd.erasesize / 1024); erasesize 173 drivers/mtd/devices/sst25l.c if ((uint32_t)instr->len % mtd->erasesize) erasesize 176 drivers/mtd/devices/sst25l.c if ((uint32_t)instr->addr % mtd->erasesize) erasesize 198 drivers/mtd/devices/sst25l.c addr += mtd->erasesize; erasesize 374 drivers/mtd/devices/sst25l.c flash->mtd.erasesize = flash_info->erase_size; erasesize 389 drivers/mtd/devices/sst25l.c flash->mtd.erasesize, flash->mtd.erasesize / 1024, erasesize 1817 drivers/mtd/devices/st_spi_fsm.c addr += mtd->erasesize; erasesize 1818 drivers/mtd/devices/st_spi_fsm.c len -= mtd->erasesize; erasesize 2106 drivers/mtd/devices/st_spi_fsm.c fsm->mtd.erasesize = info->sector_size; erasesize 2117 drivers/mtd/devices/st_spi_fsm.c fsm->mtd.erasesize, (fsm->mtd.erasesize >> 10)); erasesize 162 drivers/mtd/ftl.c offset += part->mbd.mtd->erasesize ? : 0x2000) { erasesize 183 drivers/mtd/ftl.c if ((1 << header.EraseUnitSize) != part->mbd.mtd->erasesize) { erasesize 185 drivers/mtd/ftl.c 1 << header.EraseUnitSize,part->mbd.mtd->erasesize); erasesize 49 drivers/mtd/inftlmount.c inftl->EraseSize = inftl->mbd.mtd->erasesize; erasesize 169 drivers/mtd/inftlmount.c inftl->EraseSize = inftl->mbd.mtd->erasesize << erasesize 294 drivers/mtd/inftlmount.c for (physblock = 0; physblock < inftl->EraseSize; physblock += inftl->mbd.mtd->erasesize) { erasesize 385 drivers/mtd/inftlmount.c instr->len = inftl->mbd.mtd->erasesize; erasesize 251 drivers/mtd/lpddr/lpddr2_nvm.c add += mtd->erasesize; erasesize 453 drivers/mtd/lpddr/lpddr2_nvm.c .erasesize = ERASE_BLOCKSIZE * pcm_data->bus_width, erasesize 65 drivers/mtd/lpddr/lpddr_cmds.c mtd->erasesize = 1 << lpddr->qinfo->UniformBlockSizeShift; erasesize 374 drivers/mtd/maps/nettel.c (1024*1024 + intel_mtd->erasesize); erasesize 377 drivers/mtd/maps/nettel.c (intel0size + intel1size) - intel_mtd->erasesize; erasesize 378 drivers/mtd/maps/nettel.c nettel_intel_partitions[4].size = intel_mtd->erasesize; erasesize 104 drivers/mtd/maps/scb2_flash.c mtd->erasesize /= 2; erasesize 107 drivers/mtd/maps/scb2_flash.c region->erasesize /= 2; erasesize 119 drivers/mtd/maps/scb2_flash.c if (region->numblocks * region->erasesize > mtd->size) { erasesize 121 drivers/mtd/maps/scb2_flash.c region->erasesize); erasesize 536 drivers/mtd/maps/vmu-flash.c mtd_cur->erasesize = card->blocklen; erasesize 235 drivers/mtd/mtdblock.c mtdblk->cache_data = vmalloc(mtdblk->mbd.mtd->erasesize); erasesize 261 drivers/mtd/mtdblock.c if (!(mbd->mtd->flags & MTD_NO_ERASE) && mbd->mtd->erasesize) { erasesize 262 drivers/mtd/mtdblock.c mtdblk->cache_size = mbd->mtd->erasesize; erasesize 665 drivers/mtd/mtdchar.c || put_user(kr->erasesize, &(ur->erasesize)) erasesize 677 drivers/mtd/mtdchar.c info.erasesize = mtd->erasesize; erasesize 338 drivers/mtd/mtdconcat.c if (instr->addr & (concat->mtd.erasesize - 1)) erasesize 340 drivers/mtd/mtdconcat.c if (instr->len & (concat->mtd.erasesize - 1)) erasesize 359 drivers/mtd/mtdconcat.c if (i < 0 || instr->addr & (erase_regions[i].erasesize - 1)) erasesize 373 drivers/mtd/mtdconcat.c (erase_regions[i].erasesize - 1))) erasesize 630 drivers/mtd/mtdconcat.c concat->mtd.erasesize = subdev[0]->erasesize; erasesize 719 drivers/mtd/mtdconcat.c max_erasesize = curr_erasesize = subdev[0]->erasesize; erasesize 724 drivers/mtd/mtdconcat.c if (subdev[i]->erasesize != curr_erasesize) { erasesize 727 drivers/mtd/mtdconcat.c curr_erasesize = subdev[i]->erasesize; erasesize 737 drivers/mtd/mtdconcat.c if (subdev[i]->eraseregions[j].erasesize != erasesize 742 drivers/mtd/mtdconcat.c erasesize; erasesize 755 drivers/mtd/mtdconcat.c concat->mtd.erasesize = curr_erasesize; erasesize 767 drivers/mtd/mtdconcat.c concat->mtd.erasesize = max_erasesize; erasesize 785 drivers/mtd/mtdconcat.c curr_erasesize = subdev[0]->erasesize; erasesize 790 drivers/mtd/mtdconcat.c if (subdev[i]->erasesize != curr_erasesize) { erasesize 796 drivers/mtd/mtdconcat.c erase_region_p->erasesize = erasesize 803 drivers/mtd/mtdconcat.c curr_erasesize = subdev[i]->erasesize; erasesize 813 drivers/mtd/mtdconcat.c erasesize != curr_erasesize) { erasesize 815 drivers/mtd/mtdconcat.c erase_region_p->erasesize = erasesize 824 drivers/mtd/mtdconcat.c erasesize; erasesize 835 drivers/mtd/mtdconcat.c erase_region_p->erasesize = curr_erasesize; erasesize 162 drivers/mtd/mtdcore.c return snprintf(buf, PAGE_SIZE, "%lu\n", (unsigned long)mtd->erasesize); erasesize 164 drivers/mtd/mtdcore.c static DEVICE_ATTR(erasesize, S_IRUGO, mtd_erasesize_show, NULL); erasesize 623 drivers/mtd/mtdcore.c if (WARN_ON((!mtd->erasesize || !mtd->_erase) && erasesize 642 drivers/mtd/mtdcore.c if (is_power_of_2(mtd->erasesize)) erasesize 643 drivers/mtd/mtdcore.c mtd->erasesize_shift = ffs(mtd->erasesize) - 1; erasesize 1072 drivers/mtd/mtdcore.c if (!mtd->erasesize || !mtd->_erase) erasesize 1928 drivers/mtd/mtdcore.c mtd->erasesize, mtd->name); erasesize 76 drivers/mtd/mtdoops.c u32 start_page_offset = mtd_div_by_eb(offset, mtd) * mtd->erasesize; erasesize 78 drivers/mtd/mtdoops.c u32 erase_pages = mtd->erasesize / record_size; erasesize 84 drivers/mtd/mtdoops.c erase.len = mtd->erasesize; erasesize 131 drivers/mtd/mtdoops.c mod = (cxt->nextpage * record_size) % mtd->erasesize; erasesize 133 drivers/mtd/mtdoops.c cxt->nextpage = cxt->nextpage + ((mtd->erasesize - mod) / record_size); erasesize 143 drivers/mtd/mtdoops.c cxt->nextpage = cxt->nextpage + (mtd->erasesize / record_size); erasesize 146 drivers/mtd/mtdoops.c if (i == cxt->oops_pages / (mtd->erasesize / record_size)) { erasesize 302 drivers/mtd/mtdoops.c if (mtd->size < mtd->erasesize * 2) { erasesize 307 drivers/mtd/mtdoops.c if (mtd->erasesize < record_size) { erasesize 325 drivers/mtd/mtdpart.c parent->erasesize; erasesize 471 drivers/mtd/mtdpart.c slave->mtd.erasesize = parent->erasesize; erasesize 498 drivers/mtd/mtdpart.c if (slave->mtd.erasesize < regions[i].erasesize) { erasesize 499 drivers/mtd/mtdpart.c slave->mtd.erasesize = regions[i].erasesize; erasesize 502 drivers/mtd/mtdpart.c BUG_ON(slave->mtd.erasesize == 0); erasesize 505 drivers/mtd/mtdpart.c slave->mtd.erasesize = parent->erasesize; erasesize 514 drivers/mtd/mtdpart.c wr_alignment = slave->mtd.erasesize; erasesize 548 drivers/mtd/mtdpart.c offs += slave->mtd.erasesize; erasesize 186 drivers/mtd/mtdswap.c return (loff_t)(eb - d->eb_data) * d->mtd->erasesize; erasesize 540 drivers/mtd/mtdswap.c erase.len = mtd->erasesize; erasesize 1013 drivers/mtd/mtdswap.c for (offset = 0; offset < size; offset += mtd->erasesize) erasesize 1206 drivers/mtd/mtdswap.c use_size = (uint64_t)d->eblks * d->mtd->erasesize; erasesize 1288 drivers/mtd/mtdswap.c d->pages_per_eblk = mtd->erasesize >> PAGE_SHIFT; erasesize 1366 drivers/mtd/mtdswap.c if (mtd->erasesize < PAGE_SIZE || mtd->erasesize % PAGE_SIZE) { erasesize 1368 drivers/mtd/mtdswap.c "%lu\n", MTDSWAP_PREFIX, mtd->erasesize, PAGE_SIZE); erasesize 1398 drivers/mtd/mtdswap.c use_size = (uint64_t)eblocks * mtd->erasesize; erasesize 1417 drivers/mtd/mtdswap.c swap_size = (uint64_t)(eavailable - spare_cnt) * mtd->erasesize + erasesize 249 drivers/mtd/nand/core.c mtd->erasesize = memorg->pagesize * memorg->pages_per_eraseblock; erasesize 1095 drivers/mtd/nand/onenand/onenand_base.c if (mtd->eraseregions[i].erasesize < (1 << this->erase_shift)) erasesize 2282 drivers/mtd/nand/onenand/onenand_base.c region_end = region->offset + region->erasesize * region->numblocks; erasesize 2318 drivers/mtd/nand/onenand/onenand_base.c block_size = region->erasesize; erasesize 2319 drivers/mtd/nand/onenand/onenand_base.c region_end = region->offset + region->erasesize * region->numblocks; erasesize 2358 drivers/mtd/nand/onenand/onenand_base.c block_size = region->erasesize; erasesize 3455 drivers/mtd/nand/onenand/onenand_base.c mtd->eraseregions[i].erasesize = 1 << eraseshift; erasesize 3469 drivers/mtd/nand/onenand/onenand_base.c mtd->eraseregions[i].erasesize = 1 << eraseshift; erasesize 3479 drivers/mtd/nand/onenand/onenand_base.c mtd->erasesize = 1 << this->erase_shift; erasesize 3481 drivers/mtd/nand/onenand/onenand_base.c mtd->erasesize >>= 1; erasesize 3488 drivers/mtd/nand/onenand/onenand_base.c mtd->eraseregions[i].erasesize, erasesize 3750 drivers/mtd/nand/onenand/onenand_base.c mtd->erasesize = mtd->writesize << 6; erasesize 3757 drivers/mtd/nand/onenand/onenand_base.c mtd->erasesize <<= 1; erasesize 3759 drivers/mtd/nand/onenand/onenand_base.c this->erase_shift = ffs(mtd->erasesize) - 1; erasesize 3783 drivers/mtd/nand/onenand/onenand_base.c mtd->erasesize <<= 1; erasesize 114 drivers/mtd/nand/onenand/onenand_bbt.c from += mtd->eraseregions[rgn].erasesize; erasesize 2233 drivers/mtd/nand/raw/brcmnand/brcmnand.c cfg->block_size = mtd->erasesize; erasesize 974 drivers/mtd/nand/raw/denali.c mtd->erasesize <<= 1; erasesize 993 drivers/mtd/nand/raw/diskonchip.c for (offs = 0; offs < mtd->size; offs += mtd->erasesize) { erasesize 1065 drivers/mtd/nand/raw/diskonchip.c maxblocks = min(32768U, mtd->erasesize - psize); erasesize 1090 drivers/mtd/nand/raw/diskonchip.c mtd->erasesize <<= (0xff - mh->UnitSizeFactor); erasesize 1091 drivers/mtd/nand/raw/diskonchip.c pr_info("Setting virtual erase size to %d\n", mtd->erasesize); erasesize 1093 drivers/mtd/nand/raw/diskonchip.c maxblocks = min(32768U, mtd->erasesize - psize); erasesize 1104 drivers/mtd/nand/raw/diskonchip.c offs += mtd->erasesize; erasesize 1195 drivers/mtd/nand/raw/diskonchip.c if (inftl_bbt_write && (blocks > mtd->erasesize)) { erasesize 1224 drivers/mtd/nand/raw/diskonchip.c parts[0].size = mtd->erasesize * ip->firstUnit; erasesize 803 drivers/mtd/nand/raw/fsl_elbc_nand.c mtd->erasesize); erasesize 740 drivers/mtd/nand/raw/fsl_ifc_nand.c mtd->erasesize); erasesize 2014 drivers/mtd/nand/raw/gpmi-nand/gpmi-nand.c block_size_in_pages = mtd->erasesize / mtd->writesize; erasesize 766 drivers/mtd/nand/raw/mpc5121_nfc.c switch (mtd->erasesize / mtd->writesize) { erasesize 1228 drivers/mtd/nand/raw/mxc_nand.c uint16_t pages_per_block = mtd->erasesize / mtd->writesize; erasesize 1310 drivers/mtd/nand/raw/mxc_nand.c ffs(mtd->erasesize / mtd->writesize) - 6, erasesize 31 drivers/mtd/nand/raw/nand_amd.c mtd->erasesize = memorg->pages_per_eraseblock * erasesize 293 drivers/mtd/nand/raw/nand_base.c int last_page = ((mtd->erasesize - mtd->writesize) >> erasesize 4495 drivers/mtd/nand/raw/nand_base.c mtd->erasesize = (64 * 1024) << (extid & 0x03); erasesize 4515 drivers/mtd/nand/raw/nand_base.c memorg->pages_per_eraseblock = type->erasesize / type->pagesize; erasesize 4516 drivers/mtd/nand/raw/nand_base.c mtd->erasesize = type->erasesize; erasesize 4559 drivers/mtd/nand/raw/nand_base.c memorg->pages_per_eraseblock = type->erasesize / erasesize 4561 drivers/mtd/nand/raw/nand_base.c mtd->erasesize = type->erasesize; erasesize 4805 drivers/mtd/nand/raw/nand_base.c ffs(mtd->erasesize) - 1; erasesize 4826 drivers/mtd/nand/raw/nand_base.c mtd->erasesize >> 10, mtd->writesize, mtd->oobsize); erasesize 641 drivers/mtd/nand/raw/nand_hynix.c mtd->erasesize = SZ_1M << tmp; erasesize 645 drivers/mtd/nand/raw/nand_hynix.c mtd->erasesize = SZ_512K + SZ_256K; erasesize 649 drivers/mtd/nand/raw/nand_hynix.c mtd->erasesize = SZ_128K << tmp; erasesize 93 drivers/mtd/nand/raw/nand_jedec.c mtd->erasesize = memorg->pages_per_eraseblock * memorg->pagesize; erasesize 237 drivers/mtd/nand/raw/nand_onfi.c mtd->erasesize = memorg->pages_per_eraseblock * memorg->pagesize; erasesize 68 drivers/mtd/nand/raw/nand_samsung.c mtd->erasesize = (128 * 1024) << erasesize 641 drivers/mtd/nand/raw/nandsim.c ns->geom.secsz = mtd->erasesize; erasesize 971 drivers/mtd/nand/raw/nandsim.c wear_eb_count = div_u64(mtd->size, mtd->erasesize); erasesize 2308 drivers/mtd/nand/raw/nandsim.c uint64_t new_size = (uint64_t)nsmtd->erasesize << overridesize; erasesize 2314 drivers/mtd/nand/raw/nandsim.c if (new_size >> overridesize != nsmtd->erasesize) { erasesize 2324 drivers/mtd/nand/raw/nandsim.c chip->chip_shift = ffs(nsmtd->erasesize) + overridesize - 1; erasesize 597 drivers/mtd/nand/raw/sunxi_nand.c int mod = mtd_div_by_ws(mtd->erasesize, mtd); erasesize 41 drivers/mtd/nftlmount.c nftl->EraseSize = nftl->mbd.mtd->erasesize; erasesize 148 drivers/mtd/nftlmount.c erasesize based on UnitSizeFactor. So the erasesize we read from the mtd erasesize 159 drivers/mtd/nftlmount.c nftl->EraseSize = nftl->mbd.mtd->erasesize << (0xff - mh->UnitSizeFactor); erasesize 81 drivers/mtd/parsers/afs.c u_int ptr = off + mtd->erasesize - 12; erasesize 101 drivers/mtd/parsers/afs.c u_int ptr = off + mtd->erasesize - 8; erasesize 142 drivers/mtd/parsers/afs.c ptr = off + mtd->erasesize - sizeof(fs); erasesize 205 drivers/mtd/parsers/afs.c part->size = (iis.length + mtd->erasesize - 1) & ~(mtd->erasesize - 1); erasesize 236 drivers/mtd/parsers/afs.c off, off + mtd->erasesize); erasesize 239 drivers/mtd/parsers/afs.c ptr = off + mtd->erasesize - sizeof(footer); erasesize 248 drivers/mtd/parsers/afs.c ptr = off + mtd->erasesize - sizeof(footer) - footer[8]; erasesize 306 drivers/mtd/parsers/afs.c region_end += (mtd->erasesize - 1); erasesize 307 drivers/mtd/parsers/afs.c region_end &= ~(mtd->erasesize -1); erasesize 333 drivers/mtd/parsers/afs.c for (i = off = sz = 0; off < mtd->size; off += mtd->erasesize) { erasesize 354 drivers/mtd/parsers/afs.c for (i = off = 0; off < mtd->size; off += mtd->erasesize) { erasesize 38 drivers/mtd/parsers/ar7part.c unsigned int pre_size = master->erasesize, post_size = 0; erasesize 49 drivers/mtd/parsers/ar7part.c ar7_parts[0].size = master->erasesize; erasesize 54 drivers/mtd/parsers/ar7part.c ar7_parts[1].size = master->erasesize; erasesize 67 drivers/mtd/parsers/ar7part.c pre_size += master->erasesize; erasesize 73 drivers/mtd/parsers/ar7part.c ar7_parts[1].offset = master->size - master->erasesize; erasesize 74 drivers/mtd/parsers/ar7part.c post_size = master->erasesize; erasesize 102 drivers/mtd/parsers/ar7part.c root_offset += master->erasesize - 1; erasesize 103 drivers/mtd/parsers/ar7part.c root_offset &= ~(master->erasesize - 1); erasesize 95 drivers/mtd/parsers/bcm47xxpart.c uint32_t blocksize = master->erasesize; erasesize 97 drivers/mtd/parsers/bcm63xxpart.c cfe_erasesize = max_t(uint32_t, master->erasesize, erasesize 126 drivers/mtd/parsers/parser_imagetag.c spareaddr = roundup(totallen, master->erasesize); erasesize 89 drivers/mtd/parsers/redboot.c offset = master->size + directory * master->erasesize; erasesize 96 drivers/mtd/parsers/redboot.c offset -= master->erasesize; erasesize 99 drivers/mtd/parsers/redboot.c offset = directory * master->erasesize; erasesize 101 drivers/mtd/parsers/redboot.c offset += master->erasesize; erasesize 106 drivers/mtd/parsers/redboot.c buf = vmalloc(master->erasesize); erasesize 114 drivers/mtd/parsers/redboot.c ret = mtd_read(master, offset, master->erasesize, &retlen, erasesize 120 drivers/mtd/parsers/redboot.c if (retlen != master->erasesize) { erasesize 125 drivers/mtd/parsers/redboot.c numslots = (master->erasesize / sizeof(struct fis_image_desc)); erasesize 143 drivers/mtd/parsers/redboot.c if (swab32(buf[i].size) == master->erasesize || erasesize 144 drivers/mtd/parsers/redboot.c (buf[i].size > master->erasesize erasesize 145 drivers/mtd/parsers/redboot.c && swab32(buf[i].size) < master->erasesize)) { erasesize 173 drivers/mtd/parsers/redboot.c } else if (buf[i].size < master->erasesize) { erasesize 231 drivers/mtd/parsers/redboot.c if (tmp_fl->img->flash_base + tmp_fl->img->size + master->erasesize <= tmp_fl->next->img->flash_base) { erasesize 278 drivers/mtd/parsers/redboot.c if(fl->next && fl->img->flash_base + fl->img->size + master->erasesize <= fl->next->img->flash_base) { erasesize 195 drivers/mtd/parsers/sharpslpart.c block_adr = (loff_t)block_num * mtd->erasesize; erasesize 247 drivers/mtd/parsers/sharpslpart.c block_adr = (loff_t)block_num * mtd->erasesize; erasesize 738 drivers/mtd/rfd_ftl.c if (!mtd->erasesize) { erasesize 742 drivers/mtd/rfd_ftl.c part->block_size = mtd->erasesize; erasesize 618 drivers/mtd/sm_ftl.c if (mtd->erasesize > ftl->block_size) erasesize 752 drivers/mtd/spi-nor/cadence-quadspi.c reg |= (ilog2(nor->mtd.erasesize) << CQSPI_REG_SIZE_BLOCK_LSB); erasesize 761 drivers/mtd/spi-nor/cadence-quadspi.c cqspi->current_erase_size = nor->mtd.erasesize; erasesize 871 drivers/mtd/spi-nor/cadence-quadspi.c (cqspi->current_erase_size != nor->mtd.erasesize) || erasesize 742 drivers/mtd/spi-nor/intel-spi.c size_t erase_size, len = nor->mtd.erasesize; erasesize 1250 drivers/mtd/spi-nor/spi-nor.c div_u64_rem(instr->len, mtd->erasesize, &rem); erasesize 1300 drivers/mtd/spi-nor/spi-nor.c addr += mtd->erasesize; erasesize 1301 drivers/mtd/spi-nor/spi-nor.c len -= mtd->erasesize; erasesize 2768 drivers/mtd/spi-nor/spi-nor.c nor->mtd.erasesize = 8 * nor->page_size; erasesize 2772 drivers/mtd/spi-nor/spi-nor.c nor->mtd.erasesize = nor->info->sector_size; erasesize 3443 drivers/mtd/spi-nor/spi-nor.c u32 erasesize; erasesize 3447 drivers/mtd/spi-nor/spi-nor.c erasesize = half & 0xff; erasesize 3450 drivers/mtd/spi-nor/spi-nor.c if (!erasesize) erasesize 3453 drivers/mtd/spi-nor/spi-nor.c erasesize = 1U << erasesize; erasesize 3456 drivers/mtd/spi-nor/spi-nor.c spi_nor_set_erase_settings_from_bfpt(&erase_type[i], erasesize, erasesize 4293 drivers/mtd/spi-nor/spi-nor.c mtd->erasesize = erase->size; erasesize 4311 drivers/mtd/spi-nor/spi-nor.c mtd->erasesize = erase->size; erasesize 4554 drivers/mtd/spi-nor/spi-nor.c nor->mtd.erasesize = nor->info->sector_size; erasesize 4965 drivers/mtd/spi-nor/spi-nor.c mtd->erasesize, mtd->erasesize / 1024, mtd->numeraseregions); erasesize 4974 drivers/mtd/spi-nor/spi-nor.c mtd->eraseregions[i].erasesize, erasesize 4975 drivers/mtd/spi-nor/spi-nor.c mtd->eraseregions[i].erasesize / 1024, erasesize 121 drivers/mtd/ssfdc.c for (k = 0, offset = 0; k < 4; k++, offset += mtd->erasesize) { erasesize 308 drivers/mtd/ssfdc.c ssfdc->cis_block = cis_sector / (mtd->erasesize >> SECTOR_SHIFT); erasesize 309 drivers/mtd/ssfdc.c ssfdc->erase_size = mtd->erasesize; erasesize 310 drivers/mtd/ssfdc.c ssfdc->map_len = (u32)mtd->size / mtd->erasesize; erasesize 14 drivers/mtd/tests/mtd_test.c loff_t addr = (loff_t)ebnum * mtd->erasesize; erasesize 18 drivers/mtd/tests/mtd_test.c ei.len = mtd->erasesize; erasesize 32 drivers/mtd/tests/mtd_test.c loff_t addr = (loff_t)ebnum * mtd->erasesize; erasesize 350 drivers/mtd/tests/nandbiterrs.c (unsigned long long)mtd->size, mtd->erasesize, erasesize 61 drivers/mtd/tests/oobtest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; erasesize 170 drivers/mtd/tests/oobtest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; erasesize 265 drivers/mtd/tests/oobtest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; erasesize 368 drivers/mtd/tests/oobtest.c do_div(tmp, mtd->erasesize); erasesize 370 drivers/mtd/tests/oobtest.c pgcnt = mtd->erasesize / mtd->writesize; erasesize 375 drivers/mtd/tests/oobtest.c (unsigned long long)mtd->size, mtd->erasesize, erasesize 379 drivers/mtd/tests/oobtest.c readbuf = kmalloc(mtd->erasesize, GFP_KERNEL); erasesize 382 drivers/mtd/tests/oobtest.c writebuf = kmalloc(mtd->erasesize, GFP_KERNEL); erasesize 493 drivers/mtd/tests/oobtest.c addr0 += mtd->erasesize; erasesize 650 drivers/mtd/tests/oobtest.c addr = (loff_t)(i + 1) * mtd->erasesize - mtd->writesize; erasesize 683 drivers/mtd/tests/oobtest.c addr = (loff_t)(i + 1) * mtd->erasesize - mtd->writesize; erasesize 43 drivers/mtd/tests/pagetest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; erasesize 45 drivers/mtd/tests/pagetest.c prandom_bytes_state(&rnd_state, writebuf, mtd->erasesize); erasesize 47 drivers/mtd/tests/pagetest.c return mtdtest_write(mtd, addr, mtd->erasesize, writebuf); erasesize 55 drivers/mtd/tests/pagetest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; erasesize 59 drivers/mtd/tests/pagetest.c addr0 += mtd->erasesize; erasesize 63 drivers/mtd/tests/pagetest.c addrn -= mtd->erasesize; erasesize 65 drivers/mtd/tests/pagetest.c prandom_bytes_state(&rnd_state, writebuf, mtd->erasesize); erasesize 99 drivers/mtd/tests/pagetest.c memcpy(boundary, writebuf + mtd->erasesize - pgsize, pgsize); erasesize 127 drivers/mtd/tests/pagetest.c addr0 += mtd->erasesize; erasesize 131 drivers/mtd/tests/pagetest.c addrn -= mtd->erasesize; erasesize 199 drivers/mtd/tests/pagetest.c addr0 += mtd->erasesize; erasesize 277 drivers/mtd/tests/pagetest.c addr0 += mtd->erasesize; erasesize 349 drivers/mtd/tests/pagetest.c do_div(tmp, mtd->erasesize); erasesize 351 drivers/mtd/tests/pagetest.c pgcnt = mtd->erasesize / mtd->writesize; erasesize 357 drivers/mtd/tests/pagetest.c (unsigned long long)mtd->size, mtd->erasesize, erasesize 362 drivers/mtd/tests/pagetest.c writebuf = kmalloc(mtd->erasesize, GFP_KERNEL); erasesize 38 drivers/mtd/tests/readtest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; erasesize 86 drivers/mtd/tests/readtest.c n = mtd->erasesize; erasesize 143 drivers/mtd/tests/readtest.c do_div(tmp, mtd->erasesize); erasesize 145 drivers/mtd/tests/readtest.c pgcnt = mtd->erasesize / pgsize; erasesize 150 drivers/mtd/tests/readtest.c (unsigned long long)mtd->size, mtd->erasesize, erasesize 154 drivers/mtd/tests/readtest.c iobuf = kmalloc(mtd->erasesize, GFP_KERNEL); erasesize 157 drivers/mtd/tests/readtest.c iobuf1 = kmalloc(mtd->erasesize, GFP_KERNEL); erasesize 47 drivers/mtd/tests/speedtest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; erasesize 51 drivers/mtd/tests/speedtest.c ei.len = mtd->erasesize * blocks; erasesize 65 drivers/mtd/tests/speedtest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; erasesize 67 drivers/mtd/tests/speedtest.c return mtdtest_write(mtd, addr, mtd->erasesize, iobuf); erasesize 73 drivers/mtd/tests/speedtest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; erasesize 91 drivers/mtd/tests/speedtest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; erasesize 109 drivers/mtd/tests/speedtest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; erasesize 111 drivers/mtd/tests/speedtest.c return mtdtest_read(mtd, addr, mtd->erasesize, iobuf); erasesize 117 drivers/mtd/tests/speedtest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; erasesize 135 drivers/mtd/tests/speedtest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; erasesize 169 drivers/mtd/tests/speedtest.c k = (uint64_t)goodebcnt * (mtd->erasesize / 1024) * 1000; erasesize 209 drivers/mtd/tests/speedtest.c do_div(tmp, mtd->erasesize); erasesize 211 drivers/mtd/tests/speedtest.c pgcnt = mtd->erasesize / pgsize; erasesize 216 drivers/mtd/tests/speedtest.c (unsigned long long)mtd->size, mtd->erasesize, erasesize 223 drivers/mtd/tests/speedtest.c iobuf = kmalloc(mtd->erasesize, GFP_KERNEL); erasesize 227 drivers/mtd/tests/speedtest.c prandom_bytes(iobuf, mtd->erasesize); erasesize 82 drivers/mtd/tests/stresstest.c if (offs >= mtd->erasesize) erasesize 83 drivers/mtd/tests/stresstest.c offs -= mtd->erasesize; erasesize 84 drivers/mtd/tests/stresstest.c if (offs + len > mtd->erasesize) erasesize 85 drivers/mtd/tests/stresstest.c len = mtd->erasesize - offs; erasesize 87 drivers/mtd/tests/stresstest.c addr = (loff_t)eb * mtd->erasesize + offs; erasesize 97 drivers/mtd/tests/stresstest.c if (offs >= mtd->erasesize) { erasesize 105 drivers/mtd/tests/stresstest.c if (offs + len > mtd->erasesize) { erasesize 107 drivers/mtd/tests/stresstest.c len = mtd->erasesize - offs; erasesize 115 drivers/mtd/tests/stresstest.c addr = (loff_t)eb * mtd->erasesize + offs; erasesize 120 drivers/mtd/tests/stresstest.c while (offs > mtd->erasesize) { erasesize 121 drivers/mtd/tests/stresstest.c offsets[eb++] = mtd->erasesize; erasesize 122 drivers/mtd/tests/stresstest.c offs -= mtd->erasesize; erasesize 168 drivers/mtd/tests/stresstest.c do_div(tmp, mtd->erasesize); erasesize 170 drivers/mtd/tests/stresstest.c pgcnt = mtd->erasesize / pgsize; erasesize 175 drivers/mtd/tests/stresstest.c (unsigned long long)mtd->size, mtd->erasesize, erasesize 185 drivers/mtd/tests/stresstest.c bufsize = mtd->erasesize * 2; erasesize 194 drivers/mtd/tests/stresstest.c offsets[i] = mtd->erasesize; erasesize 47 drivers/mtd/tests/subpagetest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; erasesize 82 drivers/mtd/tests/subpagetest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; erasesize 85 drivers/mtd/tests/subpagetest.c if (addr + (subpgsize * k) > (loff_t)(ebnum + 1) * mtd->erasesize) erasesize 121 drivers/mtd/tests/subpagetest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; erasesize 182 drivers/mtd/tests/subpagetest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; erasesize 185 drivers/mtd/tests/subpagetest.c if (addr + (subpgsize * k) > (loff_t)(ebnum + 1) * mtd->erasesize) erasesize 217 drivers/mtd/tests/subpagetest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; erasesize 220 drivers/mtd/tests/subpagetest.c for (j = 0; j < mtd->erasesize / subpgsize; ++j) { erasesize 299 drivers/mtd/tests/subpagetest.c do_div(tmp, mtd->erasesize); erasesize 301 drivers/mtd/tests/subpagetest.c pgcnt = mtd->erasesize / mtd->writesize; erasesize 306 drivers/mtd/tests/subpagetest.c (unsigned long long)mtd->size, mtd->erasesize, erasesize 93 drivers/mtd/tests/torturetest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; erasesize 94 drivers/mtd/tests/torturetest.c size_t len = mtd->erasesize; erasesize 97 drivers/mtd/tests/torturetest.c addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; erasesize 147 drivers/mtd/tests/torturetest.c loff_t addr = (loff_t)ebnum * mtd->erasesize; erasesize 148 drivers/mtd/tests/torturetest.c size_t len = mtd->erasesize; erasesize 151 drivers/mtd/tests/torturetest.c addr = (loff_t)(ebnum + 1) * mtd->erasesize - pgcnt * pgsize; erasesize 207 drivers/mtd/tests/torturetest.c if (pgcnt && (pgcnt > mtd->erasesize / pgsize || pgcnt < 0)) { erasesize 213 drivers/mtd/tests/torturetest.c patt_5A5 = kmalloc(mtd->erasesize, GFP_KERNEL); erasesize 217 drivers/mtd/tests/torturetest.c patt_A5A = kmalloc(mtd->erasesize, GFP_KERNEL); erasesize 221 drivers/mtd/tests/torturetest.c patt_FF = kmalloc(mtd->erasesize, GFP_KERNEL); erasesize 225 drivers/mtd/tests/torturetest.c check_buf = kmalloc(mtd->erasesize, GFP_KERNEL); erasesize 236 drivers/mtd/tests/torturetest.c memset(patt_FF, 0xFF, mtd->erasesize); erasesize 237 drivers/mtd/tests/torturetest.c for (i = 0; i < mtd->erasesize / pgsize; i++) { erasesize 378 drivers/mtd/tests/torturetest.c size_t check_len = mtd->erasesize; erasesize 407 drivers/mtd/tests/torturetest.c (mtd->erasesize - check_len + i) / pgsize, erasesize 601 drivers/mtd/ubi/build.c ubi->peb_size = ubi->mtd->erasesize; erasesize 160 drivers/mtd/ubi/gluebi.c lnum = div_u64_rem(from, mtd->erasesize, &offs); erasesize 163 drivers/mtd/ubi/gluebi.c size_t to_read = mtd->erasesize - offs; erasesize 200 drivers/mtd/ubi/gluebi.c lnum = div_u64_rem(to, mtd->erasesize, &offs); erasesize 207 drivers/mtd/ubi/gluebi.c size_t to_write = mtd->erasesize - offs; erasesize 265 drivers/mtd/ubi/gluebi.c instr->fail_addr = (long long)lnum * mtd->erasesize; erasesize 302 drivers/mtd/ubi/gluebi.c mtd->erasesize = vi->usable_leb_size; erasesize 6114 drivers/net/ethernet/sfc/ef10.c part->common.mtd.erasesize = erase_size; erasesize 946 drivers/net/ethernet/sfc/falcon/falcon.c parts[n_parts].common.mtd.erasesize = spi->erase_size; erasesize 961 drivers/net/ethernet/sfc/falcon/falcon.c parts[n_parts].common.mtd.erasesize = spi->erase_size; erasesize 2229 drivers/net/ethernet/sfc/mcdi.c loff_t offset = start & ~((loff_t)(mtd->erasesize - 1)); erasesize 2231 drivers/net/ethernet/sfc/mcdi.c size_t chunk = part->common.mtd.erasesize; erasesize 878 drivers/net/ethernet/sfc/siena.c part->common.mtd.erasesize = erase_size; erasesize 538 fs/jffs2/fs.c c->sector_size = c->mtd->erasesize; erasesize 288 fs/jffs2/wbuf.c if (c->wbuf_ofs % c->mtd->erasesize) erasesize 1243 fs/jffs2/wbuf.c c->wbuf_pagesize = c->mtd->erasesize; erasesize 1253 fs/jffs2/wbuf.c c->sector_size = 8 * c->mtd->erasesize; erasesize 193 include/linux/mtd/doc2000.h unsigned long erasesize; erasesize 37 include/linux/mtd/mtd.h uint32_t erasesize; /* For this region */ erasesize 207 include/linux/mtd/mtd.h uint32_t erasesize; erasesize 468 include/linux/mtd/mtd.h do_div(sz, mtd->erasesize); erasesize 476 include/linux/mtd/mtd.h return do_div(sz, mtd->erasesize); erasesize 493 include/linux/mtd/mtd.h if (WARN_ON(!mtd->erasesize)) erasesize 504 include/linux/mtd/mtd.h req->len += mtd->erasesize - mod; erasesize 524 include/linux/mtd/mtd.h return mtd->erasesize / mtd->writesize; erasesize 1193 include/linux/mtd/rawnand.h .chipsize = (chipsz), .erasesize = (erasesz), .options = (opts) } erasesize 1254 include/linux/mtd/rawnand.h unsigned int erasesize; erasesize 131 include/uapi/mtd/mtd-abi.h __u32 erasesize; erasesize 140 include/uapi/mtd/mtd-abi.h __u32 erasesize; /* For this region */