/linux-4.4.14/Documentation/mmc/ |
D | mmc-dev-attrs.txt | 28 preferred_erase_size Preferred erase size 34 "erase_size" is the minimum size, in bytes, of an erase 35 operation. For MMC, "erase_size" is the erase group size 41 SD/MMC cards can erase an arbitrarily large area up to and 44 1. A single erase command will make all other I/O on 48 duration of the erase - which could be a several 50 2. To be able to inform the user of erase progress. 51 3. The erase timeout becomes too large to be very 52 useful. Because the erase timeout contains a margin 53 which is multiplied by the size of the erase area, [all …]
|
/linux-4.4.14/drivers/mtd/devices/ |
D | powernv_flash.c | 147 static int powernv_flash_erase(struct mtd_info *mtd, struct erase_info *erase) in powernv_flash_erase() argument 151 erase->state = MTD_ERASING; in powernv_flash_erase() 154 rc = powernv_flash_async_op(mtd, FLASH_OP_ERASE, erase->addr, in powernv_flash_erase() 155 erase->len, NULL, NULL); in powernv_flash_erase() 158 erase->fail_addr = erase->addr; in powernv_flash_erase() 159 erase->state = MTD_ERASE_FAILED; in powernv_flash_erase() 161 erase->state = MTD_ERASE_DONE; in powernv_flash_erase() 163 mtd_erase_callback(erase); in powernv_flash_erase()
|
D | bcm47xxsflash.c | 67 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() 93 erase->state = MTD_ERASE_FAILED; in bcm47xxsflash_erase() 95 erase->state = MTD_ERASE_DONE; in bcm47xxsflash_erase() 97 if (erase->callback) in bcm47xxsflash_erase() 98 erase->callback(erase); in bcm47xxsflash_erase()
|
D | m25p80.c | 197 nor->erase = m25p80_erase; in m25p_probe()
|
D | Kconfig | 165 int "MTDRAM erase block size in KiB" 169 This allows you to configure the size of the erase blocks in the
|
/linux-4.4.14/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 29 rc = efx->type->mtd_erase(mtd, erase->addr, erase->len); in efx_mtd_erase() 31 erase->state = MTD_ERASE_DONE; in efx_mtd_erase() 33 erase->state = MTD_ERASE_FAILED; in efx_mtd_erase() 34 erase->fail_addr = MTD_FAIL_ADDR_UNKNOWN; in efx_mtd_erase() 36 mtd_erase_callback(erase); in efx_mtd_erase()
|
/linux-4.4.14/drivers/mtd/ |
D | mtdconcat.c | 341 static int concat_dev_erase(struct mtd_info *mtd, struct erase_info *erase) in concat_dev_erase() argument 352 erase->mtd = mtd; in concat_dev_erase() 353 erase->callback = concat_erase_callback; in concat_dev_erase() 354 erase->priv = (unsigned long) &waitq; in concat_dev_erase() 360 err = mtd_erase(mtd, erase); in concat_dev_erase() 364 if (erase->state != MTD_ERASE_DONE in concat_dev_erase() 365 && erase->state != MTD_ERASE_FAILED) in concat_dev_erase() 370 err = (erase->state == MTD_ERASE_FAILED) ? -EIO : 0; in concat_dev_erase() 381 struct erase_info *erase; in concat_erase() local 431 erase = kmalloc(sizeof (struct erase_info), GFP_KERNEL); in concat_erase() [all …]
|
D | rfd_ftl.c | 269 static void erase_callback(struct erase_info *erase) in erase_callback() argument 276 part = (struct partition*)erase->priv; in erase_callback() 278 i = (u32)erase->addr / part->block_size; in erase_callback() 279 if (i >= part->total_blocks || part->blocks[i].offset != erase->addr || in erase_callback() 280 erase->addr > UINT_MAX) { in erase_callback() 282 "on '%s'\n", (unsigned long long)erase->addr, part->mbd.mtd->name); in erase_callback() 286 if (erase->state != MTD_ERASE_DONE) { in erase_callback() 288 "state %d\n", (unsigned long long)erase->addr, in erase_callback() 289 part->mbd.mtd->name, erase->state); in erase_callback() 295 kfree(erase); in erase_callback() [all …]
|
D | mtdoops.c | 99 struct erase_info erase; in mtdoops_erase_block() local 106 erase.mtd = mtd; in mtdoops_erase_block() 107 erase.callback = mtdoops_erase_callback; in mtdoops_erase_block() 108 erase.addr = offset; in mtdoops_erase_block() 109 erase.len = mtd->erasesize; in mtdoops_erase_block() 110 erase.priv = (u_long)&wait_q; in mtdoops_erase_block() 115 ret = mtd_erase(mtd, &erase); in mtdoops_erase_block() 120 (unsigned long long)erase.addr, in mtdoops_erase_block() 121 (unsigned long long)erase.len, mtddev); in mtdoops_erase_block()
|
D | mtdblock.c | 67 struct erase_info erase; in erase_write() local 78 erase.mtd = mtd; in erase_write() 79 erase.callback = erase_callback; in erase_write() 80 erase.addr = pos; in erase_write() 81 erase.len = len; in erase_write() 82 erase.priv = (u_long)&wait_q; in erase_write() 87 ret = mtd_erase(mtd, &erase); in erase_write()
|
D | mtdchar.c | 652 struct erase_info *erase; in mtdchar_ioctl() local 657 erase=kzalloc(sizeof(struct erase_info),GFP_KERNEL); in mtdchar_ioctl() 658 if (!erase) in mtdchar_ioctl() 671 kfree(erase); in mtdchar_ioctl() 674 erase->addr = einfo64.start; in mtdchar_ioctl() 675 erase->len = einfo64.length; in mtdchar_ioctl() 681 kfree(erase); in mtdchar_ioctl() 684 erase->addr = einfo32.start; in mtdchar_ioctl() 685 erase->len = einfo32.length; in mtdchar_ioctl() 687 erase->mtd = mtd; in mtdchar_ioctl() [all …]
|
D | ftl.c | 338 struct erase_info *erase; in erase_xfer() local 347 erase=kmalloc(sizeof(struct erase_info), GFP_KERNEL); in erase_xfer() 348 if (!erase) in erase_xfer() 351 erase->mtd = part->mbd.mtd; in erase_xfer() 352 erase->callback = ftl_erase_callback; in erase_xfer() 353 erase->addr = xfer->Offset; in erase_xfer() 354 erase->len = 1 << part->header.EraseUnitSize; in erase_xfer() 355 erase->priv = (u_long)part; in erase_xfer() 357 ret = mtd_erase(part->mbd.mtd, erase); in erase_xfer() 362 kfree(erase); in erase_xfer() [all …]
|
D | mtdswap.c | 551 struct erase_info erase; in mtdswap_erase_block() local 562 memset(&erase, 0, sizeof(struct erase_info)); in mtdswap_erase_block() 564 erase.mtd = mtd; in mtdswap_erase_block() 565 erase.callback = mtdswap_erase_callback; in mtdswap_erase_block() 566 erase.addr = mtdswap_eb_offset(d, eb); in mtdswap_erase_block() 567 erase.len = mtd->erasesize; in mtdswap_erase_block() 568 erase.priv = (u_long)&wq; in mtdswap_erase_block() 570 ret = mtd_erase(mtd, &erase); in mtdswap_erase_block() 575 erase.addr, mtd->name); in mtdswap_erase_block() 581 erase.addr, mtd->name); in mtdswap_erase_block() [all …]
|
D | sm_ftl.c | 460 struct erase_info erase; in sm_erase_block() local 462 erase.mtd = mtd; in sm_erase_block() 463 erase.callback = sm_erase_callback; in sm_erase_block() 464 erase.addr = sm_mkoffset(ftl, zone_num, block, 0); in sm_erase_block() 465 erase.len = ftl->block_size; in sm_erase_block() 466 erase.priv = (u_long)ftl; in sm_erase_block() 478 if (mtd_erase(mtd, &erase)) { in sm_erase_block() 484 if (erase.state == MTD_ERASE_PENDING) in sm_erase_block() 487 if (erase.state != MTD_ERASE_DONE) { in sm_erase_block()
|
D | Kconfig | 30 'images' in flash devices by putting a table one of the erase 56 erase block number. A negative value specifies a number of 171 Although most flash chips have an erase size too large to be useful 181 Later, it may be extended to perform read/erase/modify/write cycles 309 The driver provides wear leveling by storing erase counter into the
|
/linux-4.4.14/drivers/mtd/ubi/ |
D | attach.c | 126 } else if (list == &ai->erase) { in add_to_list() 538 &ai->erase); in ubi_add_to_av() 561 cmp_res & 4, &ai->erase); in ubi_add_to_av() 641 list_add_tail(&aeb->u.list, &ai->erase); in ubi_remove_av() 728 list_for_each_entry_safe(aeb, tmp_aeb, &ai->erase, u.list) { in ubi_early_get_peb() 848 UBI_UNKNOWN, 0, &ai->erase); in scan_peb() 852 UBI_UNKNOWN, 1, &ai->erase); in scan_peb() 964 UBI_UNKNOWN, ec, 1, &ai->erase); in scan_peb() 973 ec, 1, &ai->erase); in scan_peb() 980 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.
|
D | fastmap.c | 316 list_add_tail(&victim->u.list, &ai->erase); in update_vol() 335 list_add_tail(&new_aeb->u.list, &ai->erase); in update_vol() 575 list_for_each_entry(aeb, &ai->erase, u.list) in count_fastmap_pebs() 725 add_aeb(ai, &ai->erase, be32_to_cpu(fmec->pnum), in ubi_attach_fastmap() 821 list_move_tail(&tmp_aeb->u.list, &ai->erase); in ubi_attach_fastmap()
|
D | ubi.h | 728 struct list_head erase; member
|
D | vtbl.c | 351 list_add(&new_aeb->u.list, &ai->erase); in create_vtbl()
|
D | eba.c | 1451 ubi_move_aeb_to_list(av, aeb, &ai->erase); in ubi_eba_init()
|
D | wl.c | 1522 list_for_each_entry_safe(aeb, tmp, &ai->erase, u.list) {
|
/linux-4.4.14/drivers/misc/eeprom/ |
D | eeprom_93xx46.c | 279 int erase = 0, ret; in eeprom_93xx46_store_erase() local 281 sscanf(buf, "%d", &erase); in eeprom_93xx46_store_erase() 282 if (erase) { in eeprom_93xx46_store_erase() 295 static DEVICE_ATTR(erase, S_IWUSR, NULL, eeprom_93xx46_store_erase);
|
D | Kconfig | 80 erase the whole EEPROM. 95 erase the whole EEPROM.
|
/linux-4.4.14/drivers/mtd/spi-nor/ |
D | Kconfig | 11 bool "Use small 4096 B erase sectors" 22 4096 B erase size (e.g. UBIFS requires 15 KiB as a minimum).
|
D | nxp-spifi.c | 337 spifi->nor.erase = nxp_spifi_erase; in nxp_spifi_setup_flash()
|
D | spi-nor.c | 374 if (nor->erase(nor, addr)) { in spi_nor_erase() 1097 !nor->read_reg || !nor->write_reg || !nor->erase) { in spi_nor_check()
|
D | fsl-quadspi.c | 1024 nor->erase = fsl_qspi_erase; in fsl_qspi_probe()
|
/linux-4.4.14/Documentation/DocBook/ |
D | mtdnand.xml.db | 81 API-single-erase 82 API-nand-erase 83 API-nand-erase-nand
|
D | device-drivers.xml.db | 1011 API-input-ff-erase
|
/linux-4.4.14/lib/ |
D | rbtree_test.c | 41 static inline void erase(struct test_node *node, struct rb_root *root) in erase() function 191 erase(nodes + j, &root); in rbtree_test_init() 208 erase(nodes + j, &root); in rbtree_test_init()
|
/linux-4.4.14/drivers/nvme/host/ |
D | lightnvm.c | 145 struct nvme_nvm_erase_blk erase; member 512 c.erase.opcode = NVM_OP_ERASE; in nvme_nvm_erase_block() 513 c.erase.nsid = cpu_to_le32(ns->ns_id); in nvme_nvm_erase_block() 514 c.erase.spba = cpu_to_le64(rqd->ppa_addr.ppa); in nvme_nvm_erase_block() 515 c.erase.length = cpu_to_le16(rqd->nr_pages - 1); in nvme_nvm_erase_block()
|
/linux-4.4.14/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
|
D | sysfs-c2port | 66 the "erase" command on the on-board flash of the connected
|
D | sysfs-block-bcache | 121 cache creation time; should match the erase block size of the
|
/linux-4.4.14/arch/s390/kernel/ |
D | relocate_kernel.S | 96 sr %r1,%r1 # erase register r1 97 sr %r2,%r2 # erase register r2
|
/linux-4.4.14/fs/jffs2/ |
D | Makefile | 10 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-4.4.14/include/linux/ |
D | pstore.h | 70 int (*erase)(enum pstore_type_id type, u64 id, member
|
D | input.h | 506 int (*erase)(struct input_dev *dev, int effect_id); member
|
/linux-4.4.14/Documentation/devicetree/bindings/mtd/ |
D | mtd-physmap.txt | 42 - erase-size : The chip's physical erase block size in bytes.
|
/linux-4.4.14/drivers/scsi/ |
D | gdth_ioctl.h | 204 int erase; /* erase event ? */ member 314 int erase; /* erase event? */ member
|
D | gdth.c | 4069 if (evt.erase == 0xff) { in ioc_event() 4082 } else if (evt.erase == 0xfe) { in ioc_event() 4084 } else if (evt.erase == 0) { in ioc_event() 4087 gdth_readapp_event(ha, evt.erase, &evt.event); in ioc_event()
|
/linux-4.4.14/drivers/input/ |
D | ff-core.c | 199 if (ff->erase) { in erase_effect() 200 error = ff->erase(dev, effect_id); in erase_effect()
|
/linux-4.4.14/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
|
D | logfs.txt | 164 garbage collection. If a stale segments erase count is significantly 165 lower than the active segments' erase counts, it will be picked. Wear
|
/linux-4.4.14/include/linux/mtd/ |
D | spi-nor.h | 179 int (*erase)(struct spi_nor *nor, loff_t offs); member
|
D | nand.h | 661 int (*erase)(struct mtd_info *mtd, int page); member
|
/linux-4.4.14/fs/pstore/ |
D | inode.c | 201 if (p->psi->erase) in pstore_unlink() 202 p->psi->erase(p->type, p->id, p->count, in pstore_unlink()
|
D | ram.c | 370 .erase = ramoops_pstore_erase,
|
/linux-4.4.14/include/linux/mmc/ |
D | mmc.h | 207 } erase; member
|
/linux-4.4.14/Documentation/misc-devices/ |
D | c2port.txt | 80 erase it:
|
/linux-4.4.14/fs/logfs/ |
D | dev_mtd.c | 258 .erase = logfs_mtd_erase,
|
D | dev_bdev.c | 291 .erase = bdev_erase,
|
D | logfs.h | 156 int (*erase)(struct super_block *sb, loff_t ofs, size_t len, member
|
D | segment.c | 35 return super->s_devops->erase(sb, (u64)segno << super->s_segshift, in logfs_erase_segment()
|
/linux-4.4.14/Documentation/s390/ |
D | DASD | 42 device. This will erase any data on that volume including IBM volume
|
/linux-4.4.14/drivers/firmware/efi/ |
D | efi-pstore.c | 364 .erase = efi_pstore_erase,
|
/linux-4.4.14/Documentation/arm/SA1100/ |
D | Assabet | 168 fis erase -f 0x500E0000 -l 0x2e0000 208 many tools to deal with flash memory as well, to erase it for example. JFFS2
|
/linux-4.4.14/drivers/input/joystick/iforce/ |
D | iforce-main.c | 440 ff->erase = iforce_erase_effect; in iforce_init_device()
|
/linux-4.4.14/Documentation/sound/alsa/ |
D | OSS-Emulation.txt | 193 Also, for clearing all the current configuration, send "erase" command 196 % echo "erase" > /proc/asound/card0/pcm0p/oss
|
D | ALSA-Configuration.txt | 2253 String "erase" - erase all additional information about OSS applications 2302 - erase 2304 This will erase the all pre-allocated buffers which are not in
|
/linux-4.4.14/Documentation/cris/ |
D | README | 119 Axis flash: Swapping erase regions for broken CFI table.
|
/linux-4.4.14/Documentation/scsi/ |
D | st.txt | 356 not open for writing for, e.g., erase). 380 MTERASE Erase tape. If the argument is zero, the short erase command 381 is used. The long erase command is used with all other values 493 (3.9 hours). For erase this value is further multiplied by
|
/linux-4.4.14/Documentation/ABI/stable/ |
D | sysfs-class-ubi | 79 Maximum physical eraseblock erase counter value.
|
/linux-4.4.14/Documentation/ |
D | circular-buffers.txt | 223 before it writes the new tail pointer, which will erase the item.
|
D | bcache.txt | 10 in erase block sized buckets, and it uses a hybrid btree/log to track cached 12 designed to avoid random writes at all costs; it fills up an erase block
|
D | kmemleak.txt | 154 kmemleak_erase - erase an old value in a pointer variable
|
D | nommu-mmap.txt | 242 instance if they're in programming or erase mode, you might see the
|
D | memory-hotplug.txt | 62 The First phase is to communicate hardware/firmware and make/erase
|
/linux-4.4.14/Documentation/filesystems/caching/ |
D | cachefiles.txt | 306 Note that CacheFiles will erase from the cache any file it doesn't recognise or 364 may scan directories, stat files and erase files and directories. It may
|
/linux-4.4.14/arch/cris/arch-v10/ |
D | README.mm | 98 necessary because of the special write/erase sequences. Also, the
|
/linux-4.4.14/drivers/input/misc/ |
D | uinput.c | 272 dev->ff->erase = uinput_dev_erase_effect; in uinput_create_device()
|
/linux-4.4.14/drivers/video/console/ |
D | fbcon.c | 567 int cnt, erase = vc->vc_video_erase_char, step; in fbcon_prepare_logo() local 581 erase &= ~0x400; in fbcon_prepare_logo() 594 scr_memsetw(save, erase, logo_lines * new_cols * 2); in fbcon_prepare_logo() 619 erase, in fbcon_prepare_logo()
|
/linux-4.4.14/Documentation/usb/ |
D | gadget_serial.txt | 264 Under "Modem and dialing" erase all the modem and dialing strings.
|
/linux-4.4.14/arch/arm/boot/dts/ |
D | am335x-evm.dts | 552 * NAND flash this is equal to size of erase-block */
|
D | am43x-epos-evm.dts | 595 * NAND flash this is equal to size of erase-block */
|
D | dra72-evm.dts | 525 * NAND flash this is equal to size of erase-block */
|
D | dra7-evm.dts | 773 * NAND flash this is equal to size of erase-block */
|
D | am437x-gp-evm.dts | 851 * NAND flash this is equal to size of erase-block */
|
/linux-4.4.14/Documentation/networking/ |
D | e1000e.txt | 235 If set to 1, configure the hardware to ignore all write/erase cycles to the
|
/linux-4.4.14/drivers/acpi/apei/ |
D | erst.c | 947 .erase = erst_clearer
|
/linux-4.4.14/drivers/mtd/nand/ |
D | docg4.c | 1241 nand->erase = docg4_erase_block; in init_mtd_structs()
|
D | denali.c | 1600 denali->nand.erase = denali_erase; in denali_init()
|
D | Kconfig | 293 first five erase blocks (256KiB each) are write-protected, followed
|
D | nand_base.c | 2936 status = chip->erase(mtd, page & chip->pagemask); in nand_erase_nand() 3915 chip->erase = single_erase; in nand_get_flash_type()
|
/linux-4.4.14/drivers/mmc/card/ |
D | mmc_test.c | 1494 static int mmc_test_area_init(struct mmc_test_card *test, int erase, int fill) in mmc_test_area_init() argument 1544 if (erase) { in mmc_test_area_init()
|
/linux-4.4.14/drivers/hid/usbhid/ |
D | hid-pidff.c | 1319 ff->erase = pidff_erase_effect; in hid_pidff_init()
|
/linux-4.4.14/drivers/scsi/bfa/ |
D | bfa_ioc.c | 4359 struct bfi_flash_erase_rsp_s *erase; in bfa_flash_intr() member 4408 status = be32_to_cpu(m.erase->status); in bfa_flash_intr()
|
/linux-4.4.14/arch/m68k/ifpsp060/src/ |
D | fplsp.S | 7633 add.l &0xc,%sp # erase |X| from stack 9543 addq.l &0x4,%sp # erase exp(X)
|
D | fpsp.S | 4418 addq.l &0x4,%sp # erase sludge
|