Lines Matching full:csum

5  * Influenced by arch/arm64/lib/csum.c
22 __u32 len, __u8 proto, __wsum csum) in csum_ipv6_magic() argument
25 unsigned long sum = (__force unsigned long)csum; in csum_ipv6_magic()
93 unsigned long csum = 0, carry = 0; in do_csum_common() local
101 csum += data; in do_csum_common()
102 carry += csum < data; in do_csum_common()
116 csum += data; in do_csum_common()
117 carry += csum < data; in do_csum_common()
118 csum += carry; in do_csum_common()
119 csum += csum < carry; in do_csum_common()
121 return csum; in do_csum_common()
133 unsigned long csum, data; in do_csum_with_alignment() local
157 csum = do_csum_common(ptr, end, data); in do_csum_with_alignment()
183 rori %[fold_temp], %[csum], 16 \n\ in do_csum_with_alignment()
185 add %[csum], %[fold_temp], %[csum] \n\ in do_csum_with_alignment()
187 rev8 %[csum], %[csum] \n\ in do_csum_with_alignment()
189 : [csum] "+r" (csum), [fold_temp] "=&r" (fold_temp) in do_csum_with_alignment()
194 return (unsigned short)csum; in do_csum_with_alignment()
198 rori %[fold_temp], %[csum], 32 \n\ in do_csum_with_alignment()
199 add %[csum], %[fold_temp], %[csum] \n\ in do_csum_with_alignment()
200 srli %[csum], %[csum], 32 \n\ in do_csum_with_alignment()
201 roriw %[fold_temp], %[csum], 16 \n\ in do_csum_with_alignment()
202 addw %[csum], %[fold_temp], %[csum] \n\ in do_csum_with_alignment()
205 rev8 %[csum], %[csum] \n\ in do_csum_with_alignment()
207 : [csum] "+r" (csum), [fold_temp] "=&r" (fold_temp) in do_csum_with_alignment()
212 return (csum << 16) >> 48; in do_csum_with_alignment()
215 return csum >> 16; in do_csum_with_alignment()
220 csum += ror64(csum, 32); in do_csum_with_alignment()
221 csum >>= 32; in do_csum_with_alignment()
223 csum = (u32)csum + ror32((u32)csum, 16); in do_csum_with_alignment()
225 return (u16)swab32(csum); in do_csum_with_alignment()
226 return csum >> 16; in do_csum_with_alignment()
236 unsigned long csum, data; in do_csum_no_alignment() local
245 csum = do_csum_common(ptr, end, data); in do_csum_no_alignment()
270 rori %[fold_temp], %[csum], 16 \n\ in do_csum_no_alignment()
271 add %[csum], %[fold_temp], %[csum] \n\ in do_csum_no_alignment()
273 : [csum] "+r" (csum), [fold_temp] "=&r" (fold_temp) in do_csum_no_alignment()
280 rori %[fold_temp], %[csum], 32 \n\ in do_csum_no_alignment()
281 add %[csum], %[fold_temp], %[csum] \n\ in do_csum_no_alignment()
282 srli %[csum], %[csum], 32 \n\ in do_csum_no_alignment()
283 roriw %[fold_temp], %[csum], 16 \n\ in do_csum_no_alignment()
284 addw %[csum], %[fold_temp], %[csum] \n\ in do_csum_no_alignment()
286 : [csum] "+r" (csum), [fold_temp] "=&r" (fold_temp) in do_csum_no_alignment()
290 return csum >> 16; in do_csum_no_alignment()
294 csum += ror64(csum, 32); in do_csum_no_alignment()
295 csum >>= 32; in do_csum_no_alignment()
297 csum = (u32)csum + ror32((u32)csum, 16); in do_csum_no_alignment()
298 return csum >> 16; in do_csum_no_alignment()