Searched refs:erase (Results 1 - 25 of 64) sorted by relevance

123

/linux-master/include/linux/
H A Dpstore_zone.h31 * @erase: The general erase operation for device with special removing
53 pstore_zone_erase_op erase; member in struct:pstore_zone_info
H A Dpstore.h101 * @read_mutex: serializes @open, @read, @close, and @erase callbacks
153 * can help identify this record to a future @erase callback.
170 * @erase:
201 int (*erase)(struct pstore_record *record); member in struct:pstore_info
/linux-master/drivers/net/ethernet/sfc/
H A Dmtd.c21 static int efx_mtd_erase(struct mtd_info *mtd, struct erase_info *erase) argument
25 return efx->type->mtd_erase(mtd, erase->addr, erase->len);
/linux-master/drivers/net/ethernet/sfc/falcon/
H A Dmtd.c21 static int ef4_mtd_erase(struct mtd_info *mtd, struct erase_info *erase) argument
25 return efx->type->mtd_erase(mtd, erase->addr, erase->len);
/linux-master/drivers/net/ethernet/sfc/siena/
H A Dmtd.c21 static int efx_mtd_erase(struct mtd_info *mtd, struct erase_info *erase) argument
25 return efx->type->mtd_erase(mtd, erase->addr, erase->len);
/linux-master/drivers/cxl/
H A Dsecurity.c174 struct cxl_pass_erase erase; local
177 erase = (struct cxl_pass_erase) {
181 memcpy(erase.pass, key->data, NVDIMM_PASSPHRASE_LEN);
184 .size_in = sizeof(erase),
185 .payload_in = &erase,
201 .erase = cxl_pmem_security_passphrase_erase,
/linux-master/drivers/mtd/devices/
H A Dpowernv_flash.c165 * @erase: the erase info
166 * Returns 0 if erase successful or -ERRNO if an error occurred
168 static int powernv_flash_erase(struct mtd_info *mtd, struct erase_info *erase) argument
172 rc = powernv_flash_async_op(mtd, FLASH_OP_ERASE, erase->addr,
173 erase->len, NULL, NULL);
175 erase->fail_addr = erase->addr;
H A Dbcm47xxsflash.c69 static int bcm47xxsflash_erase(struct mtd_info *mtd, struct erase_info *erase) argument
76 b47s->cc_write(b47s, BCMA_CC_FLASHADDR, erase->addr);
87 b47s->cc_write(b47s, BCMA_CC_FLASHADDR, erase->addr << 1);
/linux-master/drivers/mtd/spi-nor/
H A Dcore.c30 * For everything but full-chip erase; probably could be much smaller, but kept
36 * For full-chip erase, calibrated to a 2MB flash (M25P16); should be scaled up
183 return nor->controller_ops->erase(nor, offs);
1172 struct spi_nor_erase_type *erase; local
1176 erase = &map->erase_type[i];
1177 erase->opcode =
1178 spi_nor_convert_3to4_erase(erase->opcode);
1310 /* Internal locking helpers for program and erase operations */
1491 } else if (nor->controller_ops->erase) {
1510 * @erase
1516 spi_nor_div_by_erase_size(const struct spi_nor_erase_type *erase, u64 dividend, u32 *remainder) argument
1542 const struct spi_nor_erase_type *erase; local
1584 spi_nor_init_erase_cmd(const struct spi_nor_erase_region *region, const struct spi_nor_erase_type *erase) argument
1637 const struct spi_nor_erase_type *erase, *prev_erase = NULL; local
2379 spi_nor_set_erase_type(struct spi_nor_erase_type *erase, u32 size, u8 opcode) argument
2393 spi_nor_mask_erase_type(struct spi_nor_erase_type *erase) argument
2497 const struct spi_nor_erase_type *tested_erase, *erase = NULL; local
2545 const struct spi_nor_erase_type *erase = NULL; local
[all...]
H A Dsfdp.c75 * op code and erase sector size to be used by Sector Erase commands.
311 * spi_nor_set_erase_settings_from_bfpt() - set erase type settings from BFPT
312 * @erase: pointer to a structure that describes a SPI NOR erase type
313 * @size: the size of the sector/block erased by the erase type
314 * @opcode: the SPI command op code to erase the sector/block
315 * @i: erase type index as sorted in the Basic Flash Parameter Table
324 spi_nor_set_erase_settings_from_bfpt(struct spi_nor_erase_type *erase, argument
327 erase->idx = i;
328 spi_nor_set_erase_type(erase, siz
810 spi_nor_region_check_overlay(struct spi_nor_erase_region *region, const struct spi_nor_erase_type *erase, const u8 erase_type) argument
837 struct spi_nor_erase_type *erase = map->erase_type; local
1066 const struct sfdp_4bait *erase = &erases[i]; local
[all...]
H A Dcore.h202 * struct spi_nor_erase_type - Structure to describe a SPI NOR erase type
203 * @size: the size of the sector/block erased by the erase type.
204 * JEDEC JESD216B imposes erase sizes to be a power of 2.
208 * @opcode: the SPI command op code to erase the sector/block.
224 * The structure is used to describe a list of erase commands to be executed
225 * once we validate that the erase can be performed. The elements in the list
227 * @list: for inclusion into the list of erase commands.
228 * @count: how many times the same erase command should be
231 * @opcode: the SPI command op code to erase the sector/block.
241 * struct spi_nor_erase_region - Structure to describe a SPI NOR erase regio
319 int (*erase)(struct spi_nor *nor, loff_t addr); member in struct:spi_nor_otp_ops
[all...]
/linux-master/drivers/firmware/microchip/
H A Dmpfs-auto-update.c225 struct erase_info erase; local
232 erase.addr = AUTO_UPDATE_DIRECTORY_BASE;
233 erase.len = erase_size;
238 * this is spi-nor, we have to read the first eraseblock, erase that
255 ret = mtd_erase(priv->flash, &erase);
285 struct erase_info erase; local
313 erase.len = round_up(size, (size_t)priv->flash->erasesize);
314 erase.addr = image_address;
317 ret = mtd_erase(priv->flash, &erase);
/linux-master/drivers/mtd/
H A Dmtdpstore.c186 struct erase_info erase; local
190 dev_dbg(&mtd->dev, "try to erase off 0x%llx\n", off);
191 erase.len = cxt->mtd->erasesize;
192 erase.addr = off;
193 ret = mtd_erase(cxt->mtd, &erase);
197 dev_err(&mtd->dev, "erase of region [0x%llx, 0x%llx] on \"%s\" failed\n",
198 (unsigned long long)erase.addr,
199 (unsigned long long)erase.len, cxt->info.device);
206 * Avoiding over erasing, do erase block only when the whole block is unused.
207 * If the block contains valid log, do erase lazil
451 struct erase_info erase; local
[all...]
H A Dmtdconcat.c369 struct erase_info *erase; local
372 * Check for proper erase block alignment of the to-be-erased area.
373 * It is easier to do this based on the super device's erase
378 /* the easy case: device has uniform erase block size */
384 /* device has variable erase size */
389 * Find the erase region where the to-be-erased area begins:
398 * offset is aligned to this region's erase size:
404 * now find the erase region where the to-be-erased area ends:
411 * check if the ending offset is aligned to this region's erase size
419 erase
[all...]
H A Dmtdoops.c89 struct erase_info erase; local
93 erase.addr = offset;
94 erase.len = mtd->erasesize;
96 ret = mtd_erase(mtd, &erase);
98 pr_warn("erase of region [0x%llx, 0x%llx] on \"%s\" failed\n",
99 (unsigned long long)erase.addr,
100 (unsigned long long)erase.len, mtddev);
183 pr_debug("not ready %d, %d (erase %s)\n",
187 /* In case of panic, erase immediately */
190 /* Otherwise, schedule work to erase i
[all...]
H A Dmtdblock.c47 struct erase_info erase; local
52 * First, let's erase the flash block.
54 erase.addr = pos;
55 erase.len = len;
57 ret = mtd_erase(mtd, &erase);
59 printk (KERN_WARNING "mtdblock: erase of region [0x%lx, 0x%x] "
361 MODULE_DESCRIPTION("Caching read/erase/writeback block device emulation access to MTD devices");
H A Drfd_ftl.c28 MODULE_PARM_DESC(block_size, "Block size to use by RFD, defaults to erase unit size");
40 /* An erase unit should start with this value */
74 u_int block_size; /* size of erase unit */
75 u_int total_blocks; /* number of erase units */
76 u_int header_sectors_per_block; /* header sectors in erase unit */
77 u_int data_sectors_per_block; /* data sectors in erase unit */
164 /* each erase block has three bytes header, followed by the map */
224 printk(KERN_WARNING PREFIX "'%s': no empty erase unit found\n",
270 struct erase_info *erase; local
273 erase
[all...]
H A Dmtdchar.c922 struct erase_info *erase; local
924 erase=kzalloc(sizeof(struct erase_info),GFP_KERNEL);
925 if (!erase)
933 kfree(erase);
936 erase->addr = einfo64.start;
937 erase->len = einfo64.length;
943 kfree(erase);
946 erase->addr = einfo32.start;
947 erase->len = einfo32.length;
950 ret = mtd_erase(mtd, erase);
[all...]
H A Dftl.c102 /* Maximum number of outstanding erase requests per socket */
146 partition. build_maps() reads all the erase unit headers, builds
147 the erase unit map, and then builds the virtual page map.
201 /* Set up erase unit maps */
247 /* Pick anything reasonable for the erase count */
259 printk(KERN_NOTICE "ftl_cs: format error: erase units "
323 Erase_xfer() schedules an asynchronous erase operation for a
333 struct erase_info *erase; local
339 /* Is there a free erase slot? Always in MTD. */
342 erase
[all...]
/linux-master/fs/jffs2/
H A DMakefile11 jffs2-y += symlink.o build.o erase.o background.o fs.o writev.o
/linux-master/drivers/fpga/
H A Dmachxo2-spi.c140 static const u8 erase[] = ISC_ERASE; local
146 tx[0].tx_buf = &erase;
147 tx[0].len = sizeof(erase);
195 static const u8 erase[] = ISC_ERASE; local
216 tx[1].tx_buf = &erase;
217 tx[1].len = sizeof(erase);
/linux-master/drivers/mtd/ubi/
H A Dattach.c27 * erased are put to the @erase list.
47 * the reason is a power cut, UBI puts this PEB to the @erase list, and all
48 * PEBs in the @erase list are scheduled for erasure later.
64 * to just erase this PEB - this is corruption type 1.
171 * @ec: erase counter of the physical eraseblock
214 * @ec: erase counter of the physical eraseblock
219 * eraseblock @pnum and adds it to the "free", "erase", or "alien" lists.
224 * PEBs (corrupted due to power cuts) to the head of the erase list to make
225 * sure we erase them first and get rid of corruptions ASAP. This function
236 } else if (list == &ai->erase) {
[all...]
/linux-master/lib/
H A Drbtree_test.c69 static inline void erase(struct test_node *node, struct rb_root_cached *root) function
263 erase(nodes + j, &root);
330 erase(nodes + i, &root);
341 erase(nodes + j, &root);
/linux-master/drivers/mtd/nand/
H A Dcore.c123 * @pos: position of the block to erase
132 pr_warn("attempt to erase a bad/reserved block @%llx\n",
137 return nand->ops->erase(nand, pos);
143 * @einfo: erase request
146 * concerned by @einfo and calling nand->ops->erase() on each of them.
360 if (!ops->erase || !ops->markbad || !ops->isbad)
/linux-master/drivers/misc/eeprom/
H A Deeprom_93xx46.c205 dev_err(&edev->spi->dev, "erase/write %sable error %d\n",
281 /* erase/write enable */
305 /* erase/write disable */
349 dev_err(&edev->spi->dev, "erase error %d\n", ret);
350 /* have to wait erase cycle time Tec ms */
365 int erase = 0, ret; local
367 sscanf(buf, "%d", &erase);
368 if (erase) {
381 static DEVICE_ATTR(erase, S_IWUSR, NULL, eeprom_93xx46_store_erase);
550 dev_err(&spi->dev, "can't create erase interfac
[all...]

Completed in 231 milliseconds

123