/linux-6.3-rc2/Documentation/driver-api/mmc/ |
A D | mmc-dev-attrs.rst | 35 preferred_erase_size 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 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 66 useful. Because the erase timeout contains a margin 67 which is multiplied by the size of the erase area, 71 "erase_size" is not the most efficient unit to erase [all …]
|
/linux-6.3-rc2/drivers/mtd/spi-nor/ |
A D | core.c | 1067 erase->opcode = in spi_nor_set_4byte_opcodes() 1193 return erase; in spi_nor_find_best_erase_type() 1201 return erase; in spi_nor_find_best_erase_type() 1336 if (!erase) in spi_nor_init_erase_cmd_list() 2024 erase->size_shift = ffs(erase->size) - 1; in spi_nor_set_erase_type() 2025 erase->size_mask = (1 << erase->size_shift) - 1; in spi_nor_set_erase_type() 2034 erase->size = 0; in spi_nor_mask_erase_type() 2177 if (!erase) in spi_nor_select_uniform_erase() 2183 return erase; in spi_nor_select_uniform_erase() 2209 if (!erase) in spi_nor_select_erase() [all …]
|
A D | sfdp.c | 322 erase->idx = i; in spi_nor_set_erase_settings_from_bfpt() 323 spi_nor_set_erase_type(erase, size, opcode); in spi_nor_set_erase_settings_from_bfpt() 784 const struct spi_nor_erase_type *erase, in spi_nor_region_check_overlay() argument 790 if (!(erase[i].size && erase_type & BIT(erase[i].idx))) in spi_nor_region_check_overlay() 792 if (region->size & erase[i].size_mask) { in spi_nor_region_check_overlay() 810 struct spi_nor_erase_type *erase = map->erase_type; in spi_nor_init_non_uniform_erase_map() local 839 spi_nor_region_check_overlay(®ion[i], erase, erase_type); in spi_nor_init_non_uniform_erase_map() 877 if (!(regions_erase_type & BIT(erase[i].idx))) in spi_nor_init_non_uniform_erase_map() 878 spi_nor_mask_erase_type(&erase[i]); in spi_nor_init_non_uniform_erase_map() 1036 const struct sfdp_4bait *erase = &erases[i]; in spi_nor_parse_4bait() local [all …]
|
/linux-6.3-rc2/drivers/cxl/ |
A D | security.c | 171 struct cxl_pass_erase erase; in cxl_pmem_security_passphrase_erase() local 174 erase = (struct cxl_pass_erase) { in cxl_pmem_security_passphrase_erase() 178 memcpy(erase.pass, key->data, NVDIMM_PASSPHRASE_LEN); in cxl_pmem_security_passphrase_erase() 181 .size_in = sizeof(erase), in cxl_pmem_security_passphrase_erase() 182 .payload_in = &erase, in cxl_pmem_security_passphrase_erase() 198 .erase = cxl_pmem_security_passphrase_erase,
|
/linux-6.3-rc2/drivers/mtd/ |
A D | mtdconcat.c | 369 struct erase_info *erase; in concat_erase() local 421 if (!erase) in concat_erase() 424 *erase = *instr; in concat_erase() 433 if (subdev->size <= erase->addr) { in concat_erase() 434 erase->addr -= subdev->size; in concat_erase() 452 erase->len = subdev->size - erase->addr; in concat_erase() 454 erase->len = length; in concat_erase() 456 length -= erase->len; in concat_erase() 457 if ((err = mtd_erase(subdev, erase))) { in concat_erase() 473 erase->addr = 0; in concat_erase() [all …]
|
A D | mtdpstore.c | 186 struct erase_info erase; in mtdpstore_erase_do() local 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() 198 (unsigned long long)erase.addr, in mtdpstore_erase_do() 199 (unsigned long long)erase.len, cxt->info.device); in mtdpstore_erase_do() 430 cxt->dev.zone.erase = mtdpstore_erase; in mtdpstore_notify_add() 451 struct erase_info erase; in mtdpstore_flush_removed_do() local 463 erase.len = mtd->erasesize; in mtdpstore_flush_removed_do() 464 erase.addr = off; in mtdpstore_flush_removed_do() [all …]
|
A D | mtdoops.c | 89 struct erase_info erase; in mtdoops_erase_block() local 93 erase.addr = offset; in mtdoops_erase_block() 94 erase.len = mtd->erasesize; in mtdoops_erase_block() 96 ret = mtd_erase(mtd, &erase); in mtdoops_erase_block() 99 (unsigned long long)erase.addr, in mtdoops_erase_block() 100 (unsigned long long)erase.len, mtddev); in mtdoops_erase_block()
|
A D | rfd_ftl.c | 270 struct erase_info *erase; in erase_block() local 273 erase = kmalloc(sizeof(struct erase_info), GFP_KERNEL); in erase_block() 274 if (!erase) in erase_block() 277 erase->addr = part->blocks[block].offset; in erase_block() 278 erase->len = part->block_size; in erase_block() 283 rc = mtd_erase(part->mbd.mtd, erase); in erase_block() 286 "failed\n", (unsigned long long)erase->addr, in erase_block() 287 (unsigned long long)erase->len, part->mbd.mtd->name); in erase_block() 314 kfree(erase); in erase_block()
|
A D | mtdblock.c | 47 struct erase_info erase; in erase_write() local 54 erase.addr = pos; in erase_write() 55 erase.len = len; in erase_write() 57 ret = mtd_erase(mtd, &erase); in erase_write()
|
A D | mtdchar.c | 922 struct erase_info *erase; in mtdchar_ioctl() local 924 erase=kzalloc(sizeof(struct erase_info),GFP_KERNEL); in mtdchar_ioctl() 925 if (!erase) in mtdchar_ioctl() 933 kfree(erase); in mtdchar_ioctl() 936 erase->addr = einfo64.start; in mtdchar_ioctl() 937 erase->len = einfo64.length; in mtdchar_ioctl() 943 kfree(erase); in mtdchar_ioctl() 946 erase->addr = einfo32.start; in mtdchar_ioctl() 947 erase->len = einfo32.length; in mtdchar_ioctl() 950 ret = mtd_erase(mtd, erase); in mtdchar_ioctl() [all …]
|
A D | ftl.c | 333 struct erase_info *erase; in erase_xfer() local 342 erase=kmalloc(sizeof(struct erase_info), GFP_KERNEL); in erase_xfer() 343 if (!erase) in erase_xfer() 346 erase->addr = xfer->Offset; in erase_xfer() 347 erase->len = 1 << part->header.EraseUnitSize; in erase_xfer() 349 ret = mtd_erase(part->mbd.mtd, erase); in erase_xfer() 358 kfree(erase); in erase_xfer()
|
/linux-6.3-rc2/drivers/mtd/devices/ |
A D | powernv_flash.c | 168 static int powernv_flash_erase(struct mtd_info *mtd, struct erase_info *erase) in powernv_flash_erase() argument 172 rc = powernv_flash_async_op(mtd, FLASH_OP_ERASE, erase->addr, in powernv_flash_erase() 173 erase->len, NULL, NULL); in powernv_flash_erase() 175 erase->fail_addr = erase->addr; in powernv_flash_erase()
|
A D | bcm47xxsflash.c | 69 static int bcm47xxsflash_erase(struct mtd_info *mtd, struct erase_info *erase) in bcm47xxsflash_erase() argument 76 b47s->cc_write(b47s, BCMA_CC_FLASHADDR, erase->addr); in bcm47xxsflash_erase() 87 b47s->cc_write(b47s, BCMA_CC_FLASHADDR, erase->addr << 1); in bcm47xxsflash_erase()
|
/linux-6.3-rc2/Documentation/networking/devlink/ |
A D | iosm.rst | 25 - erase_full_flash parameter is used to check if full erase is required for 27 If set, Full nand erase command will be sent to the device. By default, 28 only conditional erase support is enabled. 66 By default, conditional erase feature is supported. 75 2) If user want to do a full erase, below command need to be issued to set the 76 erase full flash param (To be set only if full erase required).
|
/linux-6.3-rc2/drivers/net/ethernet/sfc/siena/ |
A D | mtd.c | 21 static int efx_mtd_erase(struct mtd_info *mtd, struct erase_info *erase) in efx_mtd_erase() argument 25 return efx->type->mtd_erase(mtd, erase->addr, erase->len); in efx_mtd_erase()
|
/linux-6.3-rc2/drivers/net/ethernet/sfc/falcon/ |
A D | mtd.c | 21 static int ef4_mtd_erase(struct mtd_info *mtd, struct erase_info *erase) in ef4_mtd_erase() argument 25 return efx->type->mtd_erase(mtd, erase->addr, erase->len); in ef4_mtd_erase()
|
/linux-6.3-rc2/drivers/net/ethernet/sfc/ |
A D | mtd.c | 21 static int efx_mtd_erase(struct mtd_info *mtd, struct erase_info *erase) in efx_mtd_erase() argument 25 return efx->type->mtd_erase(mtd, erase->addr, erase->len); in efx_mtd_erase()
|
/linux-6.3-rc2/drivers/fpga/ |
A D | machxo2-spi.c | 140 static const u8 erase[] = ISC_ERASE; in machxo2_cleanup() local 146 tx[0].tx_buf = &erase; in machxo2_cleanup() 147 tx[0].len = sizeof(erase); in machxo2_cleanup() 195 static const u8 erase[] = ISC_ERASE; in machxo2_write_init() local 216 tx[1].tx_buf = &erase; in machxo2_write_init() 217 tx[1].len = sizeof(erase); in machxo2_write_init()
|
/linux-6.3-rc2/Documentation/devicetree/bindings/mtd/partitions/ |
A D | brcm,bcm963xx-cfe-nor-partitions.txt | 5 NOR. The first erase block used for the CFE bootloader, the last for an 8 header found at beginning of the second erase block, containing the rootfs and
|
/linux-6.3-rc2/Documentation/driver-api/nvdimm/ |
A D | security.rst | 11 "unlock unit", "freeze lock", "secure erase", and "overwrite". A security_ops 31 erase <keyid> - delete existing user encryption key. 98 The command format for doing a secure erase is: 99 erase <keyid> 131 The command format for doing a master erase is: 134 This command has the same operating mechanism as erase except the master
|
/linux-6.3-rc2/drivers/mtd/ubi/ |
A D | attach.c | 236 } else if (list == &ai->erase) { in add_to_list() 652 &ai->erase); in ubi_add_to_av() 675 cmp_res & 4, &ai->erase); in ubi_add_to_av() 754 destroy_av(ai, av, &ai->erase); in ubi_remove_av() 973 UBI_UNKNOWN, 0, &ai->erase); in scan_peb() 977 UBI_UNKNOWN, 1, &ai->erase); in scan_peb() 1104 UBI_UNKNOWN, ec, 1, &ai->erase); in scan_peb() 1113 ec, 1, &ai->erase); in scan_peb() 1120 UBI_UNKNOWN, ec, 1, &ai->erase); in scan_peb() 1144 ec, 1, &ai->erase); in scan_peb() [all …]
|
A D | Kconfig | 20 erase counter value and the lowest erase counter value of eraseblocks 22 wear leveling by means of moving data from eraseblock with low erase 23 counter to eraseblocks with high erase counter.
|
/linux-6.3-rc2/tools/testing/cxl/test/ |
A D | mem.c | 728 struct cxl_pass_erase *erase; in mock_passphrase_secure_erase() local 730 if (cmd->size_in != sizeof(*erase)) in mock_passphrase_secure_erase() 736 erase = cmd->payload_in; in mock_passphrase_secure_erase() 743 erase->type == CXL_PMEM_SEC_PASS_USER) { in mock_passphrase_secure_erase() 749 erase->type == CXL_PMEM_SEC_PASS_MASTER) { in mock_passphrase_secure_erase() 754 switch (erase->type) { in mock_passphrase_secure_erase() 764 if (memcmp(mdata->master_pass, erase->pass, in mock_passphrase_secure_erase() 795 if (memcmp(mdata->user_pass, erase->pass, in mock_passphrase_secure_erase()
|
/linux-6.3-rc2/lib/ |
A D | rbtree_test.c | 69 static inline void erase(struct test_node *node, struct rb_root_cached *root) in erase() function 263 erase(nodes + j, &root); in rbtree_test_init() 330 erase(nodes + i, &root); in rbtree_test_init() 341 erase(nodes + j, &root); in rbtree_test_init()
|
/linux-6.3-rc2/include/linux/ |
A D | pstore_zone.h | 53 pstore_zone_erase_op erase; member
|