Lines Matching refs:sum
19 static inline unsigned short from32to16(__wsum sum) in from32to16() argument
23 : "=r" (sum) in from32to16()
24 : "r" (sum << 16), "0" (sum & 0xffff0000) in from32to16()
27 return sum >> 16; in from32to16()
36 __wsum csum_partial(const void *buff, int len, __wsum sum) in csum_partial() argument
41 result += sum; in csum_partial()
42 if (sum > result) in csum_partial()
54 __wsum csum_partial_copy(const void *src, void *dst, int len, __wsum sum) in csum_partial_copy() argument
57 return csum_partial(dst, len, sum); in csum_partial_copy()
62 int len, __wsum sum) in csum_partial_copy_nocheck() argument
64 sum = csum_partial(src, len, sum); in csum_partial_copy_nocheck()
66 return sum; in csum_partial_copy_nocheck()
71 int len, __wsum sum, in csum_partial_copy_from_user() argument
82 return csum_partial(dst, len, sum); in csum_partial_copy_from_user()
87 int len, __wsum sum, in csum_and_copy_to_user() argument
98 return csum_partial(src, len, sum); in csum_and_copy_to_user()