• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-WNDR4500v2-V1.0.0.60_1.0.38/src/linux/linux-2.6/drivers/mtd/

Lines Matching defs:erase

103 /* Maximum number of outstanding erase requests per socket */
156 partition. build_maps() reads all the erase unit headers, builds
157 the erase unit map, and then builds the virtual page map.
211 /* Set up erase unit maps */
256 /* Pick anything reasonable for the erase count */
268 printk(KERN_NOTICE "ftl_cs: format error: erase units "
332 Erase_xfer() schedules an asynchronous erase operation for a
342 struct erase_info *erase;
348 /* Is there a free erase slot? Always in MTD. */
351 erase=kmalloc(sizeof(struct erase_info), GFP_KERNEL);
352 if (!erase)
355 erase->mtd = part->mbd.mtd;
356 erase->callback = ftl_erase_callback;
357 erase->addr = xfer->Offset;
358 erase->len = 1 << part->header.EraseUnitSize;
359 erase->priv = (u_long)part;
361 ret = part->mbd.mtd->erase(part->mbd.mtd, erase);
366 kfree(erase);
378 static void ftl_erase_callback(struct erase_info *erase)
385 part = (partition_t *)(erase->priv);
388 if (part->XferInfo[i].Offset == erase->addr) break;
392 "erase lookup failed!\n");
397 if (erase->state == MTD_ERASE_DONE)
401 printk(KERN_NOTICE "ftl_cs: erase failed: state = %d\n",
402 erase->state);
405 kfree(erase);
457 Copy_erase_unit() takes a full erase block and a transfer unit,
595 reclaim_block() picks a full erase unit and a transfer unit and
597 schedules an erase on the expired block.
599 What's a good way to decide which transfer unit and which erase
709 the BAM cache for the erase unit containing the free block. It
710 returns the block index -- the erase unit is just the currently
736 /* Find an erase unit with some free space */