Lines Matching refs:writeEUN
527 unsigned int writeEUN;
542 writeEUN = nftl->EUNtable[thisVUC];
544 while (writeEUN <= nftl->lastEUN) {
549 lastEUN = writeEUN;
552 (writeEUN * nftl->EraseSize) + blockofs,
556 block , writeEUN, le16_to_cpu(bci.Status));
561 return writeEUN;
580 writeEUN = nftl->ReplUnitTable[writeEUN];
587 writeEUN = NFTL_findfreeblock(nftl, 0);
589 if (writeEUN == BLOCK_NIL) {
599 writeEUN = NFTL_makefreeblock(nftl, BLOCK_NIL);
601 if (writeEUN == BLOCK_NIL) {
609 writeEUN = NFTL_findfreeblock(nftl, 1);
611 if (writeEUN == BLOCK_NIL) {
631 nftl->EUNtable[thisVUC] = writeEUN;
636 nftl->ReplUnitTable[writeEUN] = BLOCK_NIL;
639 nftl_read_oob(mtd, writeEUN * nftl->EraseSize + 8, 8,
644 nftl_write_oob(mtd, writeEUN * nftl->EraseSize + 8, 8,
652 nftl->ReplUnitTable[lastEUN] = writeEUN;
658 = cpu_to_le16(writeEUN);
664 return writeEUN;
677 u16 writeEUN;
682 writeEUN = NFTL_findwriteunit(nftl, block);
684 if (writeEUN == BLOCK_NIL) {
694 nftl_write(nftl->mbd.mtd, (writeEUN * nftl->EraseSize) + blockofs,