Lines Matching refs:oob
716 static void sunxi_nfc_hw_ecc_get_prot_oob_bytes(struct nand_chip *nand, u8 *oob,
722 oob);
726 sunxi_nfc_randomize_bbm(nand, page, oob);
730 const u8 *oob, int step,
738 memcpy(user_data, oob, sizeof(user_data));
740 oob = user_data;
743 writel(sunxi_nfc_buf_to_user_data(oob),
760 static int sunxi_nfc_hw_ecc_correct(struct nand_chip *nand, u8 *data, u8 *oob,
785 if (oob)
786 memset(oob, pattern, ecc->bytes + 4);
798 u8 *oob, int oob_off,
832 ret = sunxi_nfc_hw_ecc_correct(nand, data, oob_required ? oob : NULL, 0,
850 nand_change_read_column_op(nand, oob_off, oob, ecc->bytes + 4,
854 oob, ecc->bytes + 4,
864 sunxi_nfc_randomizer_read_buf(nand, oob, ecc->bytes + 4,
867 sunxi_nfc_hw_ecc_get_prot_oob_bytes(nand, oob, 0,
878 u8 *oob, int *cur_off,
894 sunxi_nfc_read_buf(nand, oob + offset, len);
896 sunxi_nfc_randomizer_read_buf(nand, oob + offset, len,
955 u8 *oob = nand->oob_poi + oob_off;
959 oob_required ? oob : NULL,
970 oob, ecc->bytes + 4, false);
972 sunxi_nfc_hw_ecc_get_prot_oob_bytes(nand, oob, i,
987 u8 *oob = nand->oob_poi + oob_off;
1005 oob, ecc->bytes + 4, false);
1008 oob, ecc->bytes + 4,
1028 const u8 *oob, int oob_off,
1049 sunxi_nfc_hw_ecc_set_prot_oob_bytes(nand, oob, 0, bbm, page);
1066 u8 *oob, int *cur_off,
1081 sunxi_nfc_randomizer_write_buf(nand, oob + offset, len, false, page);
1106 u8 *oob = nand->oob_poi + oob_off;
1108 ret = sunxi_nfc_hw_ecc_read_chunk(nand, data, data_off, oob,
1165 u8 *oob = nand->oob_poi + oob_off;
1168 oob,
1219 const u8 *oob = nand->oob_poi + oob_off;
1221 ret = sunxi_nfc_hw_ecc_write_chunk(nand, data, data_off, oob,
1257 const u8 *oob = nand->oob_poi + oob_off;
1259 ret = sunxi_nfc_hw_ecc_write_chunk(nand, data, data_off, oob,
1293 const u8 *oob = nand->oob_poi + (i * (ecc->bytes + 4));
1295 sunxi_nfc_hw_ecc_set_prot_oob_bytes(nand, oob, i, !i, page);