/Linux-v4.19/Documentation/mmc/ |
D | mmc-dev-attrs.txt | 28 preferred_erase_size Preferred erase size 37 "erase_size" is the minimum size, in bytes, of an erase 38 operation. For MMC, "erase_size" is the erase group size 44 SD/MMC cards can erase an arbitrarily large area up to and 47 1. A single erase command will make all other I/O on 51 duration of the erase - which could be a several 53 2. To be able to inform the user of erase progress. 54 3. The erase timeout becomes too large to be very 55 useful. Because the erase timeout contains a margin 56 which is multiplied by the size of the erase area, [all …]
|
/Linux-v4.19/drivers/mtd/ |
D | mtdconcat.c | 342 struct erase_info *erase; in concat_erase() local 392 erase = kmalloc(sizeof (struct erase_info), GFP_KERNEL); in concat_erase() 394 if (!erase) in concat_erase() 397 *erase = *instr; in concat_erase() 406 if (subdev->size <= erase->addr) { in concat_erase() 407 erase->addr -= subdev->size; in concat_erase() 424 if (erase->addr + length > subdev->size) in concat_erase() 425 erase->len = subdev->size - erase->addr; in concat_erase() 427 erase->len = length; in concat_erase() 429 length -= erase->len; in concat_erase() [all …]
|
D | mtdoops.c | 93 struct erase_info erase; in mtdoops_erase_block() local 97 erase.addr = offset; in mtdoops_erase_block() 98 erase.len = mtd->erasesize; in mtdoops_erase_block() 100 ret = mtd_erase(mtd, &erase); in mtdoops_erase_block() 103 (unsigned long long)erase.addr, in mtdoops_erase_block() 104 (unsigned long long)erase.len, mtddev); in mtdoops_erase_block()
|
D | rfd_ftl.c | 272 struct erase_info *erase; in erase_block() local 275 erase = kmalloc(sizeof(struct erase_info), GFP_KERNEL); in erase_block() 276 if (!erase) in erase_block() 279 erase->addr = part->blocks[block].offset; in erase_block() 280 erase->len = part->block_size; in erase_block() 285 rc = mtd_erase(part->mbd.mtd, erase); in erase_block() 288 "failed\n", (unsigned long long)erase->addr, in erase_block() 289 (unsigned long long)erase->len, part->mbd.mtd->name); in erase_block() 316 kfree(erase); in erase_block()
|
D | mtdblock.c | 61 struct erase_info erase; in erase_write() local 68 erase.addr = pos; in erase_write() 69 erase.len = len; in erase_write() 71 ret = mtd_erase(mtd, &erase); in erase_write()
|
D | mtdchar.c | 703 struct erase_info *erase; in mtdchar_ioctl() local 708 erase=kzalloc(sizeof(struct erase_info),GFP_KERNEL); in mtdchar_ioctl() 709 if (!erase) in mtdchar_ioctl() 717 kfree(erase); in mtdchar_ioctl() 720 erase->addr = einfo64.start; in mtdchar_ioctl() 721 erase->len = einfo64.length; in mtdchar_ioctl() 727 kfree(erase); in mtdchar_ioctl() 730 erase->addr = einfo32.start; in mtdchar_ioctl() 731 erase->len = einfo32.length; in mtdchar_ioctl() 734 ret = mtd_erase(mtd, erase); in mtdchar_ioctl() [all …]
|
D | ftl.c | 333 struct erase_info *erase; in erase_xfer() local 342 erase=kmalloc(sizeof(struct erase_info), GFP_KERNEL); in erase_xfer() 343 if (!erase) in erase_xfer() 346 erase->addr = xfer->Offset; in erase_xfer() 347 erase->len = 1 << part->header.EraseUnitSize; in erase_xfer() 349 ret = mtd_erase(part->mbd.mtd, erase); in erase_xfer() 358 kfree(erase); in erase_xfer()
|
/Linux-v4.19/drivers/mtd/devices/ |
D | powernv_flash.c | 174 static int powernv_flash_erase(struct mtd_info *mtd, struct erase_info *erase) in powernv_flash_erase() argument 178 rc = powernv_flash_async_op(mtd, FLASH_OP_ERASE, erase->addr, in powernv_flash_erase() 179 erase->len, NULL, NULL); in powernv_flash_erase() 181 erase->fail_addr = erase->addr; in powernv_flash_erase()
|
D | bcm47xxsflash.c | 68 static int bcm47xxsflash_erase(struct mtd_info *mtd, struct erase_info *erase) in bcm47xxsflash_erase() argument 75 b47s->cc_write(b47s, BCMA_CC_FLASHADDR, erase->addr); in bcm47xxsflash_erase() 86 b47s->cc_write(b47s, BCMA_CC_FLASHADDR, erase->addr << 1); in bcm47xxsflash_erase()
|
/Linux-v4.19/drivers/net/ethernet/sfc/ |
D | mtd.c | 24 static int efx_mtd_erase(struct mtd_info *mtd, struct erase_info *erase) in efx_mtd_erase() argument 28 return efx->type->mtd_erase(mtd, erase->addr, erase->len); in efx_mtd_erase()
|
/Linux-v4.19/drivers/net/ethernet/sfc/falcon/ |
D | mtd.c | 24 static int ef4_mtd_erase(struct mtd_info *mtd, struct erase_info *erase) in ef4_mtd_erase() argument 28 return efx->type->mtd_erase(mtd, erase->addr, erase->len); in ef4_mtd_erase()
|
/Linux-v4.19/drivers/fpga/ |
D | machxo2-spi.c | 140 static const u8 erase[] = ISC_ERASE; in machxo2_cleanup() local 146 tx[0].tx_buf = &erase; in machxo2_cleanup() 147 tx[0].len = sizeof(erase); in machxo2_cleanup() 194 static const u8 erase[] = ISC_ERASE; in machxo2_write_init() local 214 tx[1].tx_buf = &erase; in machxo2_write_init() 215 tx[1].len = sizeof(erase); in machxo2_write_init()
|
/Linux-v4.19/drivers/mtd/ubi/ |
D | attach.c | 249 } else if (list == &ai->erase) { in add_to_list() 665 &ai->erase); in ubi_add_to_av() 688 cmp_res & 4, &ai->erase); in ubi_add_to_av() 767 destroy_av(ai, av, &ai->erase); in ubi_remove_av() 850 list_for_each_entry_safe(aeb, tmp_aeb, &ai->erase, u.list) { in ubi_early_get_peb() 986 UBI_UNKNOWN, 0, &ai->erase); in scan_peb() 990 UBI_UNKNOWN, 1, &ai->erase); in scan_peb() 1116 UBI_UNKNOWN, ec, 1, &ai->erase); in scan_peb() 1125 ec, 1, &ai->erase); in scan_peb() 1132 UBI_UNKNOWN, ec, 1, &ai->erase); in scan_peb() [all …]
|
D | Kconfig | 19 erase counter value and the lowest erase counter value of eraseblocks 21 wear leveling by means of moving data from eraseblock with low erase 22 counter to eraseblocks with high erase counter.
|
/Linux-v4.19/drivers/mtd/nand/ |
D | core.c | 134 return nand->ops->erase(nand, pos); in nanddev_erase() 196 if (!ops->erase || !ops->markbad || !ops->isbad) in nanddev_init()
|
/Linux-v4.19/lib/ |
D | rbtree_test.c | 68 static inline void erase(struct test_node *node, struct rb_root_cached *root) in erase() function 265 erase(nodes + j, &root); in rbtree_test_init() 332 erase(nodes + i, &root); in rbtree_test_init() 343 erase(nodes + j, &root); in rbtree_test_init()
|
/Linux-v4.19/drivers/misc/eeprom/ |
D | eeprom_93xx46.c | 334 int erase = 0, ret; in eeprom_93xx46_store_erase() local 336 sscanf(buf, "%d", &erase); in eeprom_93xx46_store_erase() 337 if (erase) { in eeprom_93xx46_store_erase() 350 static DEVICE_ATTR(erase, S_IWUSR, NULL, eeprom_93xx46_store_erase);
|
/Linux-v4.19/Documentation/ABI/testing/ |
D | sysfs-class-mtd | 50 "Major" erase size for the device. If numeraseregions is 65 0x1000: MTD_NO_ERASE - no erase necessary 82 provides the total number of erase regions. Otherwise, 147 return code as an indication that an erase block may be 164 bitflip_threshold should be low enough to detect genuine erase
|
/Linux-v4.19/fs/jffs2/ |
D | Makefile | 11 jffs2-y += symlink.o build.o erase.o background.o fs.o writev.o
|
D | README.Locking | 79 As the MTD API no longer permits erase-completion callback functions 86 the list are protected by the file mutex f->sem. But the erase code 124 This mutex is only used by the erase code which frees obsolete node 131 heavyweight lock was required to prevent the erase code from freeing
|
/Linux-v4.19/Documentation/devicetree/bindings/mtd/ |
D | mtd-physmap.txt | 42 - erase-size : The chip's physical erase block size in bytes.
|
/Linux-v4.19/drivers/scsi/ |
D | gdth_ioctl.h | 205 int erase; /* erase event ? */ member 315 int erase; /* erase event? */ member
|
/Linux-v4.19/Documentation/filesystems/ |
D | ubifs.txt | 19 eraseblock, write to some offset within an eraseblock, and erase a whole 24 4 Eraseblocks become worn out after some number of erase cycles - 40 they have read/write/erase operations, but UBI devices are devoid of
|
/Linux-v4.19/drivers/input/ |
D | ff-core.c | 199 if (ff->erase) { in erase_effect() 200 error = ff->erase(dev, effect_id); in erase_effect()
|
/Linux-v4.19/include/linux/ |
D | pstore.h | 188 int (*erase)(struct pstore_record *record); member
|