'\" t .\" Title: encode_rs16 .\" Author: .\" Generator: DocBook XSL Stylesheets v1.79.1 .\" Date: March 2017 .\" Manual: Public Functions Provided .\" Source: Kernel Hackers Manual 4.10.7 .\" Language: English .\" .TH "ENCODE_RS16" "9" "March 2017" "Kernel Hackers Manual 4\&.10\&" "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" encode_rs16 \- Calculate the parity for data values (16bit data width) .SH "SYNOPSIS" .HP \w'int\ encode_rs16('u .BI "int encode_rs16(struct\ rs_control\ *\ " "rs" ", uint16_t\ *\ " "data" ", int\ " "len" ", uint16_t\ *\ " "par" ", uint16_t\ " "invmsk" ");" .SH "ARGUMENTS" .PP \fIrs\fR .RS 4 the rs control structure .RE .PP \fIdata\fR .RS 4 data field of a given type .RE .PP \fIlen\fR .RS 4 data length .RE .PP \fIpar\fR .RS 4 parity data, must be initialized by caller (usually all 0) .RE .PP \fIinvmsk\fR .RS 4 invert data mask (will be xored on data, not on parity!) .RE .SH "DESCRIPTION" .PP Each field in the data array contains up to symbol size bits of valid data\&. .SH "AUTHOR" .PP \fBThomas Gleixner\fR <\&tglx@linutronix.de\&> .RS 4 Author. .RE .SH "COPYRIGHT" .br