Lines Matching refs:csum
57 static inline __wsum csum_add(__wsum csum, __wsum addend) in csum_add() argument
59 u32 res = (__force u32)csum; in csum_add()
65 static inline __wsum csum_sub(__wsum csum, __wsum addend) in csum_sub() argument
67 return csum_add(csum, ~addend); in csum_sub()
70 static inline __sum16 csum16_add(__sum16 csum, __be16 addend) in csum16_add() argument
72 u16 res = (__force u16)csum; in csum16_add()
78 static inline __sum16 csum16_sub(__sum16 csum, __be16 addend) in csum16_sub() argument
80 return csum16_add(csum, ~addend); in csum16_sub()
84 csum_block_add(__wsum csum, __wsum csum2, int offset) in csum_block_add() argument
92 return csum_add(csum, (__force __wsum)sum); in csum_block_add()
96 csum_block_add_ext(__wsum csum, __wsum csum2, int offset, int len) in csum_block_add_ext() argument
98 return csum_block_add(csum, csum2, offset); in csum_block_add_ext()
102 csum_block_sub(__wsum csum, __wsum csum2, int offset) in csum_block_sub() argument
104 return csum_block_add(csum, ~csum2, offset); in csum_block_sub()
159 static inline __wsum remcsum_adjust(void *ptr, __wsum csum, in remcsum_adjust() argument
166 csum = csum_sub(csum, csum_partial(ptr, start, 0)); in remcsum_adjust()
169 delta = csum_sub((__force __wsum)csum_fold(csum), in remcsum_adjust()
171 *psum = csum_fold(csum); in remcsum_adjust()