Lines Matching refs:cksum
209 zio_checksum_to_feature(enum zio_checksum cksum) in zio_checksum_to_feature() argument
211 VERIFY((cksum & ~ZIO_CHECKSUM_MASK) == 0); in zio_checksum_to_feature()
213 switch (cksum) { in zio_checksum_to_feature()
319 zio_checksum_handle_crypt(zio_cksum_t *cksum, zio_cksum_t *saved, boolean_t xor) in zio_checksum_handle_crypt() argument
328 cksum->zc_word[0] ^= cksum->zc_word[2]; in zio_checksum_handle_crypt()
329 cksum->zc_word[1] ^= cksum->zc_word[3]; in zio_checksum_handle_crypt()
332 cksum->zc_word[2] = saved->zc_word[2]; in zio_checksum_handle_crypt()
333 cksum->zc_word[3] = saved->zc_word[3]; in zio_checksum_handle_crypt()
347 zio_cksum_t cksum, saved; in zio_checksum_compute() local
396 &cksum); in zio_checksum_compute()
399 zio_checksum_handle_crypt(&cksum, &saved, insecure); in zio_checksum_compute()
401 abd_copy_from_buf_off(abd, &cksum, in zio_checksum_compute()
407 &cksum); in zio_checksum_compute()
409 zio_checksum_handle_crypt(&cksum, &saved, insecure); in zio_checksum_compute()
410 bp->blk_cksum = cksum; in zio_checksum_compute()