Lines Matching defs:thisVUC
253 static u16 NFTL_foldchain (struct NFTLrecord *nftl, unsigned thisVUC, unsigned pendingblock )
270 thisEUN = nftl->EUNtable[thisVUC];
274 "Virtual Unit Chain %d!\n", thisVUC);
319 thisVUC, block);
328 thisVUC, block);
341 thisVUC);
363 thisVUC, block, BlockLastState[block],
372 if (pendingblock >= (thisVUC * (nftl->EraseSize / 512)) &&
373 pendingblock < ((thisVUC + 1)* (nftl->EraseSize / 512)) &&
374 BlockLastState[pendingblock - (thisVUC * (nftl->EraseSize / 512))] !=
384 "Trying out-of-place\n", thisVUC);
413 DEBUG(MTD_DEBUG_LEVEL1,"Folding chain %d into unit %d\n", thisVUC, targetEUN);
420 (pendingblock == (thisVUC * (nftl->EraseSize / 512) + block))) {
446 oob.u.a.VirtUnitNum = oob.u.a.SpareVirtUnitNum = cpu_to_le16(thisVUC);
459 thisEUN = nftl->EUNtable[thisVUC];
481 /* Make this the new start of chain for thisVUC */
483 nftl->EUNtable[thisVUC] = targetEUN;
543 u16 thisVUC = block / (nftl->EraseSize / 512);
560 writeEUN = nftl->EUNtable[thisVUC];
593 thisVUC);
614 //u16 startEUN = nftl->EUNtable[thisVUC];
616 //printk("Write to VirtualUnitChain %d, calling makefreeblock()\n", thisVUC);
626 DEBUG(MTD_DEBUG_LEVEL1, "Using desperate==1 to find free EUN to accommodate write to VUC %d\n", thisVUC);
647 thisVUC |= 0x8000; /* It's a replacement block */
650 nftl->EUNtable[thisVUC] = writeEUN;
661 oob.u.a.VirtUnitNum = oob.u.a.SpareVirtUnitNum = cpu_to_le16(thisVUC);
688 thisVUC);