Home
last modified time | relevance | path

Searched refs:sum (Results 1 – 6 of 6) 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()
159 __u32 len, __u8 proto, __wsum sum) in csum_tcpudp_nofold() argument
161 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) { \
147 (xfail) ? "X" : "", sum); \
Diov_iter.c576 __wsum sum, size_t off) in csum_and_memcpy() argument
579 return csum_block_add(sum, next, off); in csum_and_memcpy()
588 __wsum sum = csstate->csum; in csum_and_copy_to_pipe_iter() local
602 sum = csum_and_memcpy(p + r, addr, chunk, sum, off); in csum_and_copy_to_pipe_iter()
613 csstate->csum = sum; in csum_and_copy_to_pipe_iter()
1442 __wsum sum, next; in csum_and_copy_from_iter() local
1444 sum = *csum; in csum_and_copy_from_iter()
1454 sum = csum_block_add(sum, next, off); in csum_and_copy_from_iter()
1460 sum = csum_and_memcpy((to += v.bv_len) - v.bv_len, in csum_and_copy_from_iter()
1462 sum, off); in csum_and_copy_from_iter()
[all …]
Dbch.c1060 uint32_t sum; in bch_decode() local
1081 for (i = 0, sum = 0; i < (int)ecc_words; i++) { in bch_decode()
1083 sum |= bch->ecc_buf[i]; in bch_decode()
1085 if (!sum) in bch_decode()
1186 unsigned int sum, x, y, remaining, ak = 0, xi[BCH_MAX_M]; in build_deg2_base() local
1190 for (j = 0, sum = 0; j < m; j++) in build_deg2_base()
1191 sum ^= a_pow(bch, i*(1 << j)); in build_deg2_base()
1193 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); \
/lib/mpi/
Dec.c1166 static void montgomery_ladder(MPI_POINT prd, MPI_POINT sum, in montgomery_ladder() argument
1170 ctx->addm(sum->x, p2->x, p2->z, ctx); in montgomery_ladder()
1174 ctx->mulm(p2->x, p1->z, sum->x, ctx); in montgomery_ladder()
1178 ctx->addm(sum->x, p2->x, p2->z, ctx); in montgomery_ladder()
1182 ctx->pow2(sum->x, sum->x, ctx); in montgomery_ladder()
1183 ctx->pow2(sum->z, p2->z, ctx); in montgomery_ladder()
1185 ctx->mulm(sum->z, sum->z, dif_x, ctx); in montgomery_ladder()
1255 MPI_POINT q1, q2, prd, sum; in mpi_ec_mul_point() local
1286 sum = &p2_; in mpi_ec_mul_point()
1293 montgomery_ladder(prd, sum, q1, q2, point->x, ctx); in mpi_ec_mul_point()
[all …]