Home
last modified time | relevance | path

Searched refs:numeraseregions (Results 1 – 15 of 15) sorted by relevance

/Linux-v6.6/drivers/mtd/
Dmtdconcat.c377 if (!concat->mtd.numeraseregions) { in concat_erase()
391 for (i = 0; i < concat->mtd.numeraseregions && in concat_erase()
406 for (; i < concat->mtd.numeraseregions && in concat_erase()
778 if (subdev[i]->numeraseregions == 0) { in mtd_concat_create()
790 for (j = 0; j < subdev[i]->numeraseregions; j++) { in mtd_concat_create()
812 concat->mtd.numeraseregions = 0; in mtd_concat_create()
824 concat->mtd.numeraseregions = num_erase_region; in mtd_concat_create()
844 if (subdev[i]->numeraseregions == 0) { in mtd_concat_create()
866 for (j = 0; j < subdev[i]->numeraseregions; j++) { in mtd_concat_create()
904 if (concat->mtd.numeraseregions) in mtd_concat_destroy()
Dmtdpart.c148 if (parent->numeraseregions > 1) { in allocate_partition()
150 int i, max = parent->numeraseregions; in allocate_partition()
Dmtdchar.c879 if (copy_to_user(argp, &(mtd->numeraseregions), sizeof(int))) in mtdchar_ioctl()
892 if (ur_idx >= mtd->numeraseregions) in mtdchar_ioctl()
Dmtdcore.c243 return sysfs_emit(buf, "%u\n", mtd->numeraseregions); in mtd_numeraseregions_show()
245 MTD_DEVICE_ATTR_RO(numeraseregions);
/Linux-v6.6/drivers/mtd/maps/
Dscb2_flash.c105 for (i = 0; i < mtd->numeraseregions; i++) { in scb2_fixup_mtd()
116 for (i = 0; !done && i < mtd->numeraseregions; i++) { in scb2_fixup_mtd()
/Linux-v6.6/drivers/mtd/chips/
Dcfi_util.c379 while (i < mtd->numeraseregions && ofs >= regions[i].offset) in cfi_varsize_frob()
399 while (i<mtd->numeraseregions && (ofs + len) >= regions[i].offset) in cfi_varsize_frob()
Dcfi_cmdset_0020.c187 mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips; in cfi_staa_setup()
188 mtd->eraseregions = kmalloc_array(mtd->numeraseregions, in cfi_staa_setup()
222 for (i=0; i<mtd->numeraseregions;i++){ in cfi_staa_setup()
912 while (i < mtd->numeraseregions && instr->addr >= regions[i].offset) in cfi_staa_erase_varsize()
932 while (i<mtd->numeraseregions && (instr->addr + instr->len) >= regions[i].offset) in cfi_staa_erase_varsize()
Dcfi_cmdset_0001.c613 mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips; in cfi_intelext_setup()
614 mtd->eraseregions = kcalloc(mtd->numeraseregions, in cfi_intelext_setup()
645 for (i=0; i<mtd->numeraseregions;i++){ in cfi_intelext_setup()
2490 for (i = 0; i < mtd->numeraseregions; i++) { in cfi_intelext_save_locks()
2591 for (i = 0; i < mtd->numeraseregions; i++) { in cfi_intelext_restore_locks()
2682 for (i = 0; i < mtd->numeraseregions; i++) { in cfi_intelext_destroy()
Dcfi_cmdset_0002.c778 mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips; in cfi_amdstd_setup()
779 mtd->eraseregions = kmalloc_array(mtd->numeraseregions, in cfi_amdstd_setup()
2821 for (i = 0; i < mtd->numeraseregions; i++) in cfi_ppb_unlock()
/Linux-v6.6/drivers/mtd/nand/onenand/
Donenand_base.c381 for (i = 0; i < mtd->numeraseregions; i++) in flexonenand_region()
3448 mtd->numeraseregions = this->dies << 1; in flexonenand_get_size()
3464 mtd->numeraseregions -= 1; in flexonenand_get_size()
3478 mtd->numeraseregions -= 1; in flexonenand_get_size()
3483 if (mtd->numeraseregions == 1) in flexonenand_get_size()
3486 printk(KERN_INFO "Device has %d eraseregions\n", mtd->numeraseregions); in flexonenand_get_size()
3487 for (i = 0; i < mtd->numeraseregions; i++) in flexonenand_get_size()
3728 mtd->numeraseregions = this->dies << 1; in onenand_probe()
/Linux-v6.6/Documentation/ABI/testing/
Dsysfs-class-mtd50 "Major" erase size for the device. If numeraseregions is
76 What: /sys/class/mtd/mtdX/numeraseregions
/Linux-v6.6/drivers/mtd/devices/
Dsst25l.c390 flash->mtd.numeraseregions); in sst25l_probe()
/Linux-v6.6/include/linux/mtd/
Dmtd.h309 int numeraseregions; member
/Linux-v6.6/drivers/mtd/spi-nor/
Dcore.c3543 mtd->erasesize, mtd->erasesize / 1024, mtd->numeraseregions); in spi_nor_scan()
3545 if (mtd->numeraseregions) in spi_nor_scan()
3546 for (i = 0; i < mtd->numeraseregions; i++) in spi_nor_scan()
/Linux-v6.6/drivers/mtd/ubi/
Dbuild.c599 if (ubi->mtd->numeraseregions != 0) { in io_init()