Lines Matching full:csum
45 u32 csum = (__force u32) sum; in csum_fold() local
47 csum += (csum >> 16) | (csum << 16); in csum_fold()
48 csum >>= 16; in csum_fold()
49 return (__force __sum16) ~csum; in csum_fold()
58 __u64 csum = 0; in ip_fast_csum() local
61 csum += *ptr++; in ip_fast_csum()
62 csum += *ptr++; in ip_fast_csum()
63 csum += *ptr++; in ip_fast_csum()
64 csum += *ptr++; in ip_fast_csum()
67 csum += *ptr++; in ip_fast_csum()
68 csum += (csum >> 32) | (csum << 32); in ip_fast_csum()
69 return csum_fold((__force __wsum)(csum >> 32)); in ip_fast_csum()
79 __u64 csum = (__force __u64)sum; in csum_tcpudp_nofold() local
81 csum += (__force __u32)saddr; in csum_tcpudp_nofold()
82 csum += (__force __u32)daddr; in csum_tcpudp_nofold()
83 csum += len; in csum_tcpudp_nofold()
84 csum += proto; in csum_tcpudp_nofold()
85 csum += (csum >> 32) | (csum << 32); in csum_tcpudp_nofold()
86 return (__force __wsum)(csum >> 32); in csum_tcpudp_nofold()
110 __u32 len, __u8 proto, __wsum csum) in csum_ipv6_magic() argument
112 __u64 sum = (__force __u64)csum; in csum_ipv6_magic()