Searched refs:numeraseregions (Results 1 – 16 of 16) sorted by relevance
/linux/drivers/mtd/devices/ |
A 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()
|
A D | sst25l.c | 390 flash->mtd.numeraseregions); in sst25l_probe()
|
/linux/drivers/mtd/ |
A 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()
|
A D | mtdpart.c | 141 if (parent->numeraseregions > 1) { in allocate_partition() 143 int i, max = parent->numeraseregions; in allocate_partition()
|
A D | mtdchar.c | 680 if (copy_to_user(argp, &(mtd->numeraseregions), sizeof(int))) in mtdchar_ioctl() 693 if (ur_idx >= mtd->numeraseregions) in mtdchar_ioctl()
|
A D | mtdcore.c | 213 return sysfs_emit(buf, "%u\n", mtd->numeraseregions); in mtd_numeraseregions_show() 215 MTD_DEVICE_ATTR_RO(numeraseregions);
|
/linux/drivers/mtd/maps/ |
A 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/drivers/mtd/chips/ |
A 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()
|
A 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()
|
A 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()
|
A D | cfi_cmdset_0002.c | 765 mtd->numeraseregions = cfi->cfiq->NumEraseRegions * cfi->numchips; in cfi_amdstd_setup() 766 mtd->eraseregions = kmalloc_array(mtd->numeraseregions, in cfi_amdstd_setup() 2827 for (i = 0; i < mtd->numeraseregions; i++) in cfi_ppb_unlock()
|
/linux/drivers/mtd/nand/onenand/ |
A D | onenand_base.c | 381 for (i = 0; i < mtd->numeraseregions; i++) in flexonenand_region() 3436 mtd->numeraseregions = this->dies << 1; in flexonenand_get_size() 3452 mtd->numeraseregions -= 1; in flexonenand_get_size() 3466 mtd->numeraseregions -= 1; in flexonenand_get_size() 3471 if (mtd->numeraseregions == 1) in flexonenand_get_size() 3474 printk(KERN_INFO "Device has %d eraseregions\n", mtd->numeraseregions); in flexonenand_get_size() 3475 for (i = 0; i < mtd->numeraseregions; i++) in flexonenand_get_size() 3716 mtd->numeraseregions = this->dies << 1; in onenand_probe()
|
/linux/Documentation/ABI/testing/ |
A D | sysfs-class-mtd | 50 "Major" erase size for the device. If numeraseregions is 76 What: /sys/class/mtd/mtdX/numeraseregions
|
/linux/include/linux/mtd/ |
A D | mtd.h | 305 int numeraseregions; member
|
/linux/drivers/mtd/spi-nor/ |
A D | core.c | 3217 mtd->erasesize, mtd->erasesize / 1024, mtd->numeraseregions); in spi_nor_scan() 3219 if (mtd->numeraseregions) in spi_nor_scan() 3220 for (i = 0; i < mtd->numeraseregions; i++) in spi_nor_scan()
|
/linux/drivers/mtd/ubi/ |
A D | build.c | 601 if (ubi->mtd->numeraseregions != 0) { in io_init()
|
Completed in 44 milliseconds