Home
last modified time | relevance | path

Searched refs:erase (Results 1 – 91 of 91) sorted by relevance

/linux-4.4.14/Documentation/mmc/
Dmmc-dev-attrs.txt28 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/
Dpowernv_flash.c147 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()
Dbcm47xxsflash.c67 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()
Dm25p80.c197 nor->erase = m25p80_erase; in m25p_probe()
DKconfig165 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/
Dmtd.c24 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/
Dmtdconcat.c341 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 …]
Drfd_ftl.c269 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 …]
Dmtdoops.c99 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()
Dmtdblock.c67 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()
Dmtdchar.c652 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 …]
Dftl.c338 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 …]
Dmtdswap.c551 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 …]
Dsm_ftl.c460 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()
DKconfig30 '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/
Dattach.c126 } 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 …]
DKconfig19 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.
Dfastmap.c316 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()
Dubi.h728 struct list_head erase; member
Dvtbl.c351 list_add(&new_aeb->u.list, &ai->erase); in create_vtbl()
Deba.c1451 ubi_move_aeb_to_list(av, aeb, &ai->erase); in ubi_eba_init()
Dwl.c1522 list_for_each_entry_safe(aeb, tmp, &ai->erase, u.list) {
/linux-4.4.14/drivers/misc/eeprom/
Deeprom_93xx46.c279 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);
DKconfig80 erase the whole EEPROM.
95 erase the whole EEPROM.
/linux-4.4.14/drivers/mtd/spi-nor/
DKconfig11 bool "Use small 4096 B erase sectors"
22 4096 B erase size (e.g. UBIFS requires 15 KiB as a minimum).
Dnxp-spifi.c337 spifi->nor.erase = nxp_spifi_erase; in nxp_spifi_setup_flash()
Dspi-nor.c374 if (nor->erase(nor, addr)) { in spi_nor_erase()
1097 !nor->read_reg || !nor->write_reg || !nor->erase) { in spi_nor_check()
Dfsl-quadspi.c1024 nor->erase = fsl_qspi_erase; in fsl_qspi_probe()
/linux-4.4.14/Documentation/DocBook/
Dmtdnand.xml.db81 API-single-erase
82 API-nand-erase
83 API-nand-erase-nand
Ddevice-drivers.xml.db1011 API-input-ff-erase
/linux-4.4.14/lib/
Drbtree_test.c41 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/
Dlightnvm.c145 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/
Dsysfs-class-mtd50 "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
Dsysfs-c2port66 the "erase" command on the on-board flash of the connected
Dsysfs-block-bcache121 cache creation time; should match the erase block size of the
/linux-4.4.14/arch/s390/kernel/
Drelocate_kernel.S96 sr %r1,%r1 # erase register r1
97 sr %r2,%r2 # erase register r2
/linux-4.4.14/fs/jffs2/
DMakefile10 jffs2-y += symlink.o build.o erase.o background.o fs.o writev.o
DREADME.Locking79 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/
Dpstore.h70 int (*erase)(enum pstore_type_id type, u64 id, member
Dinput.h506 int (*erase)(struct input_dev *dev, int effect_id); member
/linux-4.4.14/Documentation/devicetree/bindings/mtd/
Dmtd-physmap.txt42 - erase-size : The chip's physical erase block size in bytes.
/linux-4.4.14/drivers/scsi/
Dgdth_ioctl.h204 int erase; /* erase event ? */ member
314 int erase; /* erase event? */ member
Dgdth.c4069 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/
Dff-core.c199 if (ff->erase) { in erase_effect()
200 error = ff->erase(dev, effect_id); in erase_effect()
/linux-4.4.14/Documentation/filesystems/
Dubifs.txt19 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
Dlogfs.txt164 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/
Dspi-nor.h179 int (*erase)(struct spi_nor *nor, loff_t offs); member
Dnand.h661 int (*erase)(struct mtd_info *mtd, int page); member
/linux-4.4.14/fs/pstore/
Dinode.c201 if (p->psi->erase) in pstore_unlink()
202 p->psi->erase(p->type, p->id, p->count, in pstore_unlink()
Dram.c370 .erase = ramoops_pstore_erase,
/linux-4.4.14/include/linux/mmc/
Dmmc.h207 } erase; member
/linux-4.4.14/Documentation/misc-devices/
Dc2port.txt80 erase it:
/linux-4.4.14/fs/logfs/
Ddev_mtd.c258 .erase = logfs_mtd_erase,
Ddev_bdev.c291 .erase = bdev_erase,
Dlogfs.h156 int (*erase)(struct super_block *sb, loff_t ofs, size_t len, member
Dsegment.c35 return super->s_devops->erase(sb, (u64)segno << super->s_segshift, in logfs_erase_segment()
/linux-4.4.14/Documentation/s390/
DDASD42 device. This will erase any data on that volume including IBM volume
/linux-4.4.14/drivers/firmware/efi/
Defi-pstore.c364 .erase = efi_pstore_erase,
/linux-4.4.14/Documentation/arm/SA1100/
DAssabet168 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/
Diforce-main.c440 ff->erase = iforce_erase_effect; in iforce_init_device()
/linux-4.4.14/Documentation/sound/alsa/
DOSS-Emulation.txt193 Also, for clearing all the current configuration, send "erase" command
196 % echo "erase" > /proc/asound/card0/pcm0p/oss
DALSA-Configuration.txt2253 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/
DREADME119 Axis flash: Swapping erase regions for broken CFI table.
/linux-4.4.14/Documentation/scsi/
Dst.txt356 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/
Dsysfs-class-ubi79 Maximum physical eraseblock erase counter value.
/linux-4.4.14/Documentation/
Dcircular-buffers.txt223 before it writes the new tail pointer, which will erase the item.
Dbcache.txt10 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
Dkmemleak.txt154 kmemleak_erase - erase an old value in a pointer variable
Dnommu-mmap.txt242 instance if they're in programming or erase mode, you might see the
Dmemory-hotplug.txt62 The First phase is to communicate hardware/firmware and make/erase
/linux-4.4.14/Documentation/filesystems/caching/
Dcachefiles.txt306 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/
DREADME.mm98 necessary because of the special write/erase sequences. Also, the
/linux-4.4.14/drivers/input/misc/
Duinput.c272 dev->ff->erase = uinput_dev_erase_effect; in uinput_create_device()
/linux-4.4.14/drivers/video/console/
Dfbcon.c567 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/
Dgadget_serial.txt264 Under "Modem and dialing" erase all the modem and dialing strings.
/linux-4.4.14/arch/arm/boot/dts/
Dam335x-evm.dts552 * NAND flash this is equal to size of erase-block */
Dam43x-epos-evm.dts595 * NAND flash this is equal to size of erase-block */
Ddra72-evm.dts525 * NAND flash this is equal to size of erase-block */
Ddra7-evm.dts773 * NAND flash this is equal to size of erase-block */
Dam437x-gp-evm.dts851 * NAND flash this is equal to size of erase-block */
/linux-4.4.14/Documentation/networking/
De1000e.txt235 If set to 1, configure the hardware to ignore all write/erase cycles to the
/linux-4.4.14/drivers/acpi/apei/
Derst.c947 .erase = erst_clearer
/linux-4.4.14/drivers/mtd/nand/
Ddocg4.c1241 nand->erase = docg4_erase_block; in init_mtd_structs()
Ddenali.c1600 denali->nand.erase = denali_erase; in denali_init()
DKconfig293 first five erase blocks (256KiB each) are write-protected, followed
Dnand_base.c2936 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/
Dmmc_test.c1494 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/
Dhid-pidff.c1319 ff->erase = pidff_erase_effect; in hid_pidff_init()
/linux-4.4.14/drivers/scsi/bfa/
Dbfa_ioc.c4359 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/
Dfplsp.S7633 add.l &0xc,%sp # erase |X| from stack
9543 addq.l &0x4,%sp # erase exp(X)
Dfpsp.S4418 addq.l &0x4,%sp # erase sludge