X-Git-Url: http://git.onelab.eu/?a=blobdiff_plain;f=lib%2Freed_solomon%2Freed_solomon.c;h=f8ac9fa95de12cde5f786c46aca67ffdb343b0bb;hb=9464c7cf61b9433057924c36e6e02f303a00e768;hp=2cc11faa4ff127aa20086acf83d749ec6865f7e3;hpb=41689045f6a3cbe0550e1d34e9cc20d2e8c432ba;p=linux-2.6.git diff --git a/lib/reed_solomon/reed_solomon.c b/lib/reed_solomon/reed_solomon.c index 2cc11faa4..f8ac9fa95 100644 --- a/lib/reed_solomon/reed_solomon.c +++ b/lib/reed_solomon/reed_solomon.c @@ -54,6 +54,7 @@ static DEFINE_MUTEX(rslistlock); /** * rs_init - Initialize a Reed-Solomon codec + * * @symsize: symbol size, bits (1-8) * @gfpoly: Field generator polynomial coefficients * @fcr: first root of RS code generator polynomial, index form @@ -61,7 +62,7 @@ static DEFINE_MUTEX(rslistlock); * @nroots: RS code generator polynomial degree (number of roots) * * Allocate a control structure and the polynom arrays for faster - * en/decoding. Fill the arrays according to the given parameters. + * en/decoding. Fill the arrays according to the given parameters */ static struct rs_control *rs_init(int symsize, int gfpoly, int fcr, int prim, int nroots) @@ -154,7 +155,8 @@ errrs: /** - * free_rs - Free the rs control structure, if it is no longer used + * free_rs - Free the rs control structure, if its not longer used + * * @rs: the control structure which is not longer used by the * caller */ @@ -174,6 +176,7 @@ void free_rs(struct rs_control *rs) /** * init_rs - Find a matching or allocate a new rs control structure + * * @symsize: the symbol size (number of bits) * @gfpoly: the extended Galois field generator polynomial coefficients, * with the 0th coefficient in the low order bit. The polynomial @@ -233,6 +236,7 @@ out: #ifdef CONFIG_REED_SOLOMON_ENC8 /** * encode_rs8 - Calculate the parity for data values (8bit data width) + * * @rs: the rs control structure * @data: data field of a given type * @len: data length @@ -254,6 +258,7 @@ EXPORT_SYMBOL_GPL(encode_rs8); #ifdef CONFIG_REED_SOLOMON_DEC8 /** * decode_rs8 - Decode codeword (8bit data width) + * * @rs: the rs control structure * @data: data field of a given type * @par: received parity data field @@ -280,6 +285,7 @@ EXPORT_SYMBOL_GPL(decode_rs8); #ifdef CONFIG_REED_SOLOMON_ENC16 /** * encode_rs16 - Calculate the parity for data values (16bit data width) + * * @rs: the rs control structure * @data: data field of a given type * @len: data length @@ -299,6 +305,7 @@ EXPORT_SYMBOL_GPL(encode_rs16); #ifdef CONFIG_REED_SOLOMON_DEC16 /** * decode_rs16 - Decode codeword (16bit data width) + * * @rs: the rs control structure * @data: data field of a given type * @par: received parity data field