Lines Matching defs:type
19 #include <keys/user-type.h>
33 unsigned int type;
38 switch (state->type) {
60 switch (state->type) {
78 switch (state->type) {
201 struct bch_csum bch2_checksum(struct bch_fs *c, unsigned type,
204 switch (type) {
213 state.type = type;
232 memcpy(&ret, digest, bch_crc_bytes[type]);
240 int bch2_encrypt(struct bch_fs *c, unsigned type,
243 if (!bch2_csum_type_is_encryption(type))
249 static struct bch_csum __bch2_checksum_bio(struct bch_fs *c, unsigned type,
255 switch (type) {
265 state.type = type;
306 memcpy(&ret, digest, bch_crc_bytes[type]);
314 struct bch_csum bch2_checksum_bio(struct bch_fs *c, unsigned type,
319 return __bch2_checksum_bio(c, type, nonce, bio, &iter);
322 int __bch2_encrypt_bio(struct bch_fs *c, unsigned type,
331 if (!bch2_csum_type_is_encryption(type))
359 struct bch_csum bch2_checksum_merge(unsigned type, struct bch_csum a,
364 state.type = type;
368 BUG_ON(!bch2_checksum_mergeable(type));
435 "expected %0llx:%0llx got %0llx:%0llx (old type ",
442 prt_str(&buf, " new type ");
484 prt_printf(err, "bad kdf type %llu", BCH_CRYPT_KDF_TYPE(crypt));