Lines Matching defs:xfer
338 struct xfer_info_t *xfer;
341 xfer = &part->XferInfo[xfernum];
342 DEBUG(1, "ftl_cs: erasing xfer unit at 0x%x\n", xfer->Offset);
343 xfer->state = XFER_ERASING;
354 erase->addr = xfer->Offset;
361 xfer->EraseCount++;
378 struct xfer_info_t *xfer;
393 xfer = &part->XferInfo[i];
395 xfer->state = XFER_ERASED;
397 xfer->state = XFER_FAILED;
409 struct xfer_info_t *xfer;
415 xfer = &part->XferInfo[i];
416 xfer->state = XFER_FAILED;
418 DEBUG(1, "ftl_cs: preparing xfer unit at 0x%x\n", xfer->Offset);
423 header.EraseCount = cpu_to_le32(xfer->EraseCount);
425 ret = part->mbd.mtd->write(part->mbd.mtd, xfer->Offset, sizeof(header),
436 offset = xfer->Offset + le32_to_cpu(part->header.BAMOffset);
447 xfer->state = XFER_PREPARED;
469 struct xfer_info_t *xfer;
478 xfer = &part->XferInfo[xferunit];
480 eun->Offset, xfer->Offset);
502 xfer->state = XFER_UNKNOWN;
503 offset = xfer->Offset + 20; /* Bad! */
515 src = eun->Offset; dest = xfer->Offset;
529 printk(KERN_WARNING "ftl: Error reading old xfer unit in copy_erase_unit\n");
537 printk(KERN_WARNING "ftl: Error writing new xfer unit in copy_erase_unit\n");
553 ret = part->mbd.mtd->write(part->mbd.mtd, xfer->Offset + le32_to_cpu(part->header.BAMOffset),
563 ret = part->mbd.mtd->write(part->mbd.mtd, xfer->Offset + 20, sizeof(uint16_t),
573 i = xfer->EraseCount;
574 xfer->EraseCount = eun->EraseCount;
576 i = xfer->Offset;
577 xfer->Offset = eun->Offset;
608 uint16_t i, eun, xfer;
615 best = 0xffffffff; xfer = 0xffff;
640 xfer = i;
647 if (xfer == 0xffff) {
665 } while (xfer == 0xffff);
695 ret = copy_erase_unit(part, eun, xfer);
697 erase_xfer(part, xfer);