Lines Matching full:csum
24 static __be16 t10_pi_csum(__be16 csum, void *data, unsigned int len, in t10_pi_csum() argument
29 return cpu_to_be16(crc_t10dif_update(be16_to_cpu(csum), data, len)); in t10_pi_csum()
72 __be16 csum; in t10_pi_verify() local
92 csum = t10_pi_csum(0, iter->data_buf, iter->interval, in t10_pi_verify()
95 csum = t10_pi_csum(csum, iter->prot_buf, offset, in t10_pi_verify()
98 if (pi->guard_tag != csum) { in t10_pi_verify()
102 be16_to_cpu(pi->guard_tag), be16_to_cpu(csum)); in t10_pi_verify()
258 __be64 csum; in ext_pi_crc64_verify() local
277 csum = ext_pi_crc64(0, iter->data_buf, iter->interval); in ext_pi_crc64_verify()
279 csum = ext_pi_crc64(be64_to_cpu(csum), iter->prot_buf, in ext_pi_crc64_verify()
282 if (pi->guard_tag != csum) { in ext_pi_crc64_verify()
286 be64_to_cpu(pi->guard_tag), be64_to_cpu(csum)); in ext_pi_crc64_verify()