'\" t .\" Title: __nand_correct_data .\" Author: .\" Generator: DocBook XSL Stylesheets v1.78.1 .\" Date: January 2017 .\" Manual: Public Functions Provided .\" Source: Kernel Hackers Manual 4.8.15 .\" Language: English .\" .TH "__NAND_CORRECT_DATA" "9" "January 2017" "Kernel Hackers Manual 4\&.8\&." "Public Functions Provided" .\" ----------------------------------------------------------------- .\" * Define some portability stuff .\" ----------------------------------------------------------------- .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .\" http://bugs.debian.org/507673 .\" http://lists.gnu.org/archive/html/groff/2009-02/msg00013.html .\" ~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~ .ie \n(.g .ds Aq \(aq .el .ds Aq ' .\" ----------------------------------------------------------------- .\" * set default formatting .\" ----------------------------------------------------------------- .\" disable hyphenation .nh .\" disable justification (adjust text to left margin only) .ad l .\" ----------------------------------------------------------------- .\" * MAIN CONTENT STARTS HERE * .\" ----------------------------------------------------------------- .SH "NAME" __nand_correct_data \- [NAND Interface] Detect and correct bit error(s) .SH "SYNOPSIS" .HP \w'int\ __nand_correct_data('u .BI "int __nand_correct_data(unsigned\ char\ *\ " "buf" ", unsigned\ char\ *\ " "read_ecc" ", unsigned\ char\ *\ " "calc_ecc" ", unsigned\ int\ " "eccsize" ");" .SH "ARGUMENTS" .PP \fIbuf\fR .RS 4 raw data read from the chip .RE .PP \fIread_ecc\fR .RS 4 ECC from the chip .RE .PP \fIcalc_ecc\fR .RS 4 the ECC calculated from raw data .RE .PP \fIeccsize\fR .RS 4 data bytes per ECC step (256 or 512) .RE .SH "DESCRIPTION" .PP Detect and correct a 1 bit error for eccsize byte block .SH "AUTHOR" .PP \fBThomas Gleixner\fR <\&tglx@linutronix.de\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br