Lines Matching refs:oob
381 static uint8_t *nand_fill_oob(struct nand_chip *chip, uint8_t *oob, size_t len, in nand_fill_oob() argument
397 memcpy(chip->oob_poi + ops->ooboffs, oob, len); in nand_fill_oob()
398 return oob + len; in nand_fill_oob()
401 ret = mtd_ooblayout_set_databytes(mtd, oob, chip->oob_poi, in nand_fill_oob()
404 return oob + len; in nand_fill_oob()
2886 uint8_t *oob = chip->oob_poi; in nand_read_page_raw_syndrome() local
2901 ret = nand_read_data_op(chip, oob, chip->ecc.prepad, in nand_read_page_raw_syndrome()
2906 oob += chip->ecc.prepad; in nand_read_page_raw_syndrome()
2909 ret = nand_read_data_op(chip, oob, eccbytes, false, false); in nand_read_page_raw_syndrome()
2913 oob += eccbytes; in nand_read_page_raw_syndrome()
2916 ret = nand_read_data_op(chip, oob, chip->ecc.postpad, in nand_read_page_raw_syndrome()
2921 oob += chip->ecc.postpad; in nand_read_page_raw_syndrome()
2925 size = mtd->oobsize - (oob - chip->oob_poi); in nand_read_page_raw_syndrome()
2927 ret = nand_read_data_op(chip, oob, size, false, false); in nand_read_page_raw_syndrome()
3182 uint8_t *oob = chip->oob_poi; in nand_read_page_syndrome() local
3199 ret = nand_read_data_op(chip, oob, chip->ecc.prepad, in nand_read_page_syndrome()
3204 oob += chip->ecc.prepad; in nand_read_page_syndrome()
3209 ret = nand_read_data_op(chip, oob, eccbytes, false, false); in nand_read_page_syndrome()
3213 stat = chip->ecc.correct(chip, p, oob, NULL); in nand_read_page_syndrome()
3215 oob += eccbytes; in nand_read_page_syndrome()
3218 ret = nand_read_data_op(chip, oob, chip->ecc.postpad, in nand_read_page_syndrome()
3223 oob += chip->ecc.postpad; in nand_read_page_syndrome()
3230 oob - eccpadbytes, in nand_read_page_syndrome()
3245 i = mtd->oobsize - (oob - chip->oob_poi); in nand_read_page_syndrome()
3247 ret = nand_read_data_op(chip, oob, i, false, false); in nand_read_page_syndrome()
3262 static uint8_t *nand_transfer_oob(struct nand_chip *chip, uint8_t *oob, in nand_transfer_oob() argument
3272 memcpy(oob, chip->oob_poi + ops->ooboffs, len); in nand_transfer_oob()
3273 return oob + len; in nand_transfer_oob()
3276 ret = mtd_ooblayout_get_databytes(mtd, oob, chip->oob_poi, in nand_transfer_oob()
3279 return oob + len; in nand_transfer_oob()
3338 uint8_t *bufpoi, *oob, *buf; in nand_do_read_ops() local
3357 oob = ops->oobbuf; in nand_do_read_ops()
3358 oob_required = oob ? 1 : 0; in nand_do_read_ops()
3376 if (realpage != chip->pagecache.page || oob) { in nand_do_read_ops()
3393 !oob) in nand_do_read_ops()
3411 if (!NAND_HAS_SUBPAGE_READ(chip) && !oob && in nand_do_read_ops()
3423 if (unlikely(oob)) { in nand_do_read_ops()
3427 oob = nand_transfer_oob(chip, oob, ops, in nand_do_read_ops()
3490 if (oob) in nand_do_read_ops()
3869 uint8_t *oob = chip->oob_poi; in nand_write_page_raw_syndrome() local
3884 ret = nand_write_data_op(chip, oob, chip->ecc.prepad, in nand_write_page_raw_syndrome()
3889 oob += chip->ecc.prepad; in nand_write_page_raw_syndrome()
3892 ret = nand_write_data_op(chip, oob, eccbytes, false); in nand_write_page_raw_syndrome()
3896 oob += eccbytes; in nand_write_page_raw_syndrome()
3899 ret = nand_write_data_op(chip, oob, chip->ecc.postpad, in nand_write_page_raw_syndrome()
3904 oob += chip->ecc.postpad; in nand_write_page_raw_syndrome()
3908 size = mtd->oobsize - (oob - chip->oob_poi); in nand_write_page_raw_syndrome()
3910 ret = nand_write_data_op(chip, oob, size, false); in nand_write_page_raw_syndrome()
4078 uint8_t *oob = chip->oob_poi; in nand_write_page_syndrome() local
4093 ret = nand_write_data_op(chip, oob, chip->ecc.prepad, in nand_write_page_syndrome()
4098 oob += chip->ecc.prepad; in nand_write_page_syndrome()
4101 chip->ecc.calculate(chip, p, oob); in nand_write_page_syndrome()
4103 ret = nand_write_data_op(chip, oob, eccbytes, false); in nand_write_page_syndrome()
4107 oob += eccbytes; in nand_write_page_syndrome()
4110 ret = nand_write_data_op(chip, oob, chip->ecc.postpad, in nand_write_page_syndrome()
4115 oob += chip->ecc.postpad; in nand_write_page_syndrome()
4120 i = mtd->oobsize - (oob - chip->oob_poi); in nand_write_page_syndrome()
4122 ret = nand_write_data_op(chip, oob, i, false); in nand_write_page_syndrome()
4188 uint8_t *oob = ops->oobbuf; in nand_do_write_ops() local
4191 int oob_required = oob ? 1 : 0; in nand_do_write_ops()
4228 if (oob && ops->ooboffs && (ops->ooboffs + ops->ooblen > oobmaxlen)) { in nand_do_write_ops()
4262 if (unlikely(oob)) { in nand_do_write_ops()
4264 oob = nand_fill_oob(chip, oob, len, ops); in nand_do_write_ops()
4295 if (unlikely(oob)) in nand_do_write_ops()