Home
last modified time | relevance | path

Searched full:erase (Results 1 – 25 of 1184) sorted by relevance

12345678910>>...48

/openbmc/linux/tools/testing/radix-tree/
H A Dmaple.c523 /* Check erase and load without an allocation. */ in check_erase_testset()
546 erase_check_erase(mt, 2); /* erase 5017 to check append */ in check_erase_testset()
568 erase_check_erase(mt, 2); /* erase 5017 to check append */ in check_erase_testset()
572 erase_check_erase(mt, 0); /* erase 5015 to check append */ in check_erase_testset()
729 /* End of erase testing */
736 #define ERASE 3 macro
741 "SNULL" : "ERASE") \
1053 case ERASE: in check_erase2_testset()
1131 ERASE, 140721266458624, 140737488351231, in check_erase2_sets()
1134 ERASE, 94735788949504, 94735789121535, in check_erase2_sets()
[all …]
/openbmc/linux/Documentation/driver-api/mmc/
H A Dmmc-dev-attrs.rst34 erase_size Erase group size
35 preferred_erase_size Preferred erase size
45 Note on Erase Size and 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
[all …]
/openbmc/qemu/tests/qemu-iotests/
H A D293.out13 == erase slot 4 ==
25 == erase slot 0 and try it ==
28 == erase slot 2 and try it ==
50 == erase all keys of secret 2==
51 == erase all keys of secret 1==
52 == erase all keys of secret 0==
54 …ve keyslots match the (old) password that was given and erasing them will erase all the data in th…
64 == erase secret3 ==
74 qemu-img: Refusing to overwrite active keyslot 0 - please erase it first
85 == erase last secret (should fail) ==
[all …]
/openbmc/linux/drivers/mtd/spi-nor/
H A Dsfdp.c75 * op code and erase sector size to be used by Sector Erase commands.
297 /* Erase Type 1 in DWORD8 bits[15:0] */
300 /* Erase Type 2 in DWORD8 bits[31:16] */
303 /* Erase Type 3 in DWORD9 bits[15:0] */
306 /* Erase Type 4 in DWORD9 bits[31:16] */
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
[all …]
H A Dcore.h195 * struct spi_nor_erase_type - Structure to describe a SPI NOR erase type
196 * @size: the size of the sector/block erased by the erase type.
197 * JEDEC JESD216B imposes erase sizes to be a power of 2.
201 * @opcode: the SPI command op code to erase the sector/block.
202 * @idx: Erase Type index as sorted in the Basic Flash Parameter
204 * Erase Types with the ones identified in the SFDP
217 * The structure is used to describe a list of erase commands to be executed
218 * once we validate that the erase can be performed. The elements in the list
220 * @list: for inclusion into the list of erase commands.
221 * @count: how many times the same erase command should be
[all …]
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); in spi_nor_controller_ops_erase()
1063 * spi_nor_erase_chip() - Erase the entire flash memory.
1164 struct spi_nor_erase_type *erase; in spi_nor_set_4byte_opcodes() local
1168 erase = &map->erase_type[i]; in spi_nor_set_4byte_opcodes()
1169 erase->opcode = in spi_nor_set_4byte_opcodes()
1170 spi_nor_convert_3to4_erase(erase->opcode); in spi_nor_set_4byte_opcodes()
1302 /* Internal locking helpers for program and erase operations */
1483 } else if (nor->controller_ops->erase) { in spi_nor_erase_sector()
1508 spi_nor_div_by_erase_size(const struct spi_nor_erase_type * erase,u64 dividend,u32 * remainder) spi_nor_div_by_erase_size() argument
1534 const struct spi_nor_erase_type *erase; spi_nor_find_best_erase_type() local
1632 spi_nor_init_erase_cmd(const struct spi_nor_erase_region * region,const struct spi_nor_erase_type * erase) spi_nor_init_erase_cmd() argument
1684 const struct spi_nor_erase_type *erase, *prev_erase = NULL; spi_nor_init_erase_cmd_list() local
2413 spi_nor_set_erase_type(struct spi_nor_erase_type * erase,u32 size,u8 opcode) spi_nor_set_erase_type() argument
2427 spi_nor_mask_erase_type(struct spi_nor_erase_type * erase) spi_nor_mask_erase_type() argument
2540 const struct spi_nor_erase_type *tested_erase, *erase = NULL; spi_nor_select_uniform_erase() local
2584 const struct spi_nor_erase_type *erase = NULL; spi_nor_select_erase() local
[all...]
/openbmc/u-boot/board/imgtec/malta/
H A Dflash-malta-boot.tcl22 flash erase sector 0xbe000000;
23 flash erase sector 0xbe020000;
24 flash erase sector 0xbe040000;
25 flash erase sector 0xbe060000;
26 flash erase sector 0xbe080000;
27 flash erase sector 0xbe0a0000;
28 flash erase sector 0xbe0c0000;
29 flash erase sector 0xbe0e0000;
/openbmc/u-boot/drivers/mtd/
H A Dmtdconcat.c346 static int concat_dev_erase(struct mtd_info *mtd, struct erase_info *erase) in concat_dev_erase() argument
357 erase->mtd = mtd; in concat_dev_erase()
358 erase->callback = concat_erase_callback; in concat_dev_erase()
359 erase->priv = (unsigned long) &waitq; in concat_dev_erase()
365 err = mtd_erase(mtd, erase); in concat_dev_erase()
369 if (erase->state != MTD_ERASE_DONE in concat_dev_erase()
370 && erase->state != MTD_ERASE_FAILED) in concat_dev_erase()
375 err = (erase->state == MTD_ERASE_FAILED) ? -EIO : 0; in concat_dev_erase()
386 struct erase_info *erase; in concat_erase() local
389 * Check for proper erase block alignment of the to-be-erased area. in concat_erase()
[all …]
/openbmc/estoraged/include/
H A Derase.hpp6 /** @class Erase
7 * @brief Erase object provides a base class for the specific erase types
9 class Erase class
12 /** @brief creates an erase object
15 Erase(std::string_view inDevPath) : devPath(inDevPath) {} in Erase() function in estoraged::Erase
H A DverifyDriveGeometry.hpp3 #include "erase.hpp"
11 class VerifyDriveGeometry : public Erase
14 /** @brief Creates a verifyDriveGeomentry erase object.
18 VerifyDriveGeometry(std::string_view inDevPath) : Erase(inDevPath) {} in VerifyDriveGeometry()
23 * @param[in] eraseMaxGeometry - the max expected size to erase.
24 * @param[in] eraseMinGeometry - the min expected size to erase.
H A Dsanitize.hpp3 #include "erase.hpp"
70 class Sanitize : public Erase
73 /** @brief Creates a sanitize erase object
82 Erase(inDevPath), ioctlWrapper(std::move(inIOCTL)) in Sanitize()
85 /** @brief sanitize the drive, using eMMC specified erase commands
91 /** @brief sanitize the drive, using eMMC specified erase commands
107 /** @brief uses the eMMC defined erase command
/openbmc/qemu/hw/block/
H A Dpflash_cfi02.c26 * - sector erase
27 * - chip erase
199 * Returns the time it takes to erase the number of sectors scheduled for
201 * block erase 2^N ms."
206 * If there are no sectors to erase (which can happen if all of the sectors in pflash_erase_time()
207 * to be erased are protected), then erase takes 100 us. Protected sectors in pflash_erase_time()
214 * Returns true if the device is currently in erase suspend mode.
228 * Sector erase. If DQ3 is 0 when the timer expires, then the 50 in pflash_timer()
229 * us erase timeout has expired so we need to start the timer for the in pflash_timer()
230 * sector erase algorithm. Otherwise, the erase completed and we should in pflash_timer()
[all …]
/openbmc/linux/drivers/mtd/
H A Dmtdconcat.c369 struct erase_info *erase; in concat_erase() local
372 * Check for proper erase block alignment of the to-be-erased area. in concat_erase()
373 * It is easier to do this based on the super device's erase in concat_erase()
378 /* the easy case: device has uniform erase block size */ in concat_erase()
384 /* device has variable erase size */ in concat_erase()
389 * Find the erase region where the to-be-erased area begins: in concat_erase()
398 * offset is aligned to this region's erase size: in concat_erase()
404 * now find the erase region where the to-be-erased area ends: in concat_erase()
411 * check if the ending offset is aligned to this region's erase size in concat_erase()
419 erase = kmalloc(sizeof (struct erase_info), GFP_KERNEL); in concat_erase()
[all …]
H A Dmtdpstore.c186 struct erase_info erase; in mtdpstore_erase_do() local
190 dev_dbg(&mtd->dev, "try to erase off 0x%llx\n", off); in mtdpstore_erase_do()
191 erase.len = cxt->mtd->erasesize; in mtdpstore_erase_do()
192 erase.addr = off; in mtdpstore_erase_do()
193 ret = mtd_erase(cxt->mtd, &erase); in mtdpstore_erase_do()
197 dev_err(&mtd->dev, "erase of region [0x%llx, 0x%llx] on \"%s\" failed\n", in mtdpstore_erase_do()
198 (unsigned long long)erase.addr, in mtdpstore_erase_do()
199 (unsigned long long)erase.len, cxt->info.device); in mtdpstore_erase_do()
206 * Avoiding over erasing, do erase block only when the whole block is unused.
207 * If the block contains valid log, do erase lazily on flush_removed() when
[all …]
/openbmc/u-boot/include/configs/
H A DUCP1020.h216 #define CONFIG_SYS_FLASH_ERASE_TOUT 60000 /* Flash Erase Timeout (ms) */
470 "sf erase $mbr_offset +$filesize; " \
474 "erase $nor_recoveryaddr +$filesize; " \
479 "erase $nor_ubootaddr +$filesize; " \
484 "erase $nor_workingaddr +$filesize; " \
496 "mmc erase 1 1; " \
499 "mmc erase 0x40 0x400; " \
542 "erase 0xEC000000 +$filesize; " \
548 "erase 0xEFF80000 +$filesize; " \
553 "sf probe 0; sf erase 0x8000 +$filesize; " \
[all …]
/openbmc/phosphor-mboxd/
H A Dmboxd_flash.c88 /* We know the erase size so we can allocate the flash_erased bytemap */ in init_flash_dev()
93 MSG_DBG("Flash erase size: 0x%.8x\n", context->mtd_info.erasesize); in init_flash_dev()
129 * The flash bytemap only tracks the erased status at the erase block level so
130 * this will update the erased state for an (or many) erase blocks
152 * erase_flash() - Erase the flash
154 * @offset: The flash offset to erase (bytes)
155 * @size: The number of bytes to erase
165 MSG_DBG("Erase flash @ 0x%.8x for 0x%.8x\n", offset, count); in erase_flash()
170 * which aren't erased and erase the entire run at once to avoid how in erase_flash()
171 * often we have to call the erase ioctl. If the block is already in erase_flash()
[all …]
/openbmc/hiomapd/mtd/
H A Dbackend.c98 /* We know the erase size so we can allocate the flash_erased bytemap */ in mtd_dev_init()
104 MSG_DBG("Flash erase size: 0x%.8x\n", priv->mtd_info.erasesize); in mtd_dev_init()
158 * The flash bytemap only tracks the erased status at the erase block level so
159 * this will update the erased state for an (or many) erase blocks
183 * mtd_erase() - Erase the flash
185 * @offset: The flash offset to erase (bytes)
186 * @size: The number of bytes to erase
197 MSG_DBG("Erase flash @ 0x%.8x for 0x%.8x\n", offset, count); in mtd_erase()
202 * which aren't erased and erase the entire run at once to avoid how in mtd_erase()
203 * often we have to call the erase ioctl. If the block is already in mtd_erase()
[all …]
/openbmc/u-boot/doc/SPI/
H A DREADME.ti_qspi_dra_test21 Commands to erase/write u-boot/mlo to flash device
24 SF: Detected S25FL256S_64K with page size 256 Bytes, erase size 64 KiB, total 32 MiB, mapped at 5c0…
25 U-Boot# sf erase 0 0x10000
27 U-Boot# sf erase 0x20000 0x10000
29 U-Boot# sf erase 0x30000 0x10000
31 U-Boot# sf erase 0x40000 0x10000
33 U-Boot# sf erase 0x50000 0x10000
35 U-Boot# sf erase 0x60000 0x10000
/openbmc/estoraged/src/test/
H A Dmeson.build5 'erase/verifyGeometry_test',
6 'erase/pattern_test',
7 'erase/zero_test',
8 'erase/crypto_test',
9 'erase/sanitize_test',
/openbmc/u-boot/include/
H A Dubispl.h13 * Defines the maximum number of logical erase blocks per loadable
18 * Defines the maximum physical erase block size to size the fastmap
23 * Define the maximum number of physical erase blocks to size the
49 * @peb_size: Physical erase block size
51 * @leb_start: Start of the logical erase block, i.e. offset of data
52 * @peb_count: Number of physical erase blocks in the UBI FLASH area
55 * to the real start of the FLASH in erase blocks.
/openbmc/linux/drivers/net/wwan/iosm/
H A Diosm_ipc_flash.h11 /* Full erase start address */
13 /* Erase length for NAND flash */
49 /* Data received from modem as part of erase check */
55 /* Set flash erase check timeout to 100 msec */
57 /* Set flash erase check interval to 20 msec */
68 * @FLASH_ERASE_START: Start erase before flashing
69 * @FLASH_ERASE_CHECK: Validate the erase functionality
90 * @FLASH_OOSC_ACTION_ERASE: Erase data according to its type
112 * @IOSM_EXT_CAP_ERASE_ALL: Set Erase all capability
125 * @EBL_SKIP_ERASE: EBL skip erase flag
/openbmc/u-boot/cmd/
H A Dflash.c36 * sector to erase, and SL is the last sector to erase (defaults to SF).
131 * erase and protect commands. The range of the addresses on which
199 s_first[bank] = -1; /* first sector to erase */ in flash_fill_sect_ranges()
200 s_last [bank] = -1; /* last sector to erase */ in flash_fill_sect_ranges()
317 printf ("Erase Flash Bank # %ld ", bank); in do_flerase()
329 printf ("Erase Flash Sectors %d-%d in Bank # %zu ", in do_flerase()
336 /* erase <part-id> - erase partition */ in do_flerase()
346 printf ("Erase Flash Partition %s, " in do_flerase()
355 printf("cannot erase, not a NOR device\n"); in do_flerase()
371 printf ("Erase Flash Bank # %ld ", bank); in do_flerase()
[all …]
/openbmc/u-boot/include/linux/mtd/
H A Dspi-nor.h55 #define SPINOR_OP_BE_4K 0x20 /* Erase 4KiB block */
56 #define SPINOR_OP_BE_4K_PMC 0xd7 /* Erase 4KiB block on PMC chips */
57 #define SPINOR_OP_BE_32K 0x52 /* Erase 32KiB block */
58 #define SPINOR_OP_CHIP_ERASE 0xc7 /* Erase whole flash chip */
59 #define SPINOR_OP_SE 0xd8 /* Sector erase (usually 64KiB) */
78 #define SPINOR_OP_BE_4K_4B 0x21 /* Erase 4KiB block */
79 #define SPINOR_OP_BE_32K_4B 0x5c /* Erase 32KiB block */
80 #define SPINOR_OP_SE_4B 0xdc /* Sector erase (usually 64KiB) */
100 #define SPINOR_OP_XSE 0x50 /* Sector erase */
154 #define FSR_E_ERR BIT(5) /* Erase operation status */
[all …]
/openbmc/linux/include/linux/mtd/
H A Dspi-nor.h41 #define SPINOR_OP_BE_4K 0x20 /* Erase 4KiB block */
42 #define SPINOR_OP_BE_4K_PMC 0xd7 /* Erase 4KiB block on PMC chips */
43 #define SPINOR_OP_BE_32K 0x52 /* Erase 32KiB block */
44 #define SPINOR_OP_CHIP_ERASE 0xc7 /* Erase whole flash chip */
45 #define SPINOR_OP_SE 0xd8 /* Sector erase (usually 64KiB) */
67 #define SPINOR_OP_BE_4K_4B 0x21 /* Erase 4KiB block */
68 #define SPINOR_OP_BE_32K_4B 0x5c /* Erase 32KiB block */
69 #define SPINOR_OP_SE_4B 0xdc /* Sector erase (usually 64KiB) */
96 #define SPINOR_OP_ESECR 0x44 /* Erase Security registers */
294 * read/write/erase/lock/unlock operations.
[all …]
/openbmc/u-boot/doc/
H A DREADME.nand21 nand erase off|partition size
22 nand erase clean [off|partition size]
23 Erase `size' bytes starting at offset `off'. Alternatively partition
26 and write commands). Only complete erase blocks can be erased.
28 If `erase' is specified without an offset or size, the entire flash
29 is erased. If `erase' is specified with partition but without an
35 This command will not erase blocks that are marked bad. There is
291 implement "nand erase clean" and old "nand erase"
293 "nand erase clean" additionally writes JFFS2-cleanmarkers in the oob.
300 like "erase" but don't skip bad block. Instead erase them.
[all …]

12345678910>>...48