/Linux-v5.4/Documentation/driver-api/mmc/ |
D | mmc-dev-attrs.rst | 35 preferred_erase_size Preferred erase size 47 "erase_size" is the minimum size, in bytes, of an erase 48 operation. For MMC, "erase_size" is the erase group size 54 SD/MMC cards can erase an arbitrarily large area up to and 58 1. A single erase command will make all other I/O on 62 duration of the erase - which could be a several 64 2. To be able to inform the user of erase progress. 65 3. The erase timeout becomes too large to be very 66 useful. Because the erase timeout contains a margin 67 which is multiplied by the size of the erase area, [all …]
|
/Linux-v5.4/drivers/mtd/ |
D | mtdconcat.c | 328 struct erase_info *erase; in concat_erase() local 378 erase = kmalloc(sizeof (struct erase_info), GFP_KERNEL); in concat_erase() 380 if (!erase) in concat_erase() 383 *erase = *instr; in concat_erase() 392 if (subdev->size <= erase->addr) { in concat_erase() 393 erase->addr -= subdev->size; in concat_erase() 410 if (erase->addr + length > subdev->size) in concat_erase() 411 erase->len = subdev->size - erase->addr; in concat_erase() 413 erase->len = length; in concat_erase() 415 length -= erase->len; in concat_erase() [all …]
|
D | mtdoops.c | 79 struct erase_info erase; in mtdoops_erase_block() local 83 erase.addr = offset; in mtdoops_erase_block() 84 erase.len = mtd->erasesize; in mtdoops_erase_block() 86 ret = mtd_erase(mtd, &erase); in mtdoops_erase_block() 89 (unsigned long long)erase.addr, in mtdoops_erase_block() 90 (unsigned long long)erase.len, mtddev); in mtdoops_erase_block()
|
D | rfd_ftl.c | 273 struct erase_info *erase; in erase_block() local 276 erase = kmalloc(sizeof(struct erase_info), GFP_KERNEL); in erase_block() 277 if (!erase) in erase_block() 280 erase->addr = part->blocks[block].offset; in erase_block() 281 erase->len = part->block_size; in erase_block() 286 rc = mtd_erase(part->mbd.mtd, erase); in erase_block() 289 "failed\n", (unsigned long long)erase->addr, in erase_block() 290 (unsigned long long)erase->len, part->mbd.mtd->name); in erase_block() 317 kfree(erase); in erase_block()
|
D | mtdblock.c | 47 struct erase_info erase; in erase_write() local 54 erase.addr = pos; in erase_write() 55 erase.len = len; in erase_write() 57 ret = mtd_erase(mtd, &erase); in erase_write()
|
D | mtdchar.c | 689 struct erase_info *erase; in mtdchar_ioctl() local 694 erase=kzalloc(sizeof(struct erase_info),GFP_KERNEL); in mtdchar_ioctl() 695 if (!erase) in mtdchar_ioctl() 703 kfree(erase); in mtdchar_ioctl() 706 erase->addr = einfo64.start; in mtdchar_ioctl() 707 erase->len = einfo64.length; in mtdchar_ioctl() 713 kfree(erase); in mtdchar_ioctl() 716 erase->addr = einfo32.start; in mtdchar_ioctl() 717 erase->len = einfo32.length; in mtdchar_ioctl() 720 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-v5.4/drivers/mtd/devices/ |
D | powernv_flash.c | 165 static int powernv_flash_erase(struct mtd_info *mtd, struct erase_info *erase) in powernv_flash_erase() argument 169 rc = powernv_flash_async_op(mtd, FLASH_OP_ERASE, erase->addr, in powernv_flash_erase() 170 erase->len, NULL, NULL); in powernv_flash_erase() 172 erase->fail_addr = erase->addr; in powernv_flash_erase()
|
D | bcm47xxsflash.c | 69 static int bcm47xxsflash_erase(struct mtd_info *mtd, struct erase_info *erase) in bcm47xxsflash_erase() argument 76 b47s->cc_write(b47s, BCMA_CC_FLASHADDR, erase->addr); in bcm47xxsflash_erase() 87 b47s->cc_write(b47s, BCMA_CC_FLASHADDR, erase->addr << 1); in bcm47xxsflash_erase()
|
/Linux-v5.4/drivers/mtd/spi-nor/ |
D | spi-nor.c | 608 struct spi_nor_erase_type *erase; in spi_nor_set_4byte_opcodes() local 612 erase = &map->erase_type[i]; in spi_nor_set_4byte_opcodes() 613 erase->opcode = in spi_nor_set_4byte_opcodes() 614 spi_nor_convert_3to4_erase(erase->opcode); in spi_nor_set_4byte_opcodes() 938 if (nor->erase) in spi_nor_erase_sector() 939 return nor->erase(nor, addr); in spi_nor_erase_sector() 972 static u64 spi_nor_div_by_erase_size(const struct spi_nor_erase_type *erase, in spi_nor_div_by_erase_size() argument 976 *remainder = (u32)dividend & erase->size_mask; in spi_nor_div_by_erase_size() 977 return dividend >> erase->size_shift; in spi_nor_div_by_erase_size() 998 const struct spi_nor_erase_type *erase; in spi_nor_find_best_erase_type() local [all …]
|
/Linux-v5.4/drivers/net/ethernet/sfc/ |
D | mtd.c | 21 static int efx_mtd_erase(struct mtd_info *mtd, struct erase_info *erase) in efx_mtd_erase() argument 25 return efx->type->mtd_erase(mtd, erase->addr, erase->len); in efx_mtd_erase()
|
/Linux-v5.4/drivers/net/ethernet/sfc/falcon/ |
D | mtd.c | 21 static int ef4_mtd_erase(struct mtd_info *mtd, struct erase_info *erase) in ef4_mtd_erase() argument 25 return efx->type->mtd_erase(mtd, erase->addr, erase->len); in ef4_mtd_erase()
|
/Linux-v5.4/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-v5.4/Documentation/devicetree/bindings/mtd/partitions/ |
D | brcm,bcm963xx-cfe-nor-partitions.txt | 5 NOR. The first erase block used for the CFE bootloader, the last for an 8 header found at beginning of the second erase block, containing the rootfs and
|
/Linux-v5.4/Documentation/driver-api/nvdimm/ |
D | security.rst | 11 "unlock unit", "freeze lock", "secure erase", and "overwrite". A security_ops 31 erase <keyid> - delete existing user encryption key. 98 The command format for doing a secure erase is: 99 erase <keyid> 131 The command format for doing a master erase is: 134 This command has the same operating mechanism as erase except the master
|
/Linux-v5.4/drivers/mtd/ubi/ |
D | attach.c | 236 } else if (list == &ai->erase) { in add_to_list() 652 &ai->erase); in ubi_add_to_av() 675 cmp_res & 4, &ai->erase); in ubi_add_to_av() 754 destroy_av(ai, av, &ai->erase); in ubi_remove_av() 837 list_for_each_entry_safe(aeb, tmp_aeb, &ai->erase, u.list) { in ubi_early_get_peb() 973 UBI_UNKNOWN, 0, &ai->erase); in scan_peb() 977 UBI_UNKNOWN, 1, &ai->erase); in scan_peb() 1104 UBI_UNKNOWN, ec, 1, &ai->erase); in scan_peb() 1113 ec, 1, &ai->erase); in scan_peb() 1120 UBI_UNKNOWN, ec, 1, &ai->erase); in scan_peb() [all …]
|
D | Kconfig | 20 erase counter value and the lowest erase counter value of eraseblocks 22 wear leveling by means of moving data from eraseblock with low erase 23 counter to eraseblocks with high erase counter.
|
/Linux-v5.4/lib/ |
D | rbtree_test.c | 69 static inline void erase(struct test_node *node, struct rb_root_cached *root) in erase() function 263 erase(nodes + j, &root); in rbtree_test_init() 330 erase(nodes + i, &root); in rbtree_test_init() 341 erase(nodes + j, &root); in rbtree_test_init()
|
/Linux-v5.4/drivers/misc/eeprom/ |
D | eeprom_93xx46.c | 331 int erase = 0, ret; in eeprom_93xx46_store_erase() local 333 sscanf(buf, "%d", &erase); in eeprom_93xx46_store_erase() 334 if (erase) { in eeprom_93xx46_store_erase() 347 static DEVICE_ATTR(erase, S_IWUSR, NULL, eeprom_93xx46_store_erase);
|
/Linux-v5.4/drivers/mtd/nand/ |
D | core.c | 134 return nand->ops->erase(nand, pos); in nanddev_erase() 230 if (!ops->erase || !ops->markbad || !ops->isbad) in nanddev_init()
|
/Linux-v5.4/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-v5.4/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-v5.4/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-v5.4/drivers/input/ |
D | ff-core.c | 187 if (ff->erase) { in erase_effect() 188 error = ff->erase(dev, effect_id); in erase_effect()
|