Home
last modified time | relevance | path

Searched refs:inftl (Results 1 – 3 of 3) sorted by relevance

/linux-6.12.1/drivers/mtd/
Dinftlcore.c37 struct INFTLrecord *inftl; in inftl_add_mtd() local
55 inftl = kzalloc(sizeof(*inftl), GFP_KERNEL); in inftl_add_mtd()
57 if (!inftl) in inftl_add_mtd()
60 inftl->mbd.mtd = mtd; in inftl_add_mtd()
61 inftl->mbd.devnum = -1; in inftl_add_mtd()
63 inftl->mbd.tr = tr; in inftl_add_mtd()
65 if (INFTL_mount(inftl) < 0) { in inftl_add_mtd()
67 kfree(inftl); in inftl_add_mtd()
74 inftl->cylinders = 1024; in inftl_add_mtd()
75 inftl->heads = 16; in inftl_add_mtd()
[all …]
Dinftlmount.c31 static int find_boot_record(struct INFTLrecord *inftl) in find_boot_record() argument
37 struct INFTLMediaHeader *mh = &inftl->MediaHdr; in find_boot_record()
38 struct mtd_info *mtd = inftl->mbd.mtd; in find_boot_record()
42 pr_debug("INFTL: find_boot_record(inftl=%p)\n", inftl); in find_boot_record()
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()
52 inftl->MediaUnit = BLOCK_NIL; in find_boot_record()
55 for (block = 0; block < inftl->nb_blocks; block++) { 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()
[all …]
DMakefile18 obj-$(CONFIG_INFTL) += inftl.o
27 inftl-objs := inftlcore.o inftlmount.o