Lines Matching defs:nand
108 struct nand_chip *nand = mtd_to_nand(mtd);
112 unsigned int eccsize = nand->ecc.size;
113 unsigned int eccbytes = nand->ecc.bytes;
114 unsigned int eccstrength = nand->ecc.strength;
118 nand->ecc.bytes = eccbytes;
166 nand->ecc.steps = eccsteps;
167 nand->ecc.total = eccsteps * eccbytes;
168 nand->base.ecc.ctx.total = nand->ecc.total;
193 nand->ecc.strength = (eccbytes * 8) / fls(8 * eccsize);