Home
last modified time | relevance | path

Searched refs:sum (Results 1 – 5 of 5) sorted by relevance

/lib/
Dchecksum.c127 unsigned int sum = (__force unsigned int)wsum; in csum_partial() local
131 result += sum; in csum_partial()
132 if (sum > result) in csum_partial()
153 __wsum sum, int *csum_err) in csum_partial_copy_from_user() argument
164 return csum_partial(dst, len, sum); in csum_partial_copy_from_user()
172 csum_partial_copy(const void *src, void *dst, int len, __wsum sum) in csum_partial_copy() argument
175 return csum_partial(dst, len, sum); in csum_partial_copy()
190 __u32 len, __u8 proto, __wsum sum) in csum_tcpudp_nofold() argument
192 unsigned long long s = (__force u32)sum; in csum_tcpudp_nofold()
Dtest_stackinit.c102 u8 sum = 0, i; \
115 for (sum = 0, i = 0; i < target_size; i++) \
116 sum += (check_buf[i] != 0xFF); \
117 if (sum) { \
139 for (sum = 0, i = 0; i < target_size; i++) \
140 sum += (check_buf[i] == 0xFF); \
142 if (sum == 0) \
146 sum); \
148 return (sum != 0); \
Diov_iter.c566 __wsum sum, size_t off) in csum_and_memcpy() argument
569 return csum_block_add(sum, next, off); in csum_and_memcpy()
578 __wsum sum = *csum; in csum_and_copy_to_pipe_iter() local
590 sum = csum_and_memcpy(p + r, addr, chunk, sum, off); in csum_and_copy_to_pipe_iter()
599 *csum = sum; in csum_and_copy_to_pipe_iter()
1408 __wsum sum, next; in csum_and_copy_from_iter() local
1410 sum = *csum; in csum_and_copy_from_iter()
1421 sum = csum_block_add(sum, next, off); in csum_and_copy_from_iter()
1427 sum = csum_and_memcpy((to += v.bv_len) - v.bv_len, in csum_and_copy_from_iter()
1429 sum, off); in csum_and_copy_from_iter()
[all …]
Dbch.c1003 uint32_t sum; in decode_bch() local
1024 for (i = 0, sum = 0; i < (int)ecc_words; i++) { in decode_bch()
1026 sum |= bch->ecc_buf[i]; in decode_bch()
1028 if (!sum) in decode_bch()
1127 unsigned int sum, x, y, remaining, ak = 0, xi[BCH_MAX_M]; in build_deg2_base() local
1131 for (j = 0, sum = 0; j < m; j++) in build_deg2_base()
1132 sum ^= a_pow(bch, i*(1 << j)); in build_deg2_base()
1134 if (sum) { in build_deg2_base()
Dtest_overflow.c20 t sum, diff, prod; \
242 check_one_op(t, fmt, add, "+", p->a, p->b, p->sum, p->s_of); \
243 check_one_op(t, fmt, add, "+", p->b, p->a, p->sum, p->s_of); \