Lines Matching refs:sum
20 asmlinkage __wsum csum_partial(const void *buff, int len, __wsum sum);
67 unsigned int sum; in ip_fast_csum() local
89 : "=r" (sum), "=r" (iph), "=r" (ihl) in ip_fast_csum()
92 return (__force __sum16)sum; in ip_fast_csum()
99 static inline __sum16 csum_fold(__wsum sum) in csum_fold() argument
103 : "=r" (sum) in csum_fold()
104 : "r" ((__force u32)sum << 16), in csum_fold()
105 "0" ((__force u32)sum & 0xffff0000)); in csum_fold()
106 return (__force __sum16)(~(__force u32)sum >> 16); in csum_fold()
111 __wsum sum) in csum_tcpudp_nofold() argument
117 : "=r" (sum) in csum_tcpudp_nofold()
119 "g" ((len + proto) << 8), "0" (sum)); in csum_tcpudp_nofold()
120 return sum; in csum_tcpudp_nofold()
129 __wsum sum) in csum_tcpudp_magic() argument
131 return csum_fold(csum_tcpudp_nofold(saddr, daddr, len, proto, sum)); in csum_tcpudp_magic()
147 __u32 len, __u8 proto, __wsum sum) in csum_ipv6_magic() argument
160 : "=&r" (sum) in csum_ipv6_magic()
162 "r" (htonl(len)), "r" (htonl(proto)), "0" (sum) in csum_ipv6_magic()
165 return csum_fold(sum); in csum_ipv6_magic()