···801801 * nand_read_subpage - [REPLACABLE] software ecc based sub-page read function802802 * @mtd: mtd info structure803803 * @chip: nand chip info structure804804- * @dataofs offset of requested data within the page805805- * @readlen data length806806- * @buf: buffer to store read data804804+ * @data_offs: offset of requested data within the page805805+ * @readlen: data length806806+ * @bufpoi: buffer to store read data807807 */808808static int nand_read_subpage(struct mtd_info *mtd, struct nand_chip *chip, uint32_t data_offs, uint32_t readlen, uint8_t *bufpoi)809809{
+3-3
drivers/mtd/nand/nand_ecc.c
···150150/**151151 * nand_calculate_ecc - [NAND Interface] Calculate 3-byte ECC for 256-byte block152152 * @mtd: MTD block structure (unused)153153- * @dat: raw data154154- * @ecc_code: buffer for ECC153153+ * @buf: input buffer with raw data154154+ * @code: output buffer with ECC155155 */156156int nand_calculate_ecc(struct mtd_info *mtd, const unsigned char *buf,157157 unsigned char *code)···390390/**391391 * nand_correct_data - [NAND Interface] Detect and correct bit error(s)392392 * @mtd: MTD block structure (unused)393393- * @dat: raw data read from the chip393393+ * @buf: raw data read from the chip394394 * @read_ecc: ECC from the chip395395 * @calc_ecc: the ECC calculated from raw data396396 *
+1
include/linux/mtd/nand.h
···248248 * @read_page_raw: function to read a raw page without ECC249249 * @write_page_raw: function to write a raw page without ECC250250 * @read_page: function to read a page according to the ecc generator requirements251251+ * @read_subpage: function to read parts of the page covered by ECC.251252 * @write_page: function to write a page according to the ecc generator requirements252253 * @read_oob: function to read chip OOB data253254 * @write_oob: function to write chip OOB data