Searched refs:ernum (Results 1 – 3 of 3) sorted by relevance
197 unsigned long ernum, ersize; in cfi_staa_setup() local199 ernum = (cfi->cfiq->EraseRegionInfo[i] & 0xffff) + 1; in cfi_staa_setup()207 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; in cfi_staa_setup()209 offset += (ersize * ernum); in cfi_staa_setup()
619 unsigned long ernum, ersize; in cfi_intelext_setup() local621 ernum = (cfi->cfiq->EraseRegionInfo[i] & 0xffff) + 1; in cfi_intelext_setup()629 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; in cfi_intelext_setup()630 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap = kmalloc(ernum / 8 + 1, GFP_KERNEL); in cfi_intelext_setup()634 offset += (ersize * ernum); in cfi_intelext_setup()
769 unsigned long ernum, ersize; in cfi_amdstd_setup() local771 ernum = (cfi->cfiq->EraseRegionInfo[i] & 0xffff) + 1; in cfi_amdstd_setup()779 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; in cfi_amdstd_setup()781 offset += (ersize * ernum); in cfi_amdstd_setup()