Searched refs:ernum (Results 1 – 3 of 3) sorted by relevance
198 unsigned long ernum, ersize; in cfi_staa_setup() local200 ernum = (cfi->cfiq->EraseRegionInfo[i] & 0xffff) + 1; in cfi_staa_setup()208 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; in cfi_staa_setup()210 offset += (ersize * ernum); in cfi_staa_setup()
637 unsigned long ernum, ersize; in cfi_intelext_setup() local639 ernum = (cfi->cfiq->EraseRegionInfo[i] & 0xffff) + 1; in cfi_intelext_setup()647 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; in cfi_intelext_setup()648 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap = kmalloc(ernum / 8 + 1, GFP_KERNEL); in cfi_intelext_setup()652 offset += (ersize * ernum); in cfi_intelext_setup()
786 unsigned long ernum, ersize; in cfi_amdstd_setup() local788 ernum = (cfi->cfiq->EraseRegionInfo[i] & 0xffff) + 1; in cfi_amdstd_setup()796 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; in cfi_amdstd_setup()798 offset += (ersize * ernum); in cfi_amdstd_setup()