Lines Matching refs:sum
29 __wsum sum);
43 extern __wsum csum_partial(const void *buff, int len, __wsum sum);
56 int len, __wsum sum,
62 int len, __wsum sum, int *err_ptr);
65 int len, __wsum sum, int *err_ptr);
71 #define csum_partial_copy_from_user(src, dst, len, sum, errp) \ argument
72 csum_partial_copy_generic((__force const void *)(src), (dst), (len), (sum), (errp), NULL)
75 #define csum_partial_copy_nocheck(src, dst, len, sum) \ argument
76 csum_partial_copy_generic((src), (dst), (len), (sum), NULL, NULL)
83 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument
88 __asm__("rlwinm %0,%1,16,0,31" : "=r" (tmp) : "r" (sum)); in csum_fold()
92 return (__force __sum16)(~((__force u32)sum + tmp) >> 16); in csum_fold()
107 __wsum sum) in csum_tcpudp_nofold() argument
110 unsigned long s = (__force u32)sum; in csum_tcpudp_nofold()
124 : "=r" (sum) in csum_tcpudp_nofold()
125 : "r" (daddr), "r"(saddr), "r"(proto + len), "0"(sum)); in csum_tcpudp_nofold()
126 return sum; in csum_tcpudp_nofold()