Lines Matching full:sum
25 unsigned long sum = (__force unsigned long)csum; in csum_ipv6_magic() local
27 sum += (__force unsigned long)saddr->s6_addr32[0]; in csum_ipv6_magic()
28 sum += (__force unsigned long)saddr->s6_addr32[1]; in csum_ipv6_magic()
29 sum += (__force unsigned long)saddr->s6_addr32[2]; in csum_ipv6_magic()
30 sum += (__force unsigned long)saddr->s6_addr32[3]; in csum_ipv6_magic()
32 sum += (__force unsigned long)daddr->s6_addr32[0]; in csum_ipv6_magic()
33 sum += (__force unsigned long)daddr->s6_addr32[1]; in csum_ipv6_magic()
34 sum += (__force unsigned long)daddr->s6_addr32[2]; in csum_ipv6_magic()
35 sum += (__force unsigned long)daddr->s6_addr32[3]; in csum_ipv6_magic()
38 sum += ulen; in csum_ipv6_magic()
41 sum += uproto; in csum_ipv6_magic()
64 rori %[fold_temp], %[sum], 32 \n\ in csum_ipv6_magic()
65 add %[sum], %[fold_temp], %[sum] \n\ in csum_ipv6_magic()
66 srli %[sum], %[sum], 32 \n\ in csum_ipv6_magic()
67 not %[fold_temp], %[sum] \n\ in csum_ipv6_magic()
68 roriw %[sum], %[sum], 16 \n\ in csum_ipv6_magic()
69 subw %[sum], %[fold_temp], %[sum] \n\ in csum_ipv6_magic()
71 : [sum] "+r" (sum), [fold_temp] "=&r" (fold_temp)); in csum_ipv6_magic()
72 return (__force __sum16)(sum >> 16); in csum_ipv6_magic()
75 sum += ror64(sum, 32); in csum_ipv6_magic()
76 sum >>= 32; in csum_ipv6_magic()
77 return csum_fold((__force __wsum)sum); in csum_ipv6_magic()