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 */
227 printk(KERN_WARNING PREFIX "'%s': no empty erase unit found\n",
273 struct erase_info *erase;
276 erase = kmalloc(sizeof(struct erase_info), GFP_KERNEL);
277 if (!erase)
280 erase->addr = part->blocks[block].offset;
281 erase->len = part->block_size;
286 rc = mtd_erase(part->mbd.mtd, erase);
288 printk(KERN_ERR PREFIX "erase of region %llx,%llx on '%s' "
289 "failed\n", (unsigned long long)erase->addr,
290 (unsigned long long)erase->len, part->mbd.mtd->name);
317 kfree(erase);
773 pr_debug("rfd_ftl_remove_dev:'%s': erase unit #%02d: %d erases\n",