Lines Matching refs:oob
393 * oob = | BBM | M | ECC_0 | ... | ECC_N |
400 static void raw_read(struct nand_chip *chip, u8 *buf, u8 *oob)
403 u8 *oob_orig = oob;
410 if (oob)
411 oob += BBM_SIZE;
413 aux_read(chip, &oob, METADATA_SIZE, &pos);
417 aux_read(chip, &oob, ecc_size, &pos);
424 aux_read(chip, &oob, ecc_size, &pos);
427 static void raw_write(struct nand_chip *chip, const u8 *buf, const u8 *oob)
430 const u8 *oob_orig = oob;
437 if (oob)
438 oob += BBM_SIZE;
440 aux_write(chip, &oob, METADATA_SIZE, &pos);
444 aux_write(chip, &oob, ecc_size, &pos);
451 aux_write(chip, &oob, ecc_size, &pos);