Searched refs:numeraseregions (Results 1 – 16 of 16) sorted by relevance
/linux-6.1.9/drivers/mtd/devices/ |
D | lart.c | 376 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()
|
D | sst25l.c | 390 flash->mtd.numeraseregions); in sst25l_probe()
|
/linux-6.1.9/drivers/mtd/ |
D | mtdconcat.c | 377 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()
|
D | mtdpart.c | 142 if (parent->numeraseregions > 1) { in allocate_partition() 144 int i, max = parent->numeraseregions; in allocate_partition()
|
D | mtdchar.c | 879 if (copy_to_user(argp, &(mtd->numeraseregions), sizeof(int))) in mtdchar_ioctl() 892 if (ur_idx >= mtd->numeraseregions) in mtdchar_ioctl()
|
D | mtdcore.c | 213 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/ |
D | scb2_flash.c | 105 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/ |
D | cfi_util.c | 380 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()
|
D | cfi_cmdset_0020.c | 186 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()
|
D | cfi_cmdset_0001.c | 612 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()
|
D | cfi_cmdset_0002.c | 780 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/ |
D | onenand_base.c | 381 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/ |
D | sysfs-class-mtd | 50 "Major" erase size for the device. If numeraseregions is 76 What: /sys/class/mtd/mtdX/numeraseregions
|
/linux-6.1.9/include/linux/mtd/ |
D | mtd.h | 309 int numeraseregions; member
|
/linux-6.1.9/drivers/mtd/spi-nor/ |
D | core.c | 3013 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/ |
D | build.c | 597 if (ubi->mtd->numeraseregions != 0) { in io_init()
|