Code Review
/
deb_dpdk.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
review
|
tree
raw
|
inline
| side by side
New upstream version 18.11-rc1
[deb_dpdk.git]
/
drivers
/
bus
/
dpaa
/
include
/
fsl_fman_crc64.h
diff --git
a/drivers/bus/dpaa/include/fsl_fman_crc64.h
b/drivers/bus/dpaa/include/fsl_fman_crc64.h
index
bf162f3
..
08ad630
100644
(file)
--- a/
drivers/bus/dpaa/include/fsl_fman_crc64.h
+++ b/
drivers/bus/dpaa/include/fsl_fman_crc64.h
@@
-42,9
+42,9
@@
struct fman_crc64_t {
uint64_t initial;
uint64_t table[1 << 8];
};
uint64_t initial;
uint64_t table[1 << 8];
};
-extern struct fman_crc64_t
FMAN_CRC64_ECMA
_182;
+extern struct fman_crc64_t
fman_crc64_ecma
_182;
#define DECLARE_FMAN_CRC64_TABLE() \
#define DECLARE_FMAN_CRC64_TABLE() \
-struct fman_crc64_t
FMAN_CRC64_ECMA
_182 = { \
+struct fman_crc64_t
fman_crc64_ecma
_182 = { \
0xFFFFFFFFFFFFFFFFULL, \
{ \
0x0000000000000000ULL, 0xb32e4cbe03a75f6fULL, \
0xFFFFFFFFFFFFFFFFULL, \
{ \
0x0000000000000000ULL, 0xb32e4cbe03a75f6fULL, \
@@
-183,7
+183,7
@@
struct fman_crc64_t FMAN_CRC64_ECMA_182 = { \
*/
static inline uint64_t fman_crc64_init(void)
{
*/
static inline uint64_t fman_crc64_init(void)
{
- return
FMAN_CRC64_ECMA
_182.initial;
+ return
fman_crc64_ecma
_182.initial;
}
/* Updates the CRC with arbitrary data */
}
/* Updates the CRC with arbitrary data */
@@
-192,7
+192,7
@@
static inline uint64_t fman_crc64_update(uint64_t crc,
{
uint8_t *p = data;
while (len--)
{
uint8_t *p = data;
while (len--)
- crc =
FMAN_CRC64_ECMA
_182.table[(crc ^ *(p++)) & 0xff] ^
+ crc =
fman_crc64_ecma
_182.table[(crc ^ *(p++)) & 0xff] ^
(crc >> 8);
return crc;
}
(crc >> 8);
return crc;
}