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) {
200 struct bch_csum bch2_checksum(struct bch_fs *c, unsigned type,
203 switch (type) {
212 state.type = type;
231 memcpy(&ret, digest, bch_crc_bytes[type]);
239 int bch2_encrypt(struct bch_fs *c, unsigned type,
242 if (!bch2_csum_type_is_encryption(type))
248 static struct bch_csum __bch2_checksum_bio(struct bch_fs *c, unsigned type,
254 switch (type) {
264 state.type = type;
305 memcpy(&ret, digest, bch_crc_bytes[type]);
313 struct bch_csum bch2_checksum_bio(struct bch_fs *c, unsigned type,
318 return __bch2_checksum_bio(c, type, nonce, bio, &iter);
321 int __bch2_encrypt_bio(struct bch_fs *c, unsigned type,
330 if (!bch2_csum_type_is_encryption(type))
358 struct bch_csum bch2_checksum_merge(unsigned type, struct bch_csum a,
363 state.type = type;
367 BUG_ON(!bch2_checksum_mergeable(type));
434 "expected %0llx:%0llx got %0llx:%0llx (old type ",
441 prt_str(&buf, " new type ");
484 prt_printf(err, "bad kdf type %llu", BCH_CRYPT_KDF_TYPE(crypt));