Home
last modified time | relevance | path

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

/linux-6.1.9/drivers/mtd/devices/
Dlart.c376 for (i = 0; i < mtd->numeraseregions && instr->addr >= mtd->eraseregions[i].offset; i++) ; in flash_erase()
398 … for (; i < mtd->numeraseregions && instr->addr + instr->len >= mtd->eraseregions[i].offset; i++) ; in flash_erase()
624 mtd.numeraseregions = ARRAY_SIZE(erase_regions); in lart_flash_init()
640 mtd.numeraseregions); in lart_flash_init()
642 if (mtd.numeraseregions) in lart_flash_init()
643 for (result = 0; result < mtd.numeraseregions; result++) in lart_flash_init()
Dsst25l.c390 flash->mtd.numeraseregions); in sst25l_probe()
/linux-6.1.9/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.c142 if (parent->numeraseregions > 1) { in allocate_partition()
144 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.c213 return sysfs_emit(buf, "%u\n", mtd->numeraseregions); in mtd_numeraseregions_show()
215 MTD_DEVICE_ATTR_RO(numeraseregions);
/linux-6.1.9/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-6.1.9/drivers/mtd/chips/
Dcfi_util.c380 while (i < mtd->numeraseregions && ofs >= regions[i].offset) in cfi_varsize_frob()
400 while (i<mtd->numeraseregions && (ofs + len) >= regions[i].offset) in cfi_varsize_frob()
Dcfi_cmdset_0020.c186 mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips; in cfi_staa_setup()
187 mtd->eraseregions = kmalloc_array(mtd->numeraseregions, in cfi_staa_setup()
221 for (i=0; i<mtd->numeraseregions;i++){ in cfi_staa_setup()
911 while (i < mtd->numeraseregions && instr->addr >= regions[i].offset) in cfi_staa_erase_varsize()
931 while (i<mtd->numeraseregions && (instr->addr + instr->len) >= regions[i].offset) in cfi_staa_erase_varsize()
Dcfi_cmdset_0001.c612 mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips; in cfi_intelext_setup()
613 mtd->eraseregions = kcalloc(mtd->numeraseregions, in cfi_intelext_setup()
644 for (i=0; i<mtd->numeraseregions;i++){ in cfi_intelext_setup()
2489 for (i = 0; i < mtd->numeraseregions; i++) { in cfi_intelext_save_locks()
2590 for (i = 0; i < mtd->numeraseregions; i++) { in cfi_intelext_restore_locks()
2681 for (i = 0; i < mtd->numeraseregions; i++) { in cfi_intelext_destroy()
Dcfi_cmdset_0002.c780 mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips; in cfi_amdstd_setup()
781 mtd->eraseregions = kmalloc_array(mtd->numeraseregions, in cfi_amdstd_setup()
2823 for (i = 0; i < mtd->numeraseregions; i++) in cfi_ppb_unlock()
/linux-6.1.9/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-6.1.9/Documentation/ABI/testing/
Dsysfs-class-mtd50 "Major" erase size for the device. If numeraseregions is
76 What: /sys/class/mtd/mtdX/numeraseregions
/linux-6.1.9/include/linux/mtd/
Dmtd.h309 int numeraseregions; member
/linux-6.1.9/drivers/mtd/spi-nor/
Dcore.c3013 mtd->erasesize, mtd->erasesize / 1024, mtd->numeraseregions); in spi_nor_scan()
3015 if (mtd->numeraseregions) in spi_nor_scan()
3016 for (i = 0; i < mtd->numeraseregions; i++) in spi_nor_scan()
/linux-6.1.9/drivers/mtd/ubi/
Dbuild.c597 if (ubi->mtd->numeraseregions != 0) { in io_init()