Lines Matching refs:oob
715 static void sunxi_nfc_hw_ecc_get_prot_oob_bytes(struct nand_chip *nand, u8 *oob,
721 oob);
725 sunxi_nfc_randomize_bbm(nand, page, oob);
729 const u8 *oob, int step,
737 memcpy(user_data, oob, sizeof(user_data));
739 oob = user_data;
742 writel(sunxi_nfc_buf_to_user_data(oob),
759 static int sunxi_nfc_hw_ecc_correct(struct nand_chip *nand, u8 *data, u8 *oob,
784 if (oob)
785 memset(oob, pattern, ecc->bytes + 4);
797 u8 *oob, int oob_off,
831 ret = sunxi_nfc_hw_ecc_correct(nand, data, oob_required ? oob : NULL, 0,
849 nand_change_read_column_op(nand, oob_off, oob, ecc->bytes + 4,
853 oob, ecc->bytes + 4,
863 sunxi_nfc_randomizer_read_buf(nand, oob, ecc->bytes + 4,
866 sunxi_nfc_hw_ecc_get_prot_oob_bytes(nand, oob, 0,
877 u8 *oob, int *cur_off,
893 sunxi_nfc_read_buf(nand, oob + offset, len);
895 sunxi_nfc_randomizer_read_buf(nand, oob + offset, len,
959 u8 *oob = nand->oob_poi + oob_off;
963 oob_required ? oob : NULL,
974 oob, ecc->bytes + 4, false);
976 sunxi_nfc_hw_ecc_get_prot_oob_bytes(nand, oob, i,
991 u8 *oob = nand->oob_poi + oob_off;
1009 oob, ecc->bytes + 4, false);
1012 oob, ecc->bytes + 4,
1032 const u8 *oob, int oob_off,
1053 sunxi_nfc_hw_ecc_set_prot_oob_bytes(nand, oob, 0, bbm, page);
1070 u8 *oob, int *cur_off,
1085 sunxi_nfc_randomizer_write_buf(nand, oob + offset, len, false, page);
1110 u8 *oob = nand->oob_poi + oob_off;
1112 ret = sunxi_nfc_hw_ecc_read_chunk(nand, data, data_off, oob,
1169 u8 *oob = nand->oob_poi + oob_off;
1172 oob,
1223 const u8 *oob = nand->oob_poi + oob_off;
1225 ret = sunxi_nfc_hw_ecc_write_chunk(nand, data, data_off, oob,
1261 const u8 *oob = nand->oob_poi + oob_off;
1263 ret = sunxi_nfc_hw_ecc_write_chunk(nand, data, data_off, oob,
1298 const u8 *oob = nand->oob_poi + (i * (ecc->bytes + 4));
1300 sunxi_nfc_hw_ecc_set_prot_oob_bytes(nand, oob, i, !i, page);