Home
last modified time | relevance | path

Searched refs:ernum (Results 1 – 3 of 3) sorted by relevance

/Linux-v5.4/drivers/mtd/chips/
Dcfi_cmdset_0020.c197 unsigned long ernum, ersize; in cfi_staa_setup() local
199 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()
Dcfi_cmdset_0001.c618 unsigned long ernum, ersize; in cfi_intelext_setup() local
620 ernum = (cfi->cfiq->EraseRegionInfo[i] & 0xffff) + 1; in cfi_intelext_setup()
628 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; in cfi_intelext_setup()
629 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap = kmalloc(ernum / 8 + 1, GFP_KERNEL); in cfi_intelext_setup()
633 offset += (ersize * ernum); in cfi_intelext_setup()
Dcfi_cmdset_0002.c760 unsigned long ernum, ersize; in cfi_amdstd_setup() local
762 ernum = (cfi->cfiq->EraseRegionInfo[i] & 0xffff) + 1; in cfi_amdstd_setup()
770 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; in cfi_amdstd_setup()
772 offset += (ersize * ernum); in cfi_amdstd_setup()