Lines Matching refs:csum
50 u32 csum = (__force u32) sum; in csum_fold() local
52 csum += (csum >> 16) | (csum << 16); in csum_fold()
53 csum >>= 16; in csum_fold()
54 return (__force __sum16) ~csum; in csum_fold()
63 __u64 csum = 0; in ip_fast_csum() local
66 csum += *ptr++; in ip_fast_csum()
67 csum += *ptr++; in ip_fast_csum()
68 csum += *ptr++; in ip_fast_csum()
69 csum += *ptr++; in ip_fast_csum()
72 csum += *ptr++; in ip_fast_csum()
73 csum += (csum >> 32) | (csum << 32); in ip_fast_csum()
74 return csum_fold((__force __wsum)(csum >> 32)); in ip_fast_csum()
84 __u64 csum = (__force __u64)sum; in csum_tcpudp_nofold() local
86 csum += (__force __u32)saddr; in csum_tcpudp_nofold()
87 csum += (__force __u32)daddr; in csum_tcpudp_nofold()
88 csum += len; in csum_tcpudp_nofold()
89 csum += proto; in csum_tcpudp_nofold()
90 csum += (csum >> 32) | (csum << 32); in csum_tcpudp_nofold()
91 return (__force __wsum)(csum >> 32); in csum_tcpudp_nofold()
115 __u32 len, __u8 proto, __wsum csum) in csum_ipv6_magic() argument
117 __u64 sum = (__force __u64)csum; in csum_ipv6_magic()