Lines Matching full:sum
17 * sum: 32bit unfolded sum
23 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument
27 : "=r" (sum) in csum_fold()
28 : "r" ((__force u32)sum << 16), in csum_fold()
29 "0" ((__force u32)sum & 0xffff0000)); in csum_fold()
30 return (__force __sum16)(~(__force u32)sum >> 16); in csum_fold()
48 unsigned int sum; in ip_fast_csum() local
70 : "=r" (sum), "=r" (iph), "=r" (ihl) in ip_fast_csum()
73 return (__force __sum16)sum; in ip_fast_csum()
82 * @sum: initial sum to be added in (32bit unfolded)
89 __u8 proto, __wsum sum) in csum_tcpudp_nofold() argument
95 : "=r" (sum) in csum_tcpudp_nofold()
97 "g" ((len + proto)<<8), "0" (sum)); in csum_tcpudp_nofold()
98 return sum; in csum_tcpudp_nofold()
108 * @sum: initial sum to be added in (32bit unfolded)
115 __wsum sum) in csum_tcpudp_magic() argument
117 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
124 * @sum: initial sum to be added in (32bit unfolded)
130 extern __wsum csum_partial(const void *buff, int len, __wsum sum);
155 * @sum: initial sum (32bit unfolded) to be added in
157 * Computes an IPv6 pseudo header checksum. This sum is added the checksum
167 __u32 len, __u8 proto, __wsum sum);