Lines Matching refs:mbd
75 nftl->mbd.mtd = mtd;
76 nftl->mbd.devnum = -1;
78 nftl->mbd.tr = tr;
93 nftl->sectors = nftl->mbd.size / temp;
94 if (nftl->mbd.size % temp) {
97 nftl->heads = nftl->mbd.size / temp;
99 if (nftl->mbd.size % temp) {
102 nftl->cylinders = nftl->mbd.size / temp;
106 if (nftl->mbd.size != nftl->heads * nftl->cylinders * nftl->sectors) {
109 mbd.size == heads * cylinders * sectors
112 "match size of 0x%lx.\n", nftl->mbd.size);
120 if (add_mtd_blktrans_dev(&nftl->mbd)) {
127 printk(KERN_INFO "NFTL: Found new nftl%c\n", nftl->mbd.devnum + 'a');
255 struct mtd_info *mtd = nftl->mbd.mtd;
441 nftl_write(nftl->mbd.mtd, (nftl->EraseSize * targetEUN) +
544 struct mtd_info *mtd = nftl->mbd.mtd;
692 static int nftl_writeblock(struct mtd_blktrans_dev *mbd, unsigned long block,
695 struct NFTLrecord *nftl = (void *)mbd;
713 nftl_write(nftl->mbd.mtd, (writeEUN * nftl->EraseSize) + blockofs,
719 static int nftl_readblock(struct mtd_blktrans_dev *mbd, unsigned long block,
722 struct NFTLrecord *nftl = (void *)mbd;
723 struct mtd_info *mtd = nftl->mbd.mtd;