Home
last modified time | relevance | path

Searched refs:bch_csum (Results 1 – 15 of 15) sorted by relevance

/linux-6.12.1/fs/bcachefs/
Dchecksum.h25 struct bch_csum bch2_checksum_merge(unsigned, struct bch_csum,
26 struct bch_csum, size_t);
34 struct bch_csum bch2_checksum(struct bch_fs *, unsigned, struct nonce,
50 struct bch_csum csum) in bch2_csum_to_text()
61 struct bch_csum expected, in bch2_csum_err_msg()
62 struct bch_csum got) in bch2_csum_err_msg()
81 struct bch_csum bch2_checksum_bio(struct bch_fs *, unsigned,
164 static inline bool bch2_crc_cmp(struct bch_csum l, struct bch_csum r) in bch2_crc_cmp()
Dchecksum.c210 struct bch_csum bch2_checksum(struct bch_fs *c, unsigned type, in bch2_checksum()
227 return (struct bch_csum) { .lo = cpu_to_le64(bch2_checksum_final(&state)) }; in bch2_checksum()
234 struct bch_csum ret = { 0 }; in bch2_checksum()
245 return (struct bch_csum) {}; in bch2_checksum()
258 static struct bch_csum __bch2_checksum_bio(struct bch_fs *c, unsigned type, in __bch2_checksum_bio()
266 return (struct bch_csum) { 0 }; in __bch2_checksum_bio()
289 return (struct bch_csum) { .lo = cpu_to_le64(bch2_checksum_final(&state)) }; in __bch2_checksum_bio()
296 struct bch_csum ret = { 0 }; in __bch2_checksum_bio()
319 return (struct bch_csum) {}; in __bch2_checksum_bio()
323 struct bch_csum bch2_checksum_bio(struct bch_fs *c, unsigned type, in bch2_checksum_bio()
[all …]
Dec.h80 static inline struct bch_csum stripe_csum_get(struct bch_stripe *s, in stripe_csum_get()
83 struct bch_csum csum = { 0 }; in stripe_csum_get()
91 struct bch_csum csum) in stripe_csum_set()
Dextents_types.h19 struct bch_csum csum;
Dbcachefs_format.h456 struct bch_csum { struct
729 struct bch_csum csum;
1240 struct bch_csum csum;
1410 struct bch_csum csum;
1453 struct bch_csum csum;
Dextents_format.h161 struct bch_csum csum;
Dio_write.c793 struct bch_csum csum; in bch2_write_decrypt()
811 op->crc.csum = (struct bch_csum) { 0, 0 }; in bch2_write_decrypt()
850 struct bch_csum csum; in bch2_write_prep_encoded_data()
Djournal_io.c84 static bool jset_csum_good(struct bch_fs *c, struct jset *j, struct bch_csum *csum) in jset_csum_good()
87 *csum = (struct bch_csum) {}; in jset_csum_good()
1091 struct bch_csum csum; in journal_read_bucket()
Dcompress.c261 crc->csum = (struct bch_csum) { 0, 0 }; in bch2_bio_uncompress_inplace()
Dec.c598 static struct bch_csum ec_block_checksum(struct ec_stripe_buf *buf, in ec_block_checksum()
654 struct bch_csum want = stripe_csum_get(v, i, j); in ec_validate_checksums()
655 struct bch_csum got = ec_block_checksum(buf, i, offset); in ec_validate_checksums()
Ddebug.c226 struct bch_csum csum; in bch2_btree_node_ondisk_to_text()
Dbackpointers.c510 struct bch_csum csum = bch2_checksum(c, p.crc.csum_type, nonce, data_buf, bytes); in check_extent_checksum()
Dbtree_io.c1056 struct bch_csum csum = csum_vstruct(c, BSET_CSUM_TYPE(i), nonce, b->data); in bch2_btree_node_read_done()
1097 struct bch_csum csum = csum_vstruct(c, BSET_CSUM_TYPE(i), nonce, bne); in bch2_btree_node_read_done()
Dio_read.c577 struct bch_csum csum; in __bch2_read_endio()
Dsuper-io.c685 struct bch_csum csum = csum_vstruct(NULL, csum_type, null_nonce(), sb->sb); in read_one_super()