Home
last modified time | relevance | path

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

12

/drivers/mtd/
Dmtdconcat.c340 static int concat_dev_erase(struct mtd_info *mtd, struct erase_info *erase) in concat_dev_erase() argument
351 erase->mtd = mtd; in concat_dev_erase()
352 erase->callback = concat_erase_callback; in concat_dev_erase()
353 erase->priv = (unsigned long) &waitq; in concat_dev_erase()
359 err = mtd_erase(mtd, erase); in concat_dev_erase()
363 if (erase->state != MTD_ERASE_DONE in concat_dev_erase()
364 && erase->state != MTD_ERASE_FAILED) in concat_dev_erase()
369 err = (erase->state == MTD_ERASE_FAILED) ? -EIO : 0; in concat_dev_erase()
380 struct erase_info *erase; in concat_erase() local
430 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()
Dmtdchar.c686 struct erase_info *erase; in mtdchar_ioctl() local
691 erase=kzalloc(sizeof(struct erase_info),GFP_KERNEL); in mtdchar_ioctl()
692 if (!erase) in mtdchar_ioctl()
705 kfree(erase); in mtdchar_ioctl()
708 erase->addr = einfo64.start; in mtdchar_ioctl()
709 erase->len = einfo64.length; in mtdchar_ioctl()
715 kfree(erase); in mtdchar_ioctl()
718 erase->addr = einfo32.start; in mtdchar_ioctl()
719 erase->len = einfo32.length; in mtdchar_ioctl()
721 erase->mtd = mtd; in mtdchar_ioctl()
[all …]
Dmtdblock.c69 struct erase_info erase; in erase_write() local
80 erase.mtd = mtd; in erase_write()
81 erase.callback = erase_callback; in erase_write()
82 erase.addr = pos; in erase_write()
83 erase.len = len; in erase_write()
84 erase.priv = (u_long)&wait_q; in erase_write()
89 ret = mtd_erase(mtd, &erase); in erase_write()
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
/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()
/drivers/mtd/devices/
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.c213 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
/drivers/mtd/ubi/
Dattach.c126 } else if (list == &ai->erase) { in add_to_list()
536 &ai->erase); in ubi_add_to_av()
559 cmp_res & 4, &ai->erase); in ubi_add_to_av()
639 list_add_tail(&aeb->u.list, &ai->erase); in ubi_remove_av()
725 list_for_each_entry_safe(aeb, tmp_aeb, &ai->erase, u.list) { in ubi_early_get_peb()
845 UBI_UNKNOWN, 0, &ai->erase); in scan_peb()
849 UBI_UNKNOWN, 1, &ai->erase); in scan_peb()
960 UBI_UNKNOWN, ec, 1, &ai->erase); in scan_peb()
969 ec, 1, &ai->erase); in scan_peb()
976 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.c249 list_add_tail(&victim->u.list, &ai->erase); in update_vol()
268 list_add_tail(&new_aeb->u.list, &ai->erase); in update_vol()
521 list_for_each_entry(aeb, &ai->erase, u.list) in count_fastmap_pebs()
567 INIT_LIST_HEAD(&ai->erase); in ubi_attach_fastmap()
685 add_aeb(ai, &ai->erase, be32_to_cpu(fmec->pnum), in ubi_attach_fastmap()
Dubi.h692 struct list_head erase; member
/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).
Dspi-nor.c310 if (nor->erase(nor, addr)) { in spi_nor_erase()
909 !nor->read_reg || !nor->write_reg || !nor->erase) { in spi_nor_check()
/drivers/misc/eeprom/
Deeprom_93xx46.c293 int erase = 0, ret; in eeprom_93xx46_store_erase() local
295 sscanf(buf, "%d", &erase); in eeprom_93xx46_store_erase()
296 if (erase) { in eeprom_93xx46_store_erase()
309 static DEVICE_ATTR(erase, S_IWUSR, NULL, eeprom_93xx46_store_erase);
DKconfig80 erase the whole EEPROM.
95 erase the whole EEPROM.
/drivers/scsi/
Dgdth_ioctl.h204 int erase; /* erase event ? */ member
314 int erase; /* erase event? */ member
/drivers/input/
Dff-core.c201 if (ff->erase) { in erase_effect()
202 error = ff->erase(dev, effect_id); in erase_effect()
/drivers/firmware/efi/
Defi-pstore.c364 .erase = efi_pstore_erase,
/drivers/input/joystick/iforce/
Diforce-main.c440 ff->erase = iforce_erase_effect; in iforce_init_device()

12