• Home
  • Raw
  • Download

Lines Matching refs:__wsum

26 __wsum csum_and_copy_from_user (const void __user *src, void *dst,  in csum_and_copy_from_user()
36 static __always_inline __wsum csum_and_copy_to_user in csum_and_copy_to_user()
39 __wsum sum = csum_partial(src, len, ~0U); in csum_and_copy_to_user()
48 static __always_inline __wsum
57 static __always_inline __wsum csum_add(__wsum csum, __wsum addend) in csum_add()
61 return (__force __wsum)(res + (res < (__force u32)addend)); in csum_add()
65 static __always_inline __wsum csum_sub(__wsum csum, __wsum addend) in csum_sub()
83 static __always_inline __wsum
84 csum_block_add(__wsum csum, __wsum csum2, int offset) in csum_block_add()
92 return csum_add(csum, (__force __wsum)sum); in csum_block_add()
95 static __always_inline __wsum
96 csum_block_add_ext(__wsum csum, __wsum csum2, int offset, int len) in csum_block_add_ext()
101 static __always_inline __wsum
102 csum_block_sub(__wsum csum, __wsum csum2, int offset) in csum_block_sub()
107 static __always_inline __wsum csum_unfold(__sum16 n) in csum_unfold()
109 return (__force __wsum)n; in csum_unfold()
113 __wsum csum_partial_ext(const void *buff, int len, __wsum sum) in csum_partial_ext()
120 static __always_inline void csum_replace_by_diff(__sum16 *sum, __wsum diff) in csum_replace_by_diff()
127 __wsum tmp = csum_sub(~csum_unfold(*sum), (__force __wsum)from); in csum_replace4()
129 *sum = csum_fold(csum_add(tmp, (__force __wsum)to)); in csum_replace4()
143 static inline void csum_replace(__wsum *csum, __wsum old, __wsum new) in csum_replace()
155 __wsum diff, bool pseudohdr);
165 static __always_inline __wsum remcsum_adjust(void *ptr, __wsum csum, in remcsum_adjust()
169 __wsum delta; in remcsum_adjust()
175 delta = csum_sub((__force __wsum)csum_fold(csum), in remcsum_adjust()
176 (__force __wsum)*psum); in remcsum_adjust()
182 static __always_inline void remcsum_unadjust(__sum16 *psum, __wsum delta) in remcsum_unadjust()
184 *psum = csum_fold(csum_sub(delta, (__force __wsum)*psum)); in remcsum_unadjust()