Lines Matching defs:writeEUN
545 unsigned int writeEUN;
560 writeEUN = nftl->EUNtable[thisVUC];
562 while (writeEUN <= nftl->lastEUN) {
567 lastEUN = writeEUN;
570 (writeEUN * nftl->EraseSize) + blockofs,
574 block , writeEUN, le16_to_cpu(bci.Status));
579 return writeEUN;
598 writeEUN = nftl->ReplUnitTable[writeEUN];
605 writeEUN = NFTL_findfreeblock(nftl, 0);
607 if (writeEUN == BLOCK_NIL) {
617 writeEUN = NFTL_makefreeblock(nftl, BLOCK_NIL);
619 if (writeEUN == BLOCK_NIL) {
627 writeEUN = NFTL_findfreeblock(nftl, 1);
629 if (writeEUN == BLOCK_NIL) {
650 nftl->EUNtable[thisVUC] = writeEUN;
655 nftl->ReplUnitTable[writeEUN] = BLOCK_NIL;
658 nftl_read_oob(mtd, writeEUN * nftl->EraseSize + 8, 8,
663 nftl_write_oob(mtd, writeEUN * nftl->EraseSize + 8, 8,
671 nftl->ReplUnitTable[lastEUN] = writeEUN;
677 = cpu_to_le16(writeEUN);
683 return writeEUN;
696 u16 writeEUN;
701 writeEUN = NFTL_findwriteunit(nftl, block);
703 if (writeEUN == BLOCK_NIL) {
713 nftl_write(nftl->mbd.mtd, (writeEUN * nftl->EraseSize) + blockofs,