Searched refs:nftl (Results 1 – 6 of 6) sorted by relevance
37 struct NFTLrecord *nftl; in nftl_add_mtd() local48 nftl = kzalloc(sizeof(struct NFTLrecord), GFP_KERNEL); in nftl_add_mtd()50 if (!nftl) in nftl_add_mtd()53 nftl->mbd.mtd = mtd; in nftl_add_mtd()54 nftl->mbd.devnum = -1; in nftl_add_mtd()56 nftl->mbd.tr = tr; in nftl_add_mtd()58 if (NFTL_mount(nftl) < 0) { in nftl_add_mtd()60 kfree(nftl); in nftl_add_mtd()67 nftl->cylinders = 1024; in nftl_add_mtd()68 nftl->heads = 16; in nftl_add_mtd()[all …]
25 static int find_boot_record(struct NFTLrecord *nftl) in find_boot_record() argument31 struct NFTLMediaHeader *mh = &nftl->MediaHdr; in find_boot_record()32 struct mtd_info *mtd = nftl->mbd.mtd; in find_boot_record()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()44 nftl->MediaUnit = BLOCK_NIL; in find_boot_record()45 nftl->SpareMediaUnit = BLOCK_NIL; in find_boot_record()48 for (block = 0; block < nftl->nb_blocks; block++) { 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()[all …]
17 obj-$(CONFIG_NFTL) += nftl.o26 nftl-objs := nftlcore.o nftlmount.o
12 #error This is a kernel header. Perhaps include nftl-user.h instead?
31153 nftl-objs := nftlcore.o nftlmount.o
322104 nftl-objs := nftlcore.o nftlmount.o