/linux/scripts/ |
H A D | Makefile.kstack_erase | 4 kstack-erase-cflags-y += -fplugin=$(objtree)/scripts/gcc-plugins/stackleak_plugin.so 5 kstack-erase-cflags-y += -fplugin-arg-stackleak_plugin-track-min-size=$(CONFIG_KSTACK_ERASE_TRACK_MIN_SIZE) 6 kstack-erase-cflags-y += -fplugin-arg-stackleak_plugin-arch=$(SRCARCH) 7 kstack-erase-cflags-$(CONFIG_GCC_PLUGIN_STACKLEAK_VERBOSE) += -fplugin-arg-stackleak_plugin-verbose 12 kstack-erase-cflags-y += -fsanitize-coverage=stack-depth 13 kstack-erase-cflags-y += -fsanitize-coverage-stack-depth-callback-min=$(CONFIG_KSTACK_ERASE_TRACK_MIN_SIZE) 17 KSTACK_ERASE_CFLAGS := $(kstack-erase-cflags-y)
|
/linux/Documentation/driver-api/mmc/ |
H 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 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 66 useful. Because the erase timeout contains a margin 67 which is multiplied by the size of the erase are [all...] |
/linux/drivers/cxl/ |
H A D | security.c | 175 struct cxl_pass_erase erase; in cxl_pmem_security_passphrase_erase() local 178 erase = (struct cxl_pass_erase) { in cxl_pmem_security_passphrase_erase() 182 memcpy(erase.pass, key->data, NVDIMM_PASSPHRASE_LEN); in cxl_pmem_security_passphrase_erase() 185 .size_in = sizeof(erase), in cxl_pmem_security_passphrase_erase() 186 .payload_in = &erase, in cxl_pmem_security_passphrase_erase() 202 .erase = cxl_pmem_security_passphrase_erase,
|
/linux/drivers/mtd/spi-nor/ |
H A D | core.c | 32 * For everything but full-chip erase; probably could be much smaller, but kept 38 * For full-chip erase, calibrated to a 2MB flash (M25P16); should be scaled up 188 return nor->controller_ops->erase(nor, offs); in spi_nor_controller_ops_erase() 1171 struct spi_nor_erase_type *erase; in spi_nor_set_4byte_opcodes() local 1175 erase = &map->erase_type[i]; in spi_nor_set_4byte_opcodes() 1176 erase->opcode = in spi_nor_set_4byte_opcodes() 1177 spi_nor_convert_3to4_erase(erase->opcode); in spi_nor_set_4byte_opcodes() 1299 /* Internal locking helpers for program and erase operations */ 1458 } else if (nor->controller_ops->erase) { in spi_nor_erase_sector() 1477 * @erase 1483 spi_nor_div_by_erase_size(const struct spi_nor_erase_type * erase,u64 dividend,u32 * remainder) spi_nor_div_by_erase_size() argument 1509 const struct spi_nor_erase_type *erase; spi_nor_find_best_erase_type() local 1552 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 1604 const struct spi_nor_erase_type *erase, *prev_erase = NULL; spi_nor_init_erase_cmd_list() local 2329 spi_nor_set_erase_type(struct spi_nor_erase_type * erase,u32 size,u8 opcode) spi_nor_set_erase_type() argument 2343 spi_nor_mask_erase_type(struct spi_nor_erase_type * erase) spi_nor_mask_erase_type() argument 2447 const struct spi_nor_erase_type *tested_erase, *erase = NULL; spi_nor_select_uniform_erase() local 2495 const struct spi_nor_erase_type *erase = NULL; spi_nor_select_erase() local [all...] |
H A D | sfdp.c | 75 * 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, in spi_nor_set_erase_settings_from_bfpt() argument 327 erase->idx = i; in spi_nor_set_erase_settings_from_bfpt() 328 spi_nor_set_erase_type(erase, siz in spi_nor_set_erase_settings_from_bfpt() 815 spi_nor_region_check_overlay(struct spi_nor_erase_region * region,const struct spi_nor_erase_type * erase,const u8 erase_type) spi_nor_region_check_overlay() argument 841 struct spi_nor_erase_type *erase = map->erase_type; spi_nor_init_non_uniform_erase_map() local 1070 const struct sfdp_4bait *erase = &erases[i]; spi_nor_parse_4bait() local [all...] |
/linux/drivers/firmware/microchip/ |
H A D | mpfs-auto-update.c | 205 struct erase_info erase; in mpfs_auto_update_set_image_address() local 214 erase.addr = AUTO_UPDATE_DIRECTORY_BASE; in mpfs_auto_update_set_image_address() 215 erase.len = erase_size; in mpfs_auto_update_set_image_address() 220 * this is spi-nor, we have to read the first eraseblock, erase that in mpfs_auto_update_set_image_address() 237 ret = mtd_erase(priv->flash, &erase); in mpfs_auto_update_set_image_address() 267 struct erase_info erase; in mpfs_auto_update_write_bitstream() local 305 erase.len = round_up(size, (size_t)priv->flash->erasesize); in mpfs_auto_update_write_bitstream() 306 erase.addr = image_address; in mpfs_auto_update_write_bitstream() 309 ret = mtd_erase(priv->flash, &erase); in mpfs_auto_update_write_bitstream()
|
/linux/drivers/mtd/devices/ |
H A D | powernv_flash.c | 165 * @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) 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()
|
H 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/drivers/mtd/ |
H A D | mtdpstore.c | 186 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 lazil 454 struct erase_info erase; mtdpstore_flush_removed_do() local [all...] |
H A D | rfd_ftl.c | 28 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 */ in scan_header() 224 printk(KERN_WARNING PREFIX "'%s': no empty erase unit found\n", in scan_header() 270 struct erase_info *erase; in erase_block() local 273 erase in erase_block() [all...] |
H A D | mtdblock.c | 47 struct erase_info erase; in erase_write() local 52 * First, let's erase the flash block. in erase_write() 54 erase.addr = pos; in erase_write() 55 erase.len = len; in erase_write() 57 ret = mtd_erase(mtd, &erase); in erase_write() 59 printk (KERN_WARNING "mtdblock: erase of region [0x%lx, 0x%x] " in erase_write() 361 MODULE_DESCRIPTION("Caching read/erase/writeback block device emulation access to MTD devices");
|
H 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...] |
H A D | ftl.c | 102 /* 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 */ in build_maps() 247 /* Pick anything reasonable for the erase count */ in build_maps() 259 printk(KERN_NOTICE "ftl_cs: format error: erase units " in build_maps() 323 Erase_xfer() schedules an asynchronous erase operation for a 333 struct erase_info *erase; in erase_xfer() local 339 /* Is there a free erase slot? Always in MTD. */ in erase_xfer() 342 erase in erase_xfer() [all...] |
/linux/Documentation/networking/devlink/ |
H 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/Documentation/driver-api/mtd/ |
H A D | spi-nor.rst | 126 erase 0x20 135 erase commands 143 region (in hex) | erase mask | flags 152 and verify that erase, read and page program operations work fine:: 159 root@1:~# mtd_debug erase /dev/mtd0 0 2097152 183 If the flash comes erased by default and the previous erase was ignored, 184 we won't catch it, thus test the erase again:: 186 root@1:~# mtd_debug erase /dev/mtd0 0 2097152
|
/linux/drivers/net/ethernet/sfc/siena/ |
H 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/drivers/net/ethernet/sfc/falcon/ |
H 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/drivers/net/ethernet/sfc/ |
H 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/drivers/fpga/ |
H 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/Documentation/devicetree/bindings/mtd/partitions/ |
H 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/Documentation/driver-api/nvdimm/ |
H 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/drivers/mtd/ubi/ |
H A D | attach.c | 27 * 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) { in add_to_list() [all...] |
H 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/lib/ |
H A D | rbtree_test.c | 70 static inline void erase(struct test_node *node, struct rb_root_cached *root) in erase() function 259 erase(nodes + j, &root); in basic_check() 326 erase(nodes + i, &root); in basic_check() 337 erase(nodes + j, &root); in basic_check()
|
/linux/include/linux/ |
H A D | pstore_zone.h | 31 * @erase: The general erase operation for device with special removing 53 pstore_zone_erase_op erase; member
|