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) {
632 nftl->EUNtable[thisVUC] = writeEUN;
637 nftl->ReplUnitTable[writeEUN] = BLOCK_NIL;
640 nftl_read_oob(mtd, writeEUN * nftl->EraseSize + 8, 8,
645 nftl_write_oob(mtd, writeEUN * nftl->EraseSize + 8, 8,
653 nftl->ReplUnitTable[lastEUN] = writeEUN;
659 = cpu_to_le16(writeEUN);
665 return writeEUN;
678 u16 writeEUN;
683 writeEUN = NFTL_findwriteunit(nftl, block);
685 if (writeEUN == BLOCK_NIL) {
695 nftl_write(nftl->mbd.mtd, (writeEUN * nftl->EraseSize) + blockofs,