Lines Matching refs:sum
214 #define full_csum(buff, len, sum) csum_fold(csum_partial(buff, len, sum)) argument
248 __wsum sum; in test_csum_fixed_random_inputs() local
260 sum = to_wsum(random_init_sum); in test_csum_fixed_random_inputs()
261 result = full_csum(&tmp_buf[align], len, sum); in test_csum_fixed_random_inputs()
274 __wsum sum; in test_csum_all_carry_inputs() local
285 sum = to_wsum(0xffffffff); in test_csum_all_carry_inputs()
286 result = full_csum(&tmp_buf[align], len, sum); in test_csum_all_carry_inputs()
293 sum = 0; in test_csum_all_carry_inputs()
294 result = full_csum(&tmp_buf[align], len, sum); in test_csum_all_carry_inputs()
314 __wsum sum; in test_csum_no_carry_inputs() local
325 sum = to_wsum(init_sums_no_overflow[len]); in test_csum_no_carry_inputs()
326 result = full_csum(&tmp_buf[align], len, sum); in test_csum_no_carry_inputs()
333 sum = to_wsum(init_sums_no_overflow[len] + 1); in test_csum_no_carry_inputs()
334 result = full_csum(&tmp_buf[align], len, sum); in test_csum_no_carry_inputs()