Lines Matching defs:buf

1073 static int marvell_nfc_hw_ecc_hmg_read_page_raw(struct nand_chip *chip, u8 *buf,
1077 return marvell_nfc_hw_ecc_hmg_do_read_page(chip, buf, chip->oob_poi,
1081 static int marvell_nfc_hw_ecc_hmg_read_page(struct nand_chip *chip, u8 *buf,
1091 marvell_nfc_hw_ecc_hmg_do_read_page(chip, buf, chip->oob_poi, false,
1123 u8 *buf = nand_get_data_buf(chip);
1126 return marvell_nfc_hw_ecc_hmg_do_read_page(chip, buf, chip->oob_poi,
1200 const u8 *buf,
1204 return marvell_nfc_hw_ecc_hmg_do_write_page(chip, buf, chip->oob_poi,
1209 const u8 *buf,
1216 ret = marvell_nfc_hw_ecc_hmg_do_write_page(chip, buf, chip->oob_poi,
1232 u8 *buf = nand_get_data_buf(chip);
1234 memset(buf, 0xFF, mtd->writesize);
1237 return marvell_nfc_hw_ecc_hmg_do_write_page(chip, buf, chip->oob_poi,
1242 static int marvell_nfc_hw_ecc_bch_read_page_raw(struct nand_chip *chip, u8 *buf,
1273 buf + (lt->data_bytes * chunk),
1357 u8 *buf, int oob_required,
1363 u8 *data = buf, *spare = chip->oob_poi;
1461 buf + data_off, data_len,
1473 marvell_nfc_check_empty_chunk(chip, buf + data_off, data_len,
1484 u8 *buf = nand_get_data_buf(chip);
1486 return chip->ecc.read_page_raw(chip, buf, true, page);
1491 u8 *buf = nand_get_data_buf(chip);
1493 return chip->ecc.read_page(chip, buf, true, page);
1498 const u8 *buf,
1527 nand_write_data_op(chip, buf + (chunk * lt->data_bytes),
1613 const u8 *buf,
1620 const u8 *data = buf;
1677 u8 *buf = nand_get_data_buf(chip);
1679 memset(buf, 0xFF, mtd->writesize);
1681 return chip->ecc.write_page_raw(chip, buf, true, page);
1687 u8 *buf = nand_get_data_buf(chip);
1689 memset(buf, 0xFF, mtd->writesize);
1691 return chip->ecc.write_page(chip, buf, true, page);
1801 u8 *in = instr->ctx.data.buf.in + offset;
1805 const u8 *out = instr->ctx.data.buf.out + offset;