This source file includes following definitions.
- csum_tcpudp_nofold
1
2
3
4
5
6
7
8
9
10
11 #ifndef __UNICORE_CHECKSUM_H__
12 #define __UNICORE_CHECKSUM_H__
13
14
15
16
17
18
19 static inline __wsum
20 csum_tcpudp_nofold(__be32 saddr, __be32 daddr, __u32 len,
21 __u8 proto, __wsum sum)
22 {
23 __asm__(
24 "add.a %0, %1, %2\n"
25 "addc.a %0, %0, %3\n"
26 "addc.a %0, %0, %4 << #8\n"
27 "addc.a %0, %0, %5\n"
28 "addc %0, %0, #0\n"
29 : "=&r"(sum)
30 : "r" (sum), "r" (daddr), "r" (saddr), "r" (len), "Ir" (htons(proto))
31 : "cc");
32 return sum;
33 }
34 #define csum_tcpudp_nofold csum_tcpudp_nofold
35
36 #include <asm-generic/checksum.h>
37
38 #endif