erase 929 drivers/acpi/apei/erst.c .erase = erst_clearer erase 385 drivers/acpi/nfit/intel.c .erase = intel_security_erase, erase 354 drivers/firmware/efi/efi-pstore.c .erase = efi_pstore_erase, erase 140 drivers/fpga/machxo2-spi.c static const u8 erase[] = ISC_ERASE; erase 146 drivers/fpga/machxo2-spi.c tx[0].tx_buf = &erase; erase 147 drivers/fpga/machxo2-spi.c tx[0].len = sizeof(erase); erase 194 drivers/fpga/machxo2-spi.c static const u8 erase[] = ISC_ERASE; erase 214 drivers/fpga/machxo2-spi.c tx[1].tx_buf = &erase; erase 215 drivers/fpga/machxo2-spi.c tx[1].len = sizeof(erase); erase 2161 drivers/hid/hid-logitech-hidpp.c ff->erase = hidpp_ff_erase_effect; erase 1307 drivers/hid/usbhid/hid-pidff.c ff->erase = pidff_erase_effect; erase 187 drivers/input/ff-core.c if (ff->erase) { erase 188 drivers/input/ff-core.c error = ff->erase(dev, effect_id); erase 380 drivers/input/joystick/iforce/iforce-main.c ff->erase = iforce_erase_effect; erase 348 drivers/input/misc/uinput.c dev->ff->erase = uinput_dev_erase_effect; erase 331 drivers/misc/eeprom/eeprom_93xx46.c int erase = 0, ret; erase 333 drivers/misc/eeprom/eeprom_93xx46.c sscanf(buf, "%d", &erase); erase 334 drivers/misc/eeprom/eeprom_93xx46.c if (erase) { erase 347 drivers/misc/eeprom/eeprom_93xx46.c static DEVICE_ATTR(erase, S_IWUSR, NULL, eeprom_93xx46_store_erase); erase 1540 drivers/mmc/core/mmc_test.c static int mmc_test_area_init(struct mmc_test_card *test, int erase, int fill) erase 1590 drivers/mmc/core/mmc_test.c if (erase) { erase 69 drivers/mtd/devices/bcm47xxsflash.c static int bcm47xxsflash_erase(struct mtd_info *mtd, struct erase_info *erase) erase 76 drivers/mtd/devices/bcm47xxsflash.c b47s->cc_write(b47s, BCMA_CC_FLASHADDR, erase->addr); erase 87 drivers/mtd/devices/bcm47xxsflash.c b47s->cc_write(b47s, BCMA_CC_FLASHADDR, erase->addr << 1); erase 165 drivers/mtd/devices/powernv_flash.c static int powernv_flash_erase(struct mtd_info *mtd, struct erase_info *erase) erase 169 drivers/mtd/devices/powernv_flash.c rc = powernv_flash_async_op(mtd, FLASH_OP_ERASE, erase->addr, erase 170 drivers/mtd/devices/powernv_flash.c erase->len, NULL, NULL); erase 172 drivers/mtd/devices/powernv_flash.c erase->fail_addr = erase->addr; erase 333 drivers/mtd/ftl.c struct erase_info *erase; erase 342 drivers/mtd/ftl.c erase=kmalloc(sizeof(struct erase_info), GFP_KERNEL); erase 343 drivers/mtd/ftl.c if (!erase) erase 346 drivers/mtd/ftl.c erase->addr = xfer->Offset; erase 347 drivers/mtd/ftl.c erase->len = 1 << part->header.EraseUnitSize; erase 349 drivers/mtd/ftl.c ret = mtd_erase(part->mbd.mtd, erase); erase 358 drivers/mtd/ftl.c kfree(erase); erase 47 drivers/mtd/mtdblock.c struct erase_info erase; erase 54 drivers/mtd/mtdblock.c erase.addr = pos; erase 55 drivers/mtd/mtdblock.c erase.len = len; erase 57 drivers/mtd/mtdblock.c ret = mtd_erase(mtd, &erase); erase 689 drivers/mtd/mtdchar.c struct erase_info *erase; erase 694 drivers/mtd/mtdchar.c erase=kzalloc(sizeof(struct erase_info),GFP_KERNEL); erase 695 drivers/mtd/mtdchar.c if (!erase) erase 703 drivers/mtd/mtdchar.c kfree(erase); erase 706 drivers/mtd/mtdchar.c erase->addr = einfo64.start; erase 707 drivers/mtd/mtdchar.c erase->len = einfo64.length; erase 713 drivers/mtd/mtdchar.c kfree(erase); erase 716 drivers/mtd/mtdchar.c erase->addr = einfo32.start; erase 717 drivers/mtd/mtdchar.c erase->len = einfo32.length; erase 720 drivers/mtd/mtdchar.c ret = mtd_erase(mtd, erase); erase 721 drivers/mtd/mtdchar.c kfree(erase); erase 328 drivers/mtd/mtdconcat.c struct erase_info *erase; erase 378 drivers/mtd/mtdconcat.c erase = kmalloc(sizeof (struct erase_info), GFP_KERNEL); erase 380 drivers/mtd/mtdconcat.c if (!erase) erase 383 drivers/mtd/mtdconcat.c *erase = *instr; erase 392 drivers/mtd/mtdconcat.c if (subdev->size <= erase->addr) { erase 393 drivers/mtd/mtdconcat.c erase->addr -= subdev->size; erase 410 drivers/mtd/mtdconcat.c if (erase->addr + length > subdev->size) erase 411 drivers/mtd/mtdconcat.c erase->len = subdev->size - erase->addr; erase 413 drivers/mtd/mtdconcat.c erase->len = length; erase 415 drivers/mtd/mtdconcat.c length -= erase->len; erase 416 drivers/mtd/mtdconcat.c if ((err = mtd_erase(subdev, erase))) { erase 420 drivers/mtd/mtdconcat.c if (erase->fail_addr != MTD_FAIL_ADDR_UNKNOWN) erase 421 drivers/mtd/mtdconcat.c instr->fail_addr = erase->fail_addr + offset; erase 432 drivers/mtd/mtdconcat.c erase->addr = 0; erase 435 drivers/mtd/mtdconcat.c kfree(erase); erase 79 drivers/mtd/mtdoops.c struct erase_info erase; erase 83 drivers/mtd/mtdoops.c erase.addr = offset; erase 84 drivers/mtd/mtdoops.c erase.len = mtd->erasesize; erase 86 drivers/mtd/mtdoops.c ret = mtd_erase(mtd, &erase); erase 89 drivers/mtd/mtdoops.c (unsigned long long)erase.addr, erase 90 drivers/mtd/mtdoops.c (unsigned long long)erase.len, mtddev); erase 529 drivers/mtd/mtdswap.c struct erase_info erase; erase 538 drivers/mtd/mtdswap.c memset(&erase, 0, sizeof(struct erase_info)); erase 539 drivers/mtd/mtdswap.c erase.addr = mtdswap_eb_offset(d, eb); erase 540 drivers/mtd/mtdswap.c erase.len = mtd->erasesize; erase 542 drivers/mtd/mtdswap.c ret = mtd_erase(mtd, &erase); erase 547 drivers/mtd/mtdswap.c erase.addr, mtd->name); erase 553 drivers/mtd/mtdswap.c erase.addr, mtd->name); erase 134 drivers/mtd/nand/core.c return nand->ops->erase(nand, pos); erase 230 drivers/mtd/nand/core.c if (!ops->erase || !ops->markbad || !ops->isbad) erase 5500 drivers/mtd/nand/raw/nand_base.c .erase = rawnand_erase, erase 749 drivers/mtd/nand/spi/core.c .erase = spinand_erase, erase 273 drivers/mtd/rfd_ftl.c struct erase_info *erase; erase 276 drivers/mtd/rfd_ftl.c erase = kmalloc(sizeof(struct erase_info), GFP_KERNEL); erase 277 drivers/mtd/rfd_ftl.c if (!erase) erase 280 drivers/mtd/rfd_ftl.c erase->addr = part->blocks[block].offset; erase 281 drivers/mtd/rfd_ftl.c erase->len = part->block_size; erase 286 drivers/mtd/rfd_ftl.c rc = mtd_erase(part->mbd.mtd, erase); erase 289 drivers/mtd/rfd_ftl.c "failed\n", (unsigned long long)erase->addr, erase 290 drivers/mtd/rfd_ftl.c (unsigned long long)erase->len, part->mbd.mtd->name); erase 317 drivers/mtd/rfd_ftl.c kfree(erase); erase 464 drivers/mtd/sm_ftl.c struct erase_info erase; erase 466 drivers/mtd/sm_ftl.c erase.addr = sm_mkoffset(ftl, zone_num, block, 0); erase 467 drivers/mtd/sm_ftl.c erase.len = ftl->block_size; erase 479 drivers/mtd/sm_ftl.c if (mtd_erase(mtd, &erase)) { erase 1273 drivers/mtd/spi-nor/cadence-quadspi.c nor->erase = cqspi_erase; erase 367 drivers/mtd/spi-nor/hisi-sfc.c nor->erase = NULL; erase 904 drivers/mtd/spi-nor/intel-spi.c ispi->nor.erase = intel_spi_erase; erase 337 drivers/mtd/spi-nor/nxp-spifi.c spifi->nor.erase = nxp_spifi_erase; erase 608 drivers/mtd/spi-nor/spi-nor.c struct spi_nor_erase_type *erase; erase 612 drivers/mtd/spi-nor/spi-nor.c erase = &map->erase_type[i]; erase 613 drivers/mtd/spi-nor/spi-nor.c erase->opcode = erase 614 drivers/mtd/spi-nor/spi-nor.c spi_nor_convert_3to4_erase(erase->opcode); erase 938 drivers/mtd/spi-nor/spi-nor.c if (nor->erase) erase 939 drivers/mtd/spi-nor/spi-nor.c return nor->erase(nor, addr); erase 972 drivers/mtd/spi-nor/spi-nor.c static u64 spi_nor_div_by_erase_size(const struct spi_nor_erase_type *erase, erase 976 drivers/mtd/spi-nor/spi-nor.c *remainder = (u32)dividend & erase->size_mask; erase 977 drivers/mtd/spi-nor/spi-nor.c return dividend >> erase->size_shift; erase 998 drivers/mtd/spi-nor/spi-nor.c const struct spi_nor_erase_type *erase; erase 1012 drivers/mtd/spi-nor/spi-nor.c erase = &map->erase_type[i]; erase 1015 drivers/mtd/spi-nor/spi-nor.c if (erase->size > len) erase 1020 drivers/mtd/spi-nor/spi-nor.c return erase; erase 1022 drivers/mtd/spi-nor/spi-nor.c spi_nor_div_by_erase_size(erase, addr, &rem); erase 1026 drivers/mtd/spi-nor/spi-nor.c return erase; erase 1085 drivers/mtd/spi-nor/spi-nor.c const struct spi_nor_erase_type *erase) erase 1094 drivers/mtd/spi-nor/spi-nor.c cmd->opcode = erase->opcode; erase 1100 drivers/mtd/spi-nor/spi-nor.c cmd->size = erase->size; erase 1137 drivers/mtd/spi-nor/spi-nor.c const struct spi_nor_erase_type *erase, *prev_erase = NULL; erase 1150 drivers/mtd/spi-nor/spi-nor.c erase = spi_nor_find_best_erase_type(map, region, addr, len); erase 1151 drivers/mtd/spi-nor/spi-nor.c if (!erase) erase 1154 drivers/mtd/spi-nor/spi-nor.c if (prev_erase != erase || erase 1156 drivers/mtd/spi-nor/spi-nor.c cmd = spi_nor_init_erase_cmd(region, erase); erase 1177 drivers/mtd/spi-nor/spi-nor.c prev_erase = erase; erase 3186 drivers/mtd/spi-nor/spi-nor.c static void spi_nor_set_erase_type(struct spi_nor_erase_type *erase, erase 3189 drivers/mtd/spi-nor/spi-nor.c erase->size = size; erase 3190 drivers/mtd/spi-nor/spi-nor.c erase->opcode = opcode; erase 3192 drivers/mtd/spi-nor/spi-nor.c erase->size_shift = ffs(erase->size) - 1; erase 3193 drivers/mtd/spi-nor/spi-nor.c erase->size_mask = (1 << erase->size_shift) - 1; erase 3210 drivers/mtd/spi-nor/spi-nor.c spi_nor_set_erase_settings_from_bfpt(struct spi_nor_erase_type *erase, erase 3213 drivers/mtd/spi-nor/spi-nor.c erase->idx = i; erase 3214 drivers/mtd/spi-nor/spi-nor.c spi_nor_set_erase_type(erase, size, opcode); erase 3697 drivers/mtd/spi-nor/spi-nor.c const struct spi_nor_erase_type *erase, erase 3705 drivers/mtd/spi-nor/spi-nor.c if (region->size & erase[i].size_mask) { erase 3727 drivers/mtd/spi-nor/spi-nor.c struct spi_nor_erase_type *erase = map->erase_type; erase 3756 drivers/mtd/spi-nor/spi-nor.c spi_nor_region_check_overlay(®ion[i], erase, erase_type); erase 3793 drivers/mtd/spi-nor/spi-nor.c if (!(regions_erase_type & BIT(erase[i].idx))) erase 3794 drivers/mtd/spi-nor/spi-nor.c spi_nor_set_erase_type(&erase[i], 0, 0xFF); erase 3973 drivers/mtd/spi-nor/spi-nor.c const struct sfdp_4bait *erase = &erases[i]; erase 3975 drivers/mtd/spi-nor/spi-nor.c if (dwords[0] & erase->supported_bit) erase 4230 drivers/mtd/spi-nor/spi-nor.c const struct spi_nor_erase_type *tested_erase, *erase = NULL; erase 4245 drivers/mtd/spi-nor/spi-nor.c erase = tested_erase; erase 4253 drivers/mtd/spi-nor/spi-nor.c if (!erase && tested_erase->size) erase 4254 drivers/mtd/spi-nor/spi-nor.c erase = tested_erase; erase 4258 drivers/mtd/spi-nor/spi-nor.c if (!erase) erase 4263 drivers/mtd/spi-nor/spi-nor.c map->uniform_erase_type |= BIT(erase - map->erase_type); erase 4264 drivers/mtd/spi-nor/spi-nor.c return erase; erase 4270 drivers/mtd/spi-nor/spi-nor.c const struct spi_nor_erase_type *erase = NULL; erase 4289 drivers/mtd/spi-nor/spi-nor.c erase = spi_nor_select_uniform_erase(map, wanted_size); erase 4290 drivers/mtd/spi-nor/spi-nor.c if (!erase) erase 4292 drivers/mtd/spi-nor/spi-nor.c nor->erase_opcode = erase->opcode; erase 4293 drivers/mtd/spi-nor/spi-nor.c mtd->erasesize = erase->size; erase 4303 drivers/mtd/spi-nor/spi-nor.c erase = &map->erase_type[i]; erase 4308 drivers/mtd/spi-nor/spi-nor.c if (!erase) erase 4311 drivers/mtd/spi-nor/spi-nor.c mtd->erasesize = erase->size; erase 236 drivers/mtd/ubi/attach.c } else if (list == &ai->erase) { erase 652 drivers/mtd/ubi/attach.c &ai->erase); erase 675 drivers/mtd/ubi/attach.c cmp_res & 4, &ai->erase); erase 754 drivers/mtd/ubi/attach.c destroy_av(ai, av, &ai->erase); erase 837 drivers/mtd/ubi/attach.c list_for_each_entry_safe(aeb, tmp_aeb, &ai->erase, u.list) { erase 973 drivers/mtd/ubi/attach.c UBI_UNKNOWN, 0, &ai->erase); erase 977 drivers/mtd/ubi/attach.c UBI_UNKNOWN, 1, &ai->erase); erase 1104 drivers/mtd/ubi/attach.c UBI_UNKNOWN, ec, 1, &ai->erase); erase 1113 drivers/mtd/ubi/attach.c ec, 1, &ai->erase); erase 1120 drivers/mtd/ubi/attach.c UBI_UNKNOWN, ec, 1, &ai->erase); erase 1144 drivers/mtd/ubi/attach.c ec, 1, &ai->erase); erase 1321 drivers/mtd/ubi/attach.c list_for_each_entry_safe(aeb, aeb_tmp, &ai->erase, u.list) { erase 1430 drivers/mtd/ubi/attach.c list_for_each_entry(aeb, &ai->erase, u.list) erase 1460 drivers/mtd/ubi/attach.c INIT_LIST_HEAD(&ai->erase); erase 1886 drivers/mtd/ubi/attach.c list_for_each_entry(aeb, &ai->erase, u.list) erase 1654 drivers/mtd/ubi/eba.c ubi_move_aeb_to_list(av, aeb, &ai->erase); erase 284 drivers/mtd/ubi/fastmap.c list_add_tail(&victim->u.list, &ai->erase); erase 304 drivers/mtd/ubi/fastmap.c list_add_tail(&new_aeb->u.list, &ai->erase); erase 524 drivers/mtd/ubi/fastmap.c list_for_each_entry(aeb, &ai->erase, u.list) erase 674 drivers/mtd/ubi/fastmap.c add_aeb(ai, &ai->erase, be32_to_cpu(fmec->pnum), erase 770 drivers/mtd/ubi/fastmap.c list_move_tail(&tmp_aeb->u.list, &ai->erase); erase 761 drivers/mtd/ubi/ubi.h struct list_head erase; erase 341 drivers/mtd/ubi/vtbl.c list_add(&new_aeb->u.list, &ai->erase); erase 658 drivers/mtd/ubi/wl.c int erase = 0, keep = 0, vol_id = -1, lnum = -1; erase 812 drivers/mtd/ubi/wl.c erase = 1; erase 958 drivers/mtd/ubi/wl.c if (erase) { erase 1762 drivers/mtd/ubi/wl.c list_for_each_entry_safe(aeb, tmp, &ai->erase, u.list) { erase 21 drivers/net/ethernet/sfc/falcon/mtd.c static int ef4_mtd_erase(struct mtd_info *mtd, struct erase_info *erase) erase 25 drivers/net/ethernet/sfc/falcon/mtd.c return efx->type->mtd_erase(mtd, erase->addr, erase->len); erase 21 drivers/net/ethernet/sfc/mtd.c static int efx_mtd_erase(struct mtd_info *mtd, struct erase_info *erase) erase 25 drivers/net/ethernet/sfc/mtd.c return efx->type->mtd_erase(mtd, erase->addr, erase->len); erase 442 drivers/nvdimm/dimm_devs.c || nvdimm->sec.ops->erase erase 337 drivers/nvdimm/security.c if (!nvdimm->sec.ops || !nvdimm->sec.ops->erase erase 357 drivers/nvdimm/security.c rc = nvdimm->sec.ops->erase(nvdimm, data, pass_type); erase 101 drivers/nvme/host/lightnvm.c struct nvme_nvm_erase_blk erase; erase 4350 drivers/scsi/bfa/bfa_ioc.c struct bfi_flash_erase_rsp_s *erase; erase 4399 drivers/scsi/bfa/bfa_ioc.c status = be32_to_cpu(m.erase->status); erase 3459 drivers/scsi/gdth.c if (evt.erase == 0xff) { erase 3472 drivers/scsi/gdth.c } else if (evt.erase == 0xfe) { erase 3474 drivers/scsi/gdth.c } else if (evt.erase == 0) { erase 3477 drivers/scsi/gdth.c gdth_readapp_event(ha, evt.erase, &evt.event); erase 226 drivers/scsi/gdth_ioctl.h int erase; /* erase event? */ erase 517 drivers/scsi/megaraid/megaraid_sas.h u32 erase:1; erase 523 drivers/scsi/megaraid/megaraid_sas.h u32 erase:1; erase 534 drivers/scsi/megaraid/megaraid_sas.h union MR_PROGRESS erase; erase 543 drivers/scsi/megaraid/megaraid_sas.h u32 erase:1; erase 547 drivers/scsi/megaraid/megaraid_sas.h u32 erase:1; erase 607 drivers/video/fbdev/core/fbcon.c int cnt, erase = vc->vc_video_erase_char, step; erase 621 drivers/video/fbdev/core/fbcon.c erase &= ~0x400; erase 635 drivers/video/fbdev/core/fbcon.c scr_memsetw(save, erase, logo_lines * new_cols * 2); erase 660 drivers/video/fbdev/core/fbcon.c erase, erase 182 fs/pstore/inode.c if (!record->psi->erase) erase 186 fs/pstore/inode.c record->psi->erase(record); erase 490 fs/pstore/ram.c .erase = ramoops_pstore_erase, erase 536 include/linux/input.h int (*erase)(struct input_dev *dev, int effect_id); erase 199 include/linux/libnvdimm.h int (*erase)(struct nvdimm *nvdimm, erase 155 include/linux/mtd/nand.h int (*erase)(struct nand_device *nand, const struct nand_pos *pos); erase 600 include/linux/mtd/spi-nor.h int (*erase)(struct spi_nor *nor, loff_t offs); erase 190 include/linux/pstore.h int (*erase)(struct pstore_record *record); erase 263 lib/rbtree_test.c erase(nodes + j, &root); erase 330 lib/rbtree_test.c erase(nodes + i, &root); erase 341 lib/rbtree_test.c erase(nodes + j, &root);