Home
last modified time | relevance | path

Searched refs:NumEraseRegions (Results 1 – 7 of 7) sorted by relevance

/linux-5.19.10/drivers/mtd/chips/
Dcfi_probe.c239 for (i=0; i<cfi->cfiq->NumEraseRegions; i++) { in cfi_chip_setup()
421 printk("Number of Erase Block Regions: %d\n", cfip->NumEraseRegions); in print_cfi_ident()
Dcfi_cmdset_0020.c186 mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips; in cfi_staa_setup()
196 for (i=0; i<cfi->cfiq->NumEraseRegions; i++) { in cfi_staa_setup()
205 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; in cfi_staa_setup()
206 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; in cfi_staa_setup()
207 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; in cfi_staa_setup()
Dcfi_cmdset_0002.c334 if ((cfi->cfiq->NumEraseRegions == 1) && in fixup_use_erase_chip()
363 cfi->cfiq->NumEraseRegions = 1; in fixup_old_sst_eraseregion()
703 if (bootloc == 3 && cfi->cfiq->NumEraseRegions > 1) { in cfi_cmdset_0002()
706 for (i=0; i<cfi->cfiq->NumEraseRegions / 2; i++) { in cfi_cmdset_0002()
707 int j = (cfi->cfiq->NumEraseRegions-1)-i; in cfi_cmdset_0002()
780 mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips; in cfi_amdstd_setup()
787 for (i=0; i<cfi->cfiq->NumEraseRegions; i++) { in cfi_amdstd_setup()
796 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; in cfi_amdstd_setup()
797 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; in cfi_amdstd_setup()
798 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; in cfi_amdstd_setup()
Dcfi_cmdset_0001.c612 mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips; in cfi_intelext_setup()
619 for (i=0; i<cfi->cfiq->NumEraseRegions; i++) { in cfi_intelext_setup()
628 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].offset = (j*devsize)+offset; in cfi_intelext_setup()
629 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].erasesize = ersize; in cfi_intelext_setup()
630 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].numblocks = ernum; in cfi_intelext_setup()
631 mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap = kmalloc(ernum / 8 + 1, GFP_KERNEL); in cfi_intelext_setup()
632 if (!mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap) in cfi_intelext_setup()
671 for (i=0; i<cfi->cfiq->NumEraseRegions; i++) in cfi_intelext_setup()
673 kfree(mtd->eraseregions[(j*cfi->cfiq->NumEraseRegions)+i].lockmap); in cfi_intelext_setup()
Dgen_probe.c82 if (cfi.cfiq->NumEraseRegions == 0) { in genprobe_ident_chips()
Djedec_probe.c1996 cfi->cfiq->NumEraseRegions = jedec_table[index].nr_regions; in cfi_jedec_setup()
/linux-5.19.10/include/linux/mtd/
Dcfi.h140 uint8_t NumEraseRegions; member