Lines Matching defs:buf
1087 static int marvell_nfc_hw_ecc_hmg_read_page_raw(struct nand_chip *chip, u8 *buf,
1091 return marvell_nfc_hw_ecc_hmg_do_read_page(chip, buf, chip->oob_poi,
1095 static int marvell_nfc_hw_ecc_hmg_read_page(struct nand_chip *chip, u8 *buf,
1105 marvell_nfc_hw_ecc_hmg_do_read_page(chip, buf, chip->oob_poi, false,
1137 u8 *buf = nand_get_data_buf(chip);
1140 return marvell_nfc_hw_ecc_hmg_do_read_page(chip, buf, chip->oob_poi,
1214 const u8 *buf,
1218 return marvell_nfc_hw_ecc_hmg_do_write_page(chip, buf, chip->oob_poi,
1223 const u8 *buf,
1230 ret = marvell_nfc_hw_ecc_hmg_do_write_page(chip, buf, chip->oob_poi,
1246 u8 *buf = nand_get_data_buf(chip);
1248 memset(buf, 0xFF, mtd->writesize);
1251 return marvell_nfc_hw_ecc_hmg_do_write_page(chip, buf, chip->oob_poi,
1256 static int marvell_nfc_hw_ecc_bch_read_page_raw(struct nand_chip *chip, u8 *buf,
1287 buf + (lt->data_bytes * chunk),
1371 u8 *buf, int oob_required,
1377 u8 *data = buf, *spare = chip->oob_poi;
1475 buf + data_off, data_len,
1487 marvell_nfc_check_empty_chunk(chip, buf + data_off, data_len,
1498 u8 *buf = nand_get_data_buf(chip);
1500 return chip->ecc.read_page_raw(chip, buf, true, page);
1505 u8 *buf = nand_get_data_buf(chip);
1507 return chip->ecc.read_page(chip, buf, true, page);
1512 const u8 *buf,
1541 nand_write_data_op(chip, buf + (chunk * lt->data_bytes),
1627 const u8 *buf,
1634 const u8 *data = buf;
1691 u8 *buf = nand_get_data_buf(chip);
1693 memset(buf, 0xFF, mtd->writesize);
1695 return chip->ecc.write_page_raw(chip, buf, true, page);
1701 u8 *buf = nand_get_data_buf(chip);
1703 memset(buf, 0xFF, mtd->writesize);
1705 return chip->ecc.write_page(chip, buf, true, page);
1815 u8 *in = instr->ctx.data.buf.in + offset;
1819 const u8 *out = instr->ctx.data.buf.out + offset;