Lines Matching refs:ReplUnitTable

22  *	the ReplUnitTable[] table according to the Bad Unit Table. ReplUnitTable[]
135 nftl->ReplUnitTable[block] = BLOCK_RESERVED;
194 nftl->ReplUnitTable = kmalloc_array(nftl->nb_blocks,
197 if (!nftl->ReplUnitTable) {
204 nftl->ReplUnitTable[i] = BLOCK_RESERVED;
207 nftl->ReplUnitTable[i] = BLOCK_NOTEXPLORED;
211 nftl->ReplUnitTable[block] = BLOCK_RESERVED;
213 /* read the Bad Erase Unit Table and modify ReplUnitTable[] accordingly */
226 kfree(nftl->ReplUnitTable);
231 /* mark the Bad Erase Unit as RESERVED in ReplUnitTable */
233 nftl->ReplUnitTable[i] = BLOCK_RESERVED;
237 nftl->ReplUnitTable[i] = BLOCK_RESERVED;
355 for setting the ReplUnitTable to BLOCK_RESERVED on failure) */
414 block = nftl->ReplUnitTable[block];
416 printk("incorrect ReplUnitTable[] : %d\n", block);
436 block = nftl->ReplUnitTable[block];
438 printk("incorrect ReplUnitTable[] : %d\n", block);
462 block1 = nftl->ReplUnitTable[block];
467 nftl->ReplUnitTable[block] = BLOCK_RESERVED;
469 nftl->ReplUnitTable[block] = BLOCK_FREE;
476 printk("incorrect ReplUnitTable[] : %d\n", block);
588 if (s->ReplUnitTable[first_block] == BLOCK_NOTEXPLORED) {
602 s->ReplUnitTable[block] = BLOCK_NIL;
623 s->ReplUnitTable[block] = BLOCK_RESERVED;
625 s->ReplUnitTable[block] = BLOCK_FREE;
629 s->ReplUnitTable[block] = BLOCK_FREE;
638 s->ReplUnitTable[block] = BLOCK_NIL;
680 s->ReplUnitTable[block] = BLOCK_NIL;
686 s->ReplUnitTable[block] = BLOCK_NIL;
688 } else if (s->ReplUnitTable[rep_block] != BLOCK_NOTEXPLORED) {
694 if (s->ReplUnitTable[rep_block] == BLOCK_NIL &&
700 s->ReplUnitTable[block] = rep_block;
707 s->ReplUnitTable[block] = BLOCK_NIL;
712 s->ReplUnitTable[block] = rep_block;
768 if (s->ReplUnitTable[block] == BLOCK_NOTEXPLORED) {
771 s->ReplUnitTable[block] = BLOCK_RESERVED;
773 s->ReplUnitTable[block] = BLOCK_FREE;
775 if (s->ReplUnitTable[block] == BLOCK_FREE) {