Lines Matching refs:__wsum
30 __wsum csum_and_copy_from_user (const void __user *src, void *dst, in csum_and_copy_from_user()
31 int len, __wsum sum, int *err_ptr) in csum_and_copy_from_user()
44 static __inline__ __wsum csum_and_copy_to_user in csum_and_copy_to_user()
45 (const void *src, void __user *dst, int len, __wsum sum, int *err_ptr) in csum_and_copy_to_user()
56 return (__force __wsum)-1; /* invalid checksum */ in csum_and_copy_to_user()
61 static inline __wsum csum_add(__wsum csum, __wsum addend) in csum_add()
65 return (__force __wsum)(res + (res < (__force u32)addend)); in csum_add()
69 static inline __wsum csum_sub(__wsum csum, __wsum addend) in csum_sub()
87 static inline __wsum
88 csum_block_add(__wsum csum, __wsum csum2, int offset) in csum_block_add()
96 return csum_add(csum, (__force __wsum)sum); in csum_block_add()
99 static inline __wsum
100 csum_block_add_ext(__wsum csum, __wsum csum2, int offset, int len) in csum_block_add_ext()
105 static inline __wsum
106 csum_block_sub(__wsum csum, __wsum csum2, int offset) in csum_block_sub()
111 static inline __wsum csum_unfold(__sum16 n) in csum_unfold()
113 return (__force __wsum)n; in csum_unfold()
116 static inline __wsum csum_partial_ext(const void *buff, int len, __wsum sum) in csum_partial_ext()
123 static inline void csum_replace_by_diff(__sum16 *sum, __wsum diff) in csum_replace_by_diff()
130 __wsum tmp = csum_sub(~csum_unfold(*sum), (__force __wsum)from); in csum_replace4()
132 *sum = csum_fold(csum_add(tmp, (__force __wsum)to)); in csum_replace4()
146 static inline void csum_replace(__wsum *csum, __wsum old, __wsum new) in csum_replace()
158 __wsum diff, bool pseudohdr);
168 static inline __wsum remcsum_adjust(void *ptr, __wsum csum, in remcsum_adjust()
172 __wsum delta; in remcsum_adjust()
178 delta = csum_sub((__force __wsum)csum_fold(csum), in remcsum_adjust()
179 (__force __wsum)*psum); in remcsum_adjust()
185 static inline void remcsum_unadjust(__sum16 *psum, __wsum delta) in remcsum_unadjust()
187 *psum = csum_fold(csum_sub(delta, (__force __wsum)*psum)); in remcsum_unadjust()