Searched refs:EraseSize (Results 1 – 6 of 6) sorted by relevance
/linux-6.12.1/drivers/mtd/ |
D | nftlmount.c | 41 nftl->EraseSize = nftl->mbd.mtd->erasesize; in find_boot_record() 42 nftl->nb_blocks = (u32)nftl->mbd.mtd->size / nftl->EraseSize; in find_boot_record() 53 ret = mtd_read(mtd, block * nftl->EraseSize, SECTORSIZE, in find_boot_record() 62 block * nftl->EraseSize, nftl->mbd.mtd->index, ret); in find_boot_record() 73 block * nftl->EraseSize, nftl->mbd.mtd->index); in find_boot_record() 79 ret = nftl_read_oob(mtd, block * nftl->EraseSize + in find_boot_record() 84 block * nftl->EraseSize, nftl->mbd.mtd->index, ret); in find_boot_record() 94 block * nftl->EraseSize, nftl->mbd.mtd->index, in find_boot_record() 100 ret = mtd->read(mtd, block * nftl->EraseSize, SECTORSIZE, in find_boot_record() 104 block * nftl->EraseSize, nftl->mbd.mtd->index, ret); in find_boot_record() [all …]
|
D | nftlcore.c | 265 for (block = 0; block < nftl->EraseSize / 512; block ++) { in NFTL_foldchain() 266 nftl_read_oob(mtd, (thisEUN * nftl->EraseSize) + in NFTL_foldchain() 333 for (block = 0; block < nftl->EraseSize / 512 ; block++) { in NFTL_foldchain() 349 if (pendingblock >= (thisVUC * (nftl->EraseSize / 512)) && in NFTL_foldchain() 350 pendingblock < ((thisVUC + 1)* (nftl->EraseSize / 512)) && in NFTL_foldchain() 351 BlockLastState[pendingblock - (thisVUC * (nftl->EraseSize / 512))] != in NFTL_foldchain() 382 nftl_write_oob(mtd, (nftl->EraseSize * targetEUN) + 2 * 512 + 8, in NFTL_foldchain() 391 for (block = 0; block < nftl->EraseSize / 512 ; block++) { in NFTL_foldchain() 397 (pendingblock == (thisVUC * (nftl->EraseSize / 512) + block))) { in NFTL_foldchain() 407 (nftl->EraseSize * BlockMap[block]) + (block * 512), in NFTL_foldchain() [all …]
|
D | inftlcore.c | 267 for (block = 0; block < inftl->EraseSize/SECTORSIZE; block ++) { in INFTL_foldchain() 272 if (inftl_read_oob(mtd, (thisEUN * inftl->EraseSize) in INFTL_foldchain() 313 for (block = 0; block < inftl->EraseSize/SECTORSIZE ; block++) { in INFTL_foldchain() 322 (thisVUC * (inftl->EraseSize / SECTORSIZE) + block))) { in INFTL_foldchain() 334 (inftl->EraseSize * BlockMap[block]) + (block * SECTORSIZE), in INFTL_foldchain() 340 (inftl->EraseSize * BlockMap[block]) + (block * SECTORSIZE), in INFTL_foldchain() 350 inftl_write(inftl->mbd.mtd, (inftl->EraseSize * targetEUN) + in INFTL_foldchain() 462 unsigned int thisVUC = block / (inftl->EraseSize / SECTORSIZE); in INFTL_findwriteunit() 464 unsigned long blockofs = (block * SECTORSIZE) & (inftl->EraseSize -1); in INFTL_findwriteunit() 485 inftl_read_oob(mtd, (thisEUN * inftl->EraseSize) + in INFTL_findwriteunit() [all …]
|
D | inftlmount.c | 49 inftl->EraseSize = inftl->mbd.mtd->erasesize; in find_boot_record() 50 inftl->nb_blocks = (u32)inftl->mbd.mtd->size / inftl->EraseSize; in find_boot_record() 62 ret = mtd_read(mtd, block * inftl->EraseSize, SECTORSIZE, in find_boot_record() 72 block * inftl->EraseSize, in find_boot_record() 89 block * inftl->EraseSize + SECTORSIZE + 8, in find_boot_record() 94 "(err %d)\n", block * inftl->EraseSize, in find_boot_record() 107 mtd_read(mtd, block * inftl->EraseSize + 4096, SECTORSIZE, in find_boot_record() 169 inftl->EraseSize = inftl->mbd.mtd->erasesize << in find_boot_record() 171 inftl->nb_blocks = (u32)inftl->mbd.mtd->size / inftl->EraseSize; in find_boot_record() 205 instr->addr = ip->Reserved0 * inftl->EraseSize; in find_boot_record() [all …]
|
/linux-6.12.1/include/linux/mtd/ |
D | nftl.h | 23 __u32 EraseSize; member
|
D | inftl.h | 31 __u32 EraseSize; member
|