Searched refs:PUtable (Results 1 - 3 of 3) sorted by relevance

/linux-4.1.27/drivers/mtd/
H A Dinftlmount.c40 * Bad Unit Table. Update the PUtable[] table according to the Bad
41 * Unit Table. PUtable[] is used for management of Erase Unit in
275 inftl->PUtable = kmalloc(inftl->nb_blocks * sizeof(u16), GFP_KERNEL); find_boot_record()
276 if (!inftl->PUtable) { find_boot_record()
277 printk(KERN_WARNING "INFTL: allocation of PUtable " find_boot_record()
285 kfree(inftl->PUtable); find_boot_record()
294 inftl->PUtable[i] = BLOCK_RESERVED; find_boot_record()
297 inftl->PUtable[i] = BLOCK_NOTEXPLORED; find_boot_record()
300 inftl->PUtable[block] = BLOCK_RESERVED; find_boot_record()
302 /* Read Bad Erase Unit Table and modify PUtable[] accordingly */ find_boot_record()
310 inftl->PUtable[i] = BLOCK_RESERVED; find_boot_record()
425 for setting the PUtable to BLOCK_RESERVED on failure) */ INFTL_formatblock()
446 block1 = inftl->PUtable[block]; format_chain()
453 inftl->PUtable[block] = BLOCK_RESERVED; format_chain()
455 inftl->PUtable[block] = BLOCK_FREE; format_chain()
483 pr_debug("PUtable[%d-%d=%d] ->", s->firstEUN, s->lastEUN, s->nb_blocks); INFTL_dumptables()
487 pr_debug("%04x ", s->PUtable[i]); INFTL_dumptables()
525 if (s->PUtable[block] == BLOCK_NIL) INFTL_dumpVUchains()
527 block = s->PUtable[block]; INFTL_dumpVUchains()
581 if (s->PUtable[first_block] != BLOCK_NOTEXPLORED) INFTL_mount()
592 (s->PUtable[block] != BLOCK_NOTEXPLORED)) { INFTL_mount()
617 if (s->PUtable[block] != BLOCK_NOTEXPLORED) { INFTL_mount()
621 s->PUtable[last_block] = block; INFTL_mount()
644 s->PUtable[block] = BLOCK_FREE; INFTL_mount()
673 * block pointer in our PUtable now. Then move onto INFTL_mount()
676 s->PUtable[block] = BLOCK_NIL; INFTL_mount()
678 s->PUtable[last_block] = block; INFTL_mount()
716 * we fold chains. No big deal, just fix them up in PUtable. INFTL_mount()
729 if (s->PUtable[block] == BLOCK_NIL) INFTL_mount()
731 if (s->PUtable[block] > s->lastEUN) { INFTL_mount()
734 s->PUtable[block], logical_block); INFTL_mount()
735 s->PUtable[block] = BLOCK_NIL; INFTL_mount()
745 s->PUtable[last_block] = BLOCK_NIL; INFTL_mount()
751 block = s->PUtable[block]; INFTL_mount()
774 if (s->PUtable[block] == BLOCK_NOTEXPLORED) { INFTL_mount()
778 s->PUtable[block] = BLOCK_RESERVED; INFTL_mount()
780 s->PUtable[block] = BLOCK_FREE; INFTL_mount()
782 if (s->PUtable[block] == BLOCK_FREE) { INFTL_mount()
H A Dinftlcore.c119 kfree(inftl->PUtable); inftl_add_mtd()
138 kfree(inftl->PUtable); inftl_remove_dev()
231 if (inftl->PUtable[pot] == BLOCK_FREE) { INFTL_findfreeblock()
316 thisEUN = inftl->PUtable[thisEUN]; INFTL_foldchain()
380 while (inftl->PUtable[thisEUN] != BLOCK_NIL) { INFTL_foldchain()
382 thisEUN = inftl->PUtable[thisEUN]; INFTL_foldchain()
390 inftl->PUtable[prevEUN] = BLOCK_NIL; INFTL_foldchain()
397 inftl->PUtable[thisEUN] = BLOCK_RESERVED; INFTL_foldchain()
400 inftl->PUtable[thisEUN] = BLOCK_FREE; INFTL_foldchain()
431 EUN = inftl->PUtable[EUN]; INFTL_makefreeblock()
530 thisEUN = inftl->PUtable[thisEUN]; INFTL_findwriteunit()
622 inftl->PUtable[writeEUN] = inftl->VUtable[thisVUC]; INFTL_findwriteunit()
701 thisEUN = inftl->PUtable[thisEUN]; INFTL_trydeletechain()
725 while (inftl->PUtable[thisEUN] != BLOCK_NIL) { INFTL_trydeletechain()
728 prevEUN = &inftl->PUtable[thisEUN]; INFTL_trydeletechain()
739 inftl->PUtable[thisEUN] = BLOCK_RESERVED; INFTL_trydeletechain()
742 inftl->PUtable[thisEUN] = BLOCK_FREE; INFTL_trydeletechain()
800 thisEUN = inftl->PUtable[thisEUN]; INFTL_deleteblock()
910 thisEUN = inftl->PUtable[thisEUN]; inftl_readblock()
/linux-4.1.27/include/linux/mtd/
H A Dinftl.h42 __u16 *PUtable; /* Physical Unit Table */ member in struct:INFTLrecord

Completed in 152 milliseconds