Lines Matching defs:erase
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 */
224 printk(KERN_WARNING PREFIX "'%s': no empty erase unit found\n",
270 struct erase_info *erase;
273 erase = kmalloc(sizeof(struct erase_info), GFP_KERNEL);
274 if (!erase)
277 erase->addr = part->blocks[block].offset;
278 erase->len = part->block_size;
283 rc = mtd_erase(part->mbd.mtd, erase);
285 printk(KERN_ERR PREFIX "erase of region %llx,%llx on '%s' "
286 "failed\n", (unsigned long long)erase->addr,
287 (unsigned long long)erase->len, part->mbd.mtd->name);
314 kfree(erase);
799 pr_debug("rfd_ftl_remove_dev:'%s': erase unit #%02d: %d erases\n",