Lines Matching +full:data +full:- +full:crci
1 // SPDX-License-Identifier: GPL-2.0-or-later
3 * Calculate a CRC T10-DIF with vpmsum acceleration
6 * [based on crc32c-vpmsum_glue.c]
9 #include <linux/crc-t10dif.h>
21 #define VMX_ALIGN_MASK (VMX_ALIGN-1)
27 static u16 crct10dif_vpmsum(u16 crci, unsigned char const *p, size_t len) in crct10dif_vpmsum() argument
31 u32 crc = crci; in crct10dif_vpmsum()
37 prealign = VMX_ALIGN - ((unsigned long)p & VMX_ALIGN_MASK); in crct10dif_vpmsum()
39 len -= prealign; in crct10dif_vpmsum()
72 static int crct10dif_vpmsum_update(struct shash_desc *desc, const u8 *data, in crct10dif_vpmsum_update() argument
77 *crc = crct10dif_vpmsum(*crc, data, length); in crct10dif_vpmsum_update()
99 .cra_driver_name = "crct10dif-vpmsum",
109 return -ENODEV; in crct10dif_vpmsum_mod_init()
123 MODULE_DESCRIPTION("CRCT10DIF using vector polynomial multiply-sum instructions");
126 MODULE_ALIAS_CRYPTO("crct10dif-vpmsum");