Home
last modified time | relevance | path

Searched refs:nb_blocks (Results 1 – 6 of 6) sorted by relevance

/linux-3.4.99/drivers/mtd/
Dinftlmount.c64 inftl->nb_blocks = (u32)inftl->mbd.mtd->size / inftl->EraseSize; in find_boot_record()
69 for (block = 0; block < inftl->nb_blocks; block++) { in find_boot_record()
185 inftl->nb_blocks = (u32)inftl->mbd.mtd->size / inftl->EraseSize; in find_boot_record()
254 if (inftl->numvunits > (inftl->nb_blocks - in find_boot_record()
259 inftl->numvunits, inftl->nb_blocks, in find_boot_record()
273 inftl->nb_blocks = ip->lastUnit + 1; in find_boot_record()
276 inftl->PUtable = kmalloc(inftl->nb_blocks * sizeof(u16), GFP_KERNEL); in find_boot_record()
280 inftl->nb_blocks * sizeof(u16)); in find_boot_record()
284 inftl->VUtable = kmalloc(inftl->nb_blocks * sizeof(u16), GFP_KERNEL); in find_boot_record()
289 inftl->nb_blocks * sizeof(u16)); in find_boot_record()
[all …]
Dnftlmount.c55 nftl->nb_blocks = (u32)nftl->mbd.mtd->size / nftl->EraseSize; in find_boot_record()
61 for (block = 0; block < nftl->nb_blocks; block++) { in find_boot_record()
172 nftl->nb_blocks = (u32)nftl->mbd.mtd->size / nftl->EraseSize; in find_boot_record()
176 if ((nftl->nb_boot_blocks + 2) >= nftl->nb_blocks) { in find_boot_record()
179 nftl->nb_boot_blocks, nftl->nb_blocks); in find_boot_record()
184 if (nftl->numvunits > (nftl->nb_blocks - nftl->nb_boot_blocks - 2)) { in find_boot_record()
187 nftl->numvunits, nftl->nb_blocks, nftl->nb_boot_blocks); in find_boot_record()
195 nftl->nb_blocks = le16_to_cpu(mh->NumEraseUnits) + le16_to_cpu(mh->FirstPhysicalEUN); in find_boot_record()
198 nftl->lastEUN = nftl->nb_blocks - 1; in find_boot_record()
201 nftl->EUNtable = kmalloc(nftl->nb_blocks * sizeof(u16), GFP_KERNEL); in find_boot_record()
[all …]
Dinftlcore.c214 int silly = inftl->nb_blocks; in INFTL_findfreeblock()
279 while (thisEUN < inftl->nb_blocks) { in INFTL_foldchain()
425 for (chain = 0; chain < inftl->nb_blocks; chain++) { in INFTL_makefreeblock()
593 if (prev_block < inftl->nb_blocks) in INFTL_findwriteunit()
666 while (thisEUN < inftl->nb_blocks) { in INFTL_trydeletechain()
726 BUG_ON(thisEUN >= inftl->nb_blocks); in INFTL_trydeletechain()
771 while (thisEUN < inftl->nb_blocks) { in INFTL_deleteblock()
880 while (thisEUN < inftl->nb_blocks) { in inftl_readblock()
Dnftlcore.c210 int silly = nftl->nb_blocks; in NFTL_findfreeblock()
730 while (thisEUN < nftl->nb_blocks) { in nftl_readblock()
/linux-3.4.99/include/linux/mtd/
Dnftl.h50 unsigned int nb_blocks; /* number of physical blocks */ member
Dinftl.h44 unsigned int nb_blocks; /* number of physical blocks */ member